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
| Polje | Gde | Tip | Opis |
|---|---|---|---|
taxpayerIdobavezno | query | uuid | |
businessPremiseIdobavezno | query | uuid |
Primer
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
| 200 OK | Current fiscal tax configurationCurrentTaxConfiguration |
|---|---|
| 404 Not Found | Resource does not exist within the authenticated tenant scopeErrorCode |
| 409 Conflict | The requested resource conflicts with an existing tenant-scoped recordConflict |
| 422 Unprocessable Content | The command violates a Boka or fiscal ruleErrorCode |
| 503 Service Unavailable | A fresh authoritative PFR configuration could not be obtained |
{
"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.
| Polje | Tip | Opis |
|---|---|---|
sourceobavezno | string |
|
environmentobavezno | string | Environment of the active security element the configuration was read with; sandbox unlocks the sandbox-only advance item names.
|
taxpayerIdobavezno | uuid | |
businessPremiseIdobavezno | uuid | |
currentTaxGroupIdobavezno | integer | >= 0 |
validFromobavezno | string | Supplier-provided current-group validity value preserved without inventing a timezone. |
fetchedAtobavezno | date-time | |
labelsobavezno | array<TaxLabel> | min 1 items |
labelobavezno | string | |
categoryobavezno | string | |
categoryTypeobavezno | integer | >= 0<= 2 |
rateobavezno | number | |
activeFromobavezno | string | Supplier-provided current-group validity value preserved without inventing a timezone. |