Marmin

Retrieve a purchase credit note


Retrieves the details of a specific purchase credit note.

Rate limit

60 requests/minute per authenticated account. See Rate limiting for response headers (X-RateLimit-*) and retry guidance.

Path parameters

GET /api/purchase-credit-notes/{id}
ParameterTypeRequiredDescription
idstring
Required
The ID of the purchase credit note to retrieve.
Response

Status code: 200 OK

Returns the full purchase credit note.

Response body fields
FieldTypeSourceDescription
idstringSystem ProvidedPrimary identifier for the document (UUID). Automatically generated when the document is created.
org_idstringSystem ProvidedUnique identifier of the organization that owns this credit note.
document_sequencenumberSystem ProvidedSequential number for the credit note within your organization. Used for compliance and tracking.
tax_breakdownarrayCalculatedTax amounts grouped by tax category and rate.
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 to be refunded/credited. 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 for the credit note.
total_non_taxable_amountnumberCalculatedTotal non-taxable amount.
meta_infoobjectSystem ProvidedAdditional metadata (timestamps, Peppol status, etc.). See Meta info object below.
is_phase2_documentbooleanSystem ProvidedWhether the document is Peppol-enabled (Phase 2).

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 credit note not found.

{
  "errors": {
    "message": "Purchase credit note not found"
  }
}
500 Internal Server Error

An error occurred while processing the request.

{
  "errors": {
    "message": "An error occurred"
  }
}
Next