Retrieve a purchase invoice
Retrieves the details of a specific purchase invoice.
Rate limit
60 requests/minute per authenticated account. See Rate limiting for response headers (X-RateLimit-*) and retry guidance.
Path parameters
GET /api/purchase-invoices/{id}Response
Status code: 200 OK
Returns the full purchase invoice.
Response body fields
Meta info object
The meta_info field is an object with the following attributes:
Peppol status object
The meta_info.peppol_status field is an object with the following attributes:
Status values
VALIDATION_FAILED applies only to overall_status.
Client processing guidance
Treat
overall_statusas the primary state for workflow decisions.Use
participant_statusandfta_statusas stage-specific diagnostics for UI and support logs.If
overall_statusisPENDING, keep the invoice in a processing state and poll/re-fetch later.If
overall_statusisAPPROVED, mark the Peppol flow as successful and continue normal downstream actions.If
overall_statusisREJECTEDorVALIDATION_FAILED, stop submission-dependent actions and surface the failure to users.When
validation_resultsis not empty, display user-friendly error summaries fromtext, and retainflag,reasonCode,location, andtestfor troubleshooting.participant_statusorfta_statuscan benullin early/failed validation stages; do not treatnullalone as success or failure.
Example `meta_info` values
Typical meta_info.peppol_status shapes:
APPROVED
{
"meta_info": {
"peppol_status": {
"participant_status": "APPROVED",
"fta_status": "APPROVED",
"overall_status": "APPROVED",
"validation_results": []
}
}
}REJECTED
{
"meta_info": {
"peppol_status": {
"participant_status": "REJECTED",
"fta_status": "APPROVED",
"overall_status": "REJECTED",
"validation_results": []
}
}
}VALIDATION_FAILED
VALIDATION_FAILED applies only to overall_status. participant_status and fta_status can be null.
{
"meta_info": {
"peppol_status": {
"participant_status": null,
"fta_status": null,
"overall_status": "VALIDATION_FAILED",
"validation_results": [
{
"flag": "fatal",
"reasonCode": "IBR-128-AE",
"text": "Country subentity must be a valid UAE subdivision code",
"location": "/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity",
"test": "normalize-space(.) = 'AUH' or normalize-space(.) = 'DXB' or normalize-space(.) = 'SHJ' or normalize-space(.) = 'UAQ' or normalize-space(.) = 'FUJ' or normalize-space(.) = 'AJM' or normalize-space(.) = 'RAK'"
}
]
}
}
}Nested object field tables are on Create.
Error responses
401 Unauthorized
Authentication required or invalid token.
{
"errors": {
"message": "Authentication required or invalid token"
}
}404 Not Found
Purchase invoice not found.
{
"errors": {
"message": "Purchase invoice not found"
}
}500 Internal Server Error
An error occurred while processing the request.
{
"errors": {
"message": "An error occurred"
}
}