Pređi na sadržaj

Referenca

Runtime

Identitet ESIR-a, verzija i spremnost fiskalnog adaptera, kako ih vidi vaš kredencijal.

1 operacija

Runtime i spremnost

get/v1/runtime

Scope tenant:read

Prvi poziv posle tokena. Vraća proizvođača, ESIR broj (prazan dok Poreska uprava ne dodeli), verziju, organizaciju i client id iz tokena, i da li je fiskalni adapter konfigurisan. Koristite ga za proveru kredencijala i u health proverama.

Primer

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

Odgovori

getRuntime: Odgovori
200 OKRuntime contextRuntimeInfo
200 OK
{
  "manufacturer": "BOKA GROUP DOO",
  "productName": "BokaPOS",
  "esirNumber": "",
  "softwareVersion": "1.0.0",
  "buildCommit": "1f0d454e8b2c9a7d6f5e4c3b2a1908f7e6d5c4b3",
  "instanceId": "api-bokapos-rs",
  "organizationId": "7c1e9a4b-2d3f-4e5a-b6c7-8d9e0f1a2b3c",
  "clientId": "boka-sbx-k7m2p9x4q1wz",
  "fiscalEndpointsEnabled": true,
  "pfrAdapter": "configured"
}
Odgovor: RuntimeInfo

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

getRuntime: Odgovor
PoljeTipOpis
manufacturerobaveznostring

BOKA GROUP DOOVrednosti

productNameobaveznostring

BokaPOSVrednosti

esirNumberobaveznostringThe ESIR number printed on every fiscal receipt, as the Tax Administration approval number and the declared product version separated by a slash. Empty while no approval decision has assigned one. This is not the deployed build; see softwareVersion.

max 60

softwareVersionobaveznostring

min 1max 64pattern ^[0-9A-Za-z][0-9A-Za-z.+-]{0,63}$

buildCommitobaveznostringExact 40-character Git commit; only Development may report the explicit unversioned-development placeholder.
instanceIdobaveznostringDeployment-owned ESIR software instance identity; never a tenant, OAuth client, certificate, or approval number.

min 1max 128

organizationIdobaveznouuid
clientIdobaveznostring
fiscalEndpointsEnabledobaveznoboolean
pfrAdapterobaveznostring

configurednot-configuredVrednosti