id | string | Required | System-generated | Primary identifier for the document (UUID). Automatically generated when the document is created. | Response-only; not accepted in requests. |
org_id | string | Required | System-generated | Unique identifier of the organization that owns this credit note. | Set by backend from your organization; not part of the create request body. |
profile_execution_id | string | Required | Client-provided | Credit note transaction type code. | Exactly 8 characters; each character 0 or 1 (binary flags). See Profile execution ID and Examples. |
document_number | string | Optional | Conditional (client-provided or system-generated) | The credit note number as displayed on the document. | Required for API-created credit notes; must be unique within the organization when provided. |
document_sequence | number | Optional | System-generated | Sequential number for the credit note within your organization. Used for compliance and tracking. | Server-calculated sequence; do not send in create requests. |
issue_date | string | Required | Client-provided | The date when the credit note was issued. | Format yyyy-MM-dd; must be a valid calendar date. |
issue_time | string | Optional | Client-provided | The time when the credit note was issued. | If present, format HH:mm:ss (e.g. 10:30:00). |
credit_note_type_code | string | Required | Client-provided | The type of credit note. | For sales credit notes this code must be 381 or `81. |
discrepancy_response | string | Required | Client-provided | Reason for issuing the credit note per UAE FTA DL8.61.1. | Must be one of the allowed discrepancy codes (e.g. DL8.61.1.A, DL8.61.1.B, DL8.61.1.C, DL8.61.1.D, DL8.61.1.E, VD). |
reason | string | Optional | Client-provided | Free-text explanation or additional reason for the credit note. | Free text; often correlates with discrepancy_response. |
note | string | Optional | Client-provided | Additional notes or terms displayed on the credit note. | Free text. |
tax_point_date | string | Optional | Conditional (client-provided or system-generated default) | Tax point date per UAE VAT Law—when VAT liability arises. | If present: format yyyy-MM-dd; defaults to issue_date if omitted. |
document_currency_code | string | Required | Client-provided | ISO 4217 alpha-3 currency code for all monetary amounts (e.g. AED). | Must be a valid ISO 4217 currency (e.g. AED). See Get Currency Names and Codes. |
tax_currency_code | string | Optional | Client-provided | ISO 4217 currency code for tax when it differs from document currency. | If present: valid ISO 4217 code; consistent with document_currency_code and requires tax_exchange_rate when different. See Get Currency Names and Codes. |
accounting_cost | string | Optional | Client-provided | Accounting cost center / project cost identifier (if applicable). | Free text. |
buyer_reference | string | Optional | Client-provided | Buyer reference (customer reference) for the credit note. | Free text. |
invoice_period | object | Optional | Client-provided | Period covered by the credited supply (start_date, end_date, description). | If present: start_date and end_date must be yyyy-MM-dd, with start_date ≤ end_date. |
order_reference | object | Optional | Client-provided | Reference to the original order. See Order reference object below. | If present: id must be provided; issue_date as yyyy-MM-dd when used. |
billing_reference | array | Optional | Client-provided | Billing references, typically including the original invoice being credited. | For API sales credit notes, at least one reference to the original invoice is effectively mandatory; each item requires id and optional issue_date in yyyy-MM-dd. |
despatch_document_reference | object | Optional | Client-provided | Reference to despatch/delivery document. See Despatch document reference object below. | If present: id required; issue_date yyyy-MM-dd when provided. |
receipt_document_reference | object | Optional | Client-provided | Reference to receipt document. See Receipt document reference object below. | If present: id required; issue_date yyyy-MM-dd when provided. |
statement_document_reference | object | Optional | Client-provided | Reference to statement document. | If present: id required; issue_date yyyy-MM-dd when provided. |
originator_document_reference | object | Optional | Client-provided | Reference to originating document (when applicable). | If present: id required; issue_date yyyy-MM-dd when provided. |
contract_document_reference | object | Optional | Client-provided | Reference to contract. See Contract document reference object below. | If present: id required; issue_date yyyy-MM-dd when provided. |
accounting_supplier_party | object | Required | Conditional (usually system-generated from profile) | The supplier party issuing the credit note. See Party object below. | Typically derived from the supplier profile for sales credit notes; if sent, must be a valid Party. |
accounting_customer_party | object | Required | Client-provided | The customer party receiving the credit note. See Party object below. | Must be a valid Party object; required in create requests. |
buyer_customer_party | object | Optional | Client-provided | UAE e-invoicing field for Beneficiary ID (UBL BTAE-01). This is not a full party object. See Buyer customer party object below. | Required when Free Trade Zone applies (profile_execution_id first character is 1); id must be a valid Beneficiary ID (TIN). |
seller_supplier_party | object | Optional | Client-provided | UAE e-invoicing field for Principle ID (UBL BTAE-14). This is not a full party object. See Seller supplier party object below. | Required when Disclosed Agent Billing applies (profile_execution_id sixth character is 1); id must be a valid Principle ID TRN and must differ from accounting_supplier_party.party_tax_scheme.company_id. |
payee_party | object | Optional | Client-provided | The party to whom payment/refund should be made, if different from the supplier. See Payee party object below. | If present, must be a valid Payee party object. |
tax_representative_party | object | Optional | Client-provided | Party authorized to represent the supplier for tax purposes. See Tax representative party object below. | If present, must be a valid Party (correct tax scheme and address). |
delivery | object | Optional | Client-provided | Where and when the goods or services related to the credit note were delivered. See Delivery object below. | If present: delivery_location and address must be populated; may be mandatory for exports. |
payment_terms | object | Optional | Client-provided | Payment terms and conditions associated with the credit note. See Payment terms object below. | If present: date fields (e.g. installment_due_date, due_date) must be yyyy-MM-dd. |
charges | array | Optional | Client-provided | Document-level charges that adjust the amount (e.g. freight charge adjustment). See Charge object below. | If present: each charge must have a valid reason and amount/rate; tax category rules apply. |
allowances | array | Optional | Client-provided | Document-level discounts/allowances (e.g. discount on returned items). See Allowance object below. | If present: each allowance must have a valid reason and amount/rate; tax category rules apply. |
tax_exchange_rate | object | Optional | Client-provided | Exchange rate when tax currency differs from document currency. See Tax exchange rate object below. | Required when tax_currency_code differs from document_currency_code; must include source_currency_code, target_currency_code, and calculation_rate. |
prepaid_amount | number | — | Client-provided | Total prepaid amount applied to the credit note. | Optional numeric; typically non-negative. |
payable_rounding_amount | number | — | Client-provided | Rounding adjustment applied to payable amount. | Optional numeric; may be positive or negative depending on rounding direction. |
tax_breakdown | array | — | Calculated | Tax amounts grouped by tax category and rate. | Response-only, generated from per-line tax categories. |
allowance_total_amount | number | — | Calculated | Total of all document-level allowances. | Response-only, calculated from document-level allowances. |
charge_total_amount | number | — | Calculated | Total of all document-level charges. | Response-only, calculated from document-level charges. |
line_extension_amount | number | — | Calculated | Sum of all line amounts before charges, allowances, and taxes. UBL 2.1 LineExtensionAmount. | Response-only, derived from line net amounts. |
tax_exclusive_amount | number | — | Calculated | Line extension plus charges minus allowances, before tax. UBL 2.1 TaxExclusiveAmount. | Response-only, calculated. |
tax_amount | number | — | Calculated | Aggregated VAT amount in document currency. UBL 2.1 TaxTotal. | Response-only, calculated from tax breakdown. |
tax_amount_in_aed | number | — | Calculated | Total tax amount converted to AED. | Response-only, calculated using tax exchange rate (if applicable). |
tax_inclusive_amount | number | — | Calculated | Tax exclusive amount plus total tax. UBL 2.1 TaxInclusiveAmount. | Response-only, calculated. |
payable_amount | number | — | Calculated | Final amount to be refunded/credited. UBL 2.1 PayableAmount. | Response-only, calculated as tax inclusive minus prepayments/rounding. |
payable_amount_in_aed | number | — | Calculated | Final amount payable in AED. | Response-only, calculated using exchange rates. |
total_item_allowances | number | — | Calculated | Total of all line-level allowances. | Response-only, sum over line-level allowances. |
total_item_charges | number | — | Calculated | Total of all line-level charges. | Response-only, sum over line-level charges. |
total_taxable_amount | number | — | Calculated | Total taxable amount for the credit note. | Response-only, derived from taxable lines and charges/allowances. |
total_non_taxable_amount | number | — | Calculated | Total non-taxable amount. | Response-only, derived from non-taxable lines. |
document_lines | array | Required | Client-provided | Credit note line items. See Document line object below. | Must contain at least one line; each line must satisfy the Document line object validation rules. |
document_source | string | — | System-generated | Source of the credit note: API, BULK_UPLOAD, PEPPOL, or UI. | For this endpoint, value will always be API in requests and responses. |
meta_info | object | Optional | System-generated | Additional metadata (timestamps, Peppol status, etc.). See Meta info object below. | Response-only metadata. |
is_phase2_document | boolean | — | System-generated | Whether the document is Peppol-enabled (Phase 2). | Response-only flag; controlled by backend/Peppol integration. |