Skip to content

Get all reporting statuses for a document

Request

Returns all reporting statuses for the specified document ID.

Security
PublicApiKey
Bodyapplication/jsonrequired
documentIdstringrequired

The unique identifier of the document

Example:"64a1b2c3d4e5f6789012345a"
internalRequestIdstring

Optional filter by internal request ID

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

Responses

Reporting statuses retrieved successfully.

Bodyapplication/json
Array [
successfulboolean

Whether the reporting was successful

Example:true
errorMessagestring

Error message if reporting failed

Example:"Invalid reporting format"
errorCodestring

Error code if reporting failed

Example:"FORMAT_ERROR"
shouldRetryboolean

Whether the reporting should be retried

Example:false
timestampstring, (date-time)

Timestamp when the reporting was attempted

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

Unique identifier for the reporting attempt

Example:"RPT-2024-001234"
reportingResponseIdstring

Reference number from the reporting system

Example:"REF-12345678-2024"
fiscalizationTypestring

Type of fiscalization process

Enum:"FISCALIZATION""FISCALIZATION_REJECTION_REPORT""FISCALIZATION_PAYMENT_REPORT""FISCALIZATION_NOT_DELIVERED_REPORT"
Example:"FISCALIZATION"
internalRequestIdstring

Internal request identifier associated with this reporting attempt

Example:"id-abc123-xyz789"
]
Response
[ { "successful": true, "errorMessage": "Invalid reporting format", "errorCode": "FORMAT_ERROR", "shouldRetry": false, "timestamp": "2024-01-15T10:30:00Z", "reportingRequestId": "RPT-2024-001234", "reportingResponseId": "REF-12345678-2024", "fiscalizationType": "FISCALIZATION", "internalRequestId": "id-abc123-xyz789" } ]