Pređi na sadržaj

Referenca

Operacije

Trajno stanje jedne fiskalne operacije, bez kontakta sa V-PFR-om.

1 operacija

Pročitaj operaciju

get/v1/operations/{operationId}

Scope operations:read

Isto stanje kao fiskalni dokument, u kraćem obliku, iz baze i bez kontakta sa V-PFR-om. Koristite kad 409 vrati operationId ili kad proveravate nepoznat ishod.

Beleške iz ugovora (OpenAPI, engleski)

Reads Boka's durable PostgreSQL operation state without contacting V-PFR, opening a security element, recovering an outcome, or retrying a fiscal command. A false fiscalized value is never a receipt.

Parametri

getOperation: Parametri
PoljeGdeTipOpis
operationIdobaveznopathuuid

Primer

GET /v1/operations/{operationId}
curl -X GET "https://api.bokapos.rs/v1/operations/9f8e7d6c-5b4a-4321-8765-0fedcba98761" \
  -H "Authorization: Bearer $BOKAPOS_TOKEN"

Odgovori

getOperation: Odgovori
200 OKOperationOperation
404 Not FoundResource does not exist within the authenticated tenant scopeErrorCode
200 OK
{
  "id": "9f8e7d6c-5b4a-4321-8765-0fedcba98761",
  "kind": "FISCAL_DOCUMENT",
  "status": "FISCALIZED",
  "fiscalized": true,
  "failureCode": null,
  "retryable": false,
  "resourceUrl": "/v1/fiscal-documents/9f8e7d6c-5b4a-4321-8765-0fedcba98761",
  "createdAt": "2026-09-01T08:15:31.902Z",
  "updatedAt": "2026-09-01T08:15:32.611Z"
}

Primeri

unknown

GET /v1/operations/{operationId}
curl -X GET "https://api.bokapos.rs/v1/operations/4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f70" \
  -H "Authorization: Bearer $BOKAPOS_TOKEN"
200 OK
{
  "id": "4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f70",
  "kind": "FISCAL_DOCUMENT",
  "status": "OUTCOME_UNKNOWN",
  "fiscalized": false,
  "failureCode": "PFR_RESPONSE_NOT_OBSERVED",
  "retryable": false,
  "resourceUrl": "/v1/fiscal-documents/4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f70",
  "createdAt": "2026-09-01T09:00:00.000Z",
  "updatedAt": "2026-09-01T09:00:31.000Z"
}
Odgovor: Operation

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

getOperation: Odgovor
PoljeTipOpis
idobaveznouuid
kindobaveznoconst "FISCAL_DOCUMENT"
statusobaveznoFiscalDocumentStatus

RECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILINGVrednosti

fiscalizedobaveznoboolean
failureCodeobaveznostring| null (može biti null)
retryableobaveznoboolean
resourceUrlobaveznouri-reference
createdAtobaveznodate-time
updatedAtobaveznodate-time