Pređi na sadržaj

Referenca

Poreske stope

Aktuelne poreske oznake i stope koje V-PFR vraća za tačan bezbednosni element prodajnog mesta.

1 operacija

Aktuelne poreske stope

get/v1/tax-rates

Scope configuration:read

Svež upit ka V-PFR-u sa tačnim bezbednosnim elementom prodajnog mesta. Oznake koje vrati su jedine koje račun sme da nosi; BokaPOS nema ugrađeni spisak niti rezervnu vrednost.

Beleške iz ugovora (OpenAPI, engleski)

Performs a fresh authenticated PFR status fetch for the exact active premise security element. The response is not a cache authority and no built-in label or rate fallback exists.

Parametri

listTaxRates: Parametri
PoljeGdeTipOpis
taxpayerIdobaveznoqueryuuid
businessPremiseIdobaveznoqueryuuid

Primer

GET /v1/tax-rates
curl -X GET "https://api.bokapos.rs/v1/tax-rates?taxpayerId=3f9c2a8e-6b1d-4e5a-9c47-1d2b8e6f0a11&businessPremiseId=b7d4e2c1-9a3f-4c8e-8f21-6e5a0c9d3b22" \
  -H "Authorization: Bearer $BOKAPOS_TOKEN"

Odgovori

listTaxRates: Odgovori
200 OKCurrent fiscal tax configurationCurrentTaxConfiguration
404 Not FoundResource does not exist within the authenticated tenant scopeErrorCode
409 ConflictThe requested resource conflicts with an existing tenant-scoped recordConflict
422 Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
503 Service UnavailableA fresh authoritative PFR configuration could not be obtained
200 OK
{
  "source": "PFR",
  "environment": "sandbox",
  "taxpayerId": "3f9c2a8e-6b1d-4e5a-9c47-1d2b8e6f0a11",
  "businessPremiseId": "b7d4e2c1-9a3f-4c8e-8f21-6e5a0c9d3b22",
  "currentTaxGroupId": 8,
  "validFrom": "2022-05-01T00:00:00",
  "fetchedAt": "2026-09-01T08:14:02.118Z",
  "labels": [
    {
      "label": "F",
      "category": "ECAL",
      "categoryType": 0,
      "rate": 11,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "N",
      "category": "N-TAX",
      "categoryType": 0,
      "rate": 0,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "P",
      "category": "PBL",
      "categoryType": 2,
      "rate": 0.5,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "E",
      "category": "STT",
      "categoryType": 0,
      "rate": 6,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "T",
      "category": "TOTL",
      "categoryType": 1,
      "rate": 2,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "A",
      "category": "VAT",
      "categoryType": 0,
      "rate": 10,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "B",
      "category": "VAT",
      "categoryType": 0,
      "rate": 0,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "Ж",
      "category": "VAT",
      "categoryType": 0,
      "rate": 19,
      "activeFrom": "2022-05-01T00:00:00"
    },
    {
      "label": "C",
      "category": "VAT-EXCL",
      "categoryType": 0,
      "rate": 0,
      "activeFrom": "2022-05-01T00:00:00"
    }
  ]
}

Sandbox Poreske uprave nosi generički test skup oznaka. U produkciji dobijate zvanične srpske oznake (na primer Ђ 20%, Е 10%, Г 0%, А bez PDV-a). Nikad ne ugrađujte oznake u kod.

Odgovor: CurrentTaxConfiguration

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

listTaxRates: Odgovor
PoljeTipOpis
sourceobaveznostring

PFRVrednosti

environmentobaveznostringEnvironment of the active security element the configuration was read with; sandbox unlocks the sandbox-only advance item names.

sandboxproductionVrednosti

taxpayerIdobaveznouuid
businessPremiseIdobaveznouuid
currentTaxGroupIdobaveznointeger

>= 0

validFromobaveznostringSupplier-provided current-group validity value preserved without inventing a timezone.
fetchedAtobaveznodate-time
labelsobaveznoarray<TaxLabel>

min 1 items

labelobaveznostring
categoryobaveznostring
categoryTypeobaveznointeger

>= 0<= 2

rateobaveznonumber
activeFromobaveznostringSupplier-provided current-group validity value preserved without inventing a timezone.