Pređi na sadržaj

Referenca

Licenca

Stanje licence i uključeni moduli, da sistem zna unapred da li je produkcija dozvoljena.

1 operacija

Stanje licence

get/v1/license

Scope tenant:read

Da li je produkciona fiskalizacija trenutno dozvoljena, koji su moduli uključeni i koje cene važe. Sandbox se nikad ne naplaćuje i ne blokira.

Beleške iz ugovora (OpenAPI, engleski)

Any customer human or API client. Reports the licence state (none, active, suspended, not-started, expired), whether production fiscalization is currently allowed, which paid modules (Advance, E-mail) are enabled, and the effective prices in RSD with VAT included. Sandbox elements and sandbox traffic are never gated by licensing. A refused production command returns 403 with LICENSE_REQUIRED, LICENSE_NOT_STARTED, LICENSE_EXPIRED, LICENSE_SUSPENDED or MODULE_NOT_LICENSED before anything is reserved or sent to the V-PFR. Refunds of already fiscalized receipts and advance cancellations are never refused by licensing.

Primer

GET /v1/license
curl -X GET "https://api.bokapos.rs/v1/license" \
  -H "Authorization: Bearer $BOKAPOS_TOKEN"

Odgovori

getLicenseSummary: Odgovori
200 OKLicence summaryLicenseSummary
200 OK
{
  "state": "active",
  "productionFiscalizationAllowed": true,
  "modules": {
    "advance": true,
    "email": false
  },
  "startsOn": "2026-09-01",
  "endsOn": null,
  "prices": {
    "basePricePerElement": 1600,
    "includedDocuments": 600,
    "overageDocumentPrice": 1,
    "advanceModulePrice": 600,
    "emailModulePrice": 600,
    "vatRate": 0.2
  }
}
Odgovor: LicenseSummary

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

getLicenseSummary: Odgovor
PoljeTipOpis
stateobaveznoLicenseStateCustomer-facing licence state on the Belgrade calendar date of the request.

noneactivesuspendednot-startedexpiredVrednosti

productionFiscalizationAllowedobaveznoboolean
modulesobaveznoobject
advanceobaveznoboolean
emailobaveznoboolean
startsOnobaveznodate| null (može biti null)
endsOnobaveznodate| null (može biti null)
pricesobaveznoLicensePriceListPrices in RSD with VAT included. The base price is per active production security element per month; modules are per organization per month.
basePricePerElementobaveznonumber
includedDocumentsobaveznointeger
overageDocumentPriceobaveznonumber
advanceModulePriceobaveznonumber
emailModulePriceobaveznonumber
vatRateobaveznonumberFraction