Skip to navigation

Get e-invoice status

View as Markdown

Get the current status of one or more e-invoices in a single call, looked up by internal document ID, by e-invoice UUID, or both.

Supported countries: sg, fr, de, pl. The country is case-insensitive.

Limit: up to 100 documentIds and 100 uuids per request (up to 200 identifiers). At least one identifier is required. A UUID can match more than one document (for example, the same e-invoice delivered to several queues), so count is the number of documents returned.

Only documents in queues you are assigned to are returned. Identifiers that match nothing you can access are listed in unresolved with code DOCUMENT_NOT_FOUND.

Each result has three sections:

SectionContents
generalCountry, document type (INVOICE / CREDIT_NOTE), document status and validation checks. A check status of null means it was not run.
networkDelivery over the e-invoicing network (Peppol): status, message, errors, attempts and the network response.
taxAuthoritySubmission to the tax authority (IRAS for Singapore): status, errors, attempts, the authority’s response and its reference ids.

network.status values: PENDING, SENT_SUCCESSFULLY, FAILED_TO_SEND, INVALID_XML_FORMAT, CONSUMER_NOT_FOUND, NETWORK_TRANSMISSION_ERROR, NOT_APPLICABLE.

taxAuthority.status values: NOT_SUBMITTED, SUCCESSFUL_IRAS_SUBMISSION, REJECTED_IRAS_SUBMISSION, INVALID_XML_FORMAT, NETWORK_TRANSMISSION_ERROR, NOT_APPLICABLE.

NOT_APPLICABLE means the channel is not used for this document — for example, a received e-invoice has no network send.

Authentication

x-api-keystring
API key issued by Staple.
AuthorizationBearer
JWT obtained from the login endpoint.

Path parameters

countryenumRequired

Country of the e-invoices. Supported: sg, fr, de, pl.

Allowed values:

Request

Provide at least one of documentIds or uuids.

documentIdslist of integers or stringsOptional

Internal document IDs (integers or strings). Up to 100.

uuidslist of stringsOptional

E-invoice UUIDs. Up to 100.

Response

Status of every matched document, plus unresolved identifiers.

countintegerOptional

Number of documents in results.

resultslist of objectsOptional
One status object per matched document.
unresolvedlist of objectsOptional