Copy PageValidate Credit Noteposthttps://api.wafeq.com/ae/v1/credit-notes/validateValidate a credit note (UBL 381) without sending it. See /invoices/validate.Body ParamsRequest body for POST /credit-notes — a credit note (UBL 381). You are the supplier; a credit note has no due date and no payment means.previous_invoice_sourcestringenumDefaults to apWhere the original invoice was issued: ap (this AP; requires previous_document_id), or external (legacy system/another ASP; caller retains original records). External requires its number; its issue date is optional. This declaration does not establish FTA acceptance of pre-transition invoices.apexternalAllowed:apexternalprevious_document_idstring | nullAP document_id of the original invoice. Required for ap references; not the UBL document_uuid.previous_invoice_numberstring | nullOriginal invoice number (IBG-03). Supply only for external references; derived for ap references.previous_invoice_issue_datestring | nullOriginal issue date YYYY-MM-DD; optional for external references.corrects_document_idstring | nullAP document_id of a C3-rejected document this submission corrects. Keep its business number/type and supply corrected content. Requires a new Idempotency-Key and uses queued delivery. The AP handles FTA recovery internally; retry the same request/key if recovery is pending.metadataobjectCustomer-defined string key-value pairs (up to 100 keys, 100 characters per key, 16 KiB total). Stored separately from the fiscal document; never sent to Peppol or the FTA.Metadata objectissue_datestring | nullIssue date YYYY-MM-DD (defaults to today)profilestringlength ≤ 64Defaults to pint:billing-1@ae-1PINT profile used for the Peppol DocTypeID + SMP lookup. Default is the UAE profile (real counterparties). Override for conformance, e.g. 'pint:billing-1*' to reach a testbed receiver.mls_typestringDefaults to ALWAYS_SENDeDEC Message Level Status preference: ALWAYS_SEND (MLS for every message — recommended for tax-invoice confirmation/audit) or FAILURE_ONLY (MLS only on rejection).currencystringlength between 3 and 3Defaults to AEDISO 4217 currency codebuyer_referencestring | nullBuyer's purchase order referencesource_idstring | nullThe caller's own id for this document (e.g. your invoice id). Stored on the AP record and echoed back in every document.* webhook so you can correlate callbacks to your own document.notesstring | nullFree-text notetransaction_type_codestringDefaults to 00000000§10.4 invoice transaction-type code (BTAE-02): 8 flags, one per scenario, left→right — Free zone, Deemed supply, Margin scheme, Summary invoice, Continuous supply, Disclosed agent billing, E-commerce, Exports. '1' = applies (multiple allowed). '00000000' = no special scenario.invoice_periodobjectInvoicing period (IBG-14) covered by the document. Required when the summary-invoice transaction flag is set.InvoicePeriod objectline_itemsarray of objectsrequiredlength between 1 and 1000Add objectcustomerobjectrequiredThe buyer (counterparty)Buyer objectdelivery_addressobjectActual delivery location; required for exports, including services. Never inferred from buyer address.DeliveryAddress objectcredit_note_numberstringrequiredlength ≤ 64Your credit note numbercredit_note_reason_codestring | nullCredit note reason code (BTAE-03). One of DL8.61.1.A–E, or VD (volume discount, no preceding invoice).Headersauthorizationstring | nullx-ae-taxpayer-idstringrequiredTaxpayer ID (txpay_…). Required with an organization API key (pk_…) for this taxpayer-specific operation, even for one taxpayer. Not a TIN. Optional with a taxpayer access token, which already names its taxpayer.x-ae-grant-idstring | nullGrant ID (tgr_…) to act through, with an organization API key. The request then has exactly that grant's scopes and fails once the grant is revoked. Without it, the key acts through all of the organization's active grants on the taxpayer.Response200Successful Response402Live document processing requires an active subscription. Sandbox is exempt.422Validation Error503Updated 12 days agoList Credit Notes EndpointSend Self Billed Invoice