Skip to content

Get all fiscalization statuses for a document

Request

Returns all fiscalization statuses for the specified document ID.

Security
PublicApiKey
Bodyapplication/jsonrequired
documentIdstringrequired

The unique identifier of the document

Example:"64a1b2c3d4e5f6789012345a"
curl -i -X POST \
  https://omnizon-public-api.redocly.app/_mock/openapi/rest/v1/documents/getAllFiscalizationStatuses \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "documentId": "64a1b2c3d4e5f6789012345a"
  }'

Responses

Fiscalization statuses retrieved successfully.

Bodyapplication/json
Array [
successfulboolean

Whether the fiscalization was successful

Example:true
errorMessagestring

Error message if fiscalization failed

Example:"Invalid tax rate"
errorCodestring

Error code if fiscalization failed

Example:"TAX_RATE_ERROR"
shouldRetryboolean

Whether the fiscalization should be retried

Example:false
timestampstring, (date-time)

Timestamp when the fiscalization was attempted

Example:"2024-01-15T10:30:00Z"
fiscalizationRequestIdstring

Unique identifier for the fiscalization attempt

Example:"FISK-2024-001234"
fiscalizationResponseIdstring

JIR (Jedinstveni identifikator računa) number from FINA

Example:"12345678-1234-1234-1234-123456789012"
fiscalizationTypestring

Type of fiscalization process

Enum:"FISCALIZATION""FISCALIZATION_REJECTION_REPORT""FISCALIZATION_PAYMENT_REPORT""FISCALIZATION_NOT_DELIVERED_REPORT"
Example:"FISCALIZATION"
]
Response
[ { "successful": true, "errorMessage": "Invalid tax rate", "errorCode": "TAX_RATE_ERROR", "shouldRetry": false, "timestamp": "2024-01-15T10:30:00Z", "fiscalizationRequestId": "FISK-2024-001234", "fiscalizationResponseId": "12345678-1234-1234-1234-123456789012", "fiscalizationType": "FISCALIZATION" } ]