Marmin

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}
ParameterTypeRequiredDescription
idstring
Required
The ID of the purchase invoice to retrieve.
Response

Status code: 200 OK

Returns the full purchase invoice.

Response body fields
FieldTypeSourceDescription
idstringSystem ProvidedPrimary identifier for the document (UUID). Automatically generated when the invoice is created.
org_idstringSystem ProvidedUnique identifier of the organization that owns this invoice.
document_sequencelongSystem ProvidedSequential number for the invoice within your organization. Used for compliance and tracking.
allowance_total_amountnumberCalculatedTotal of all document-level allowances.
charge_total_amountnumberCalculatedTotal of all document-level charges.
line_extension_amountnumberCalculatedSum of all line amounts before charges, allowances, and taxes. UBL 2.1 LineExtensionAmount.
tax_exclusive_amountnumberCalculatedLine extension plus charges minus allowances, before tax. UBL 2.1 TaxExclusiveAmount.
tax_amountnumberCalculatedAggregated VAT amount in document currency. UBL 2.1 TaxTotal.
tax_amount_in_aednumberCalculatedTotal tax amount converted to AED.
tax_inclusive_amountnumberCalculatedTax exclusive amount plus total tax. UBL 2.1 TaxInclusiveAmount.
payable_amountnumberCalculatedFinal amount due. UBL 2.1 PayableAmount.
payable_amount_in_aednumberCalculatedFinal amount payable in AED.
total_item_allowancesnumberCalculatedTotal of all line-level allowances.
total_item_chargesnumberCalculatedTotal of all line-level charges.
total_taxable_amountnumberCalculatedTotal taxable amount.
total_non_taxable_amountnumberCalculatedTotal non-taxable amount.
tax_breakdownarrayCalculatedTax amounts by tax category (S, Z, E, O, AE, N) and rate. UBL 2.1 TaxSubtotal.
is_phase2_documentbooleanSystem ProvidedWhether the document is Peppol-enabled (Phase 2).
meta_infoobjectSystem ProvidedAdditional metadata. See Meta info object below.

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"
  }
}
Next