{"openapi":"3.1.0","info":{"title":"AZDAN Peppol Integration API","version":"1.1.0","description":"## Authentication\nEvery integration operation authenticates with a tenant API key created in the Tenant Console (API Keys), sent as:\n\n`Authorization: Bearer azd_test_… | azd_live_…`\n\nThe prefix identifies the key; it does not choose the Peppol network. Routing is decided only by the request's `environment` (\"test\" | \"production\", default \"test\"), and the sender must be registered in that environment.\n\nScopes: each operation lists the scopes its route accepts in `x-azdan-scopes` (any one suffices; the first is the one to ask for). A newly issued key carries `transactions:submit` and `transactions:read`, which covers 13 of the 15 operations.\n`peppol:payload:read` — Raw payload access: GET …/{transactionId}/xml and …/tdd/download. Not in a default key; request it when an integration must fetch signed URLs for the raw bytes. The …/files/* routes do not need it.\n\n## Idempotency\nSend Idempotency-Key as an HTTP header on submit. The key identifies ONE logical submission, scoped to the tenant: the same key always returns the original transaction (idempotent: true) and never sends twice, so retry a timeout or a 5xx with the SAME key and use a new key for a new document. 1 to 120 characters — a longer key is refused with HTTP 400 IDEMPOTENCY_KEY_INVALID before anything is stored, and the same limit applies to the legacy body field idempotencyKey and to the by-idempotency lookup. The header is authoritative; if the legacy body field is also sent the two must be equal (IDEMPOTENCY_KEY_CONFLICT).\n\n## Environment\nThe Peppol network a document is routed to. Set per request (environment, default \"test\"), stored on the transaction and echoed in every webhook payload. The API key prefix does not influence it; the sender participant must be registered in the environment named.\n\n## Tax Data Document\nTax Data Documents are generated automatically by AZDAN. Do not submit a TDD. Use the invoice transaction's TDD endpoint to inspect the generated TDD status and download it when available. On the enriched detail of an invoice, ap.isTdd is always false and ap.tddStatus is always null — they describe the row itself, not the TDD generated for it. The generated TDD's delivery status is tdd.status on the TDD endpoint.\n\n## Message Level Status\nMLS values are lower-case, exactly as stored. ap.mlsStatus / ap.mlsReceivedAt / ap.mlsId / ap.mlsType / ap.mlsErrorCode / ap.mlsErrorMessage are metadata on the enriched detail; documents.mlsXml is available only when an MLS XML file is actually stored — for outbound documents it is normally not.\n\n## Versions\nThe API's version is the number in the address: this is version 1,\n`/api/v1/integrations/peppol/…`. Every answer says which version served\nit in the `X-Azdan-Api-Version` header. The address from before\nversions, `/api/integrations/peppol/…`, is version 1 as well and answers\nthe same way; write new integrations against `/api/v1/`.\n\nInside a version nothing you rely on is removed, renamed or given\nanother meaning. Additions do arrive inside a version: new operations,\nnew optional request fields, new response fields, new values in lists\nsuch as error codes and events, so ignore fields you do not know. A\nchange that would break a working integration gets a new number\n(`/api/v2/…`); the previous version then keeps working for at least 12\nmonths and its answers carry the `Deprecation` and `Sunset` headers\nwith the date it stops.\n\nThe UAE document standard (PINT-AE) has its own number and is not the\nAPI's: when the authorities change the rules, validation follows them\ninside the same API version, with notice.\n\n## Rate limits\nRequests are counted for the account, whatever the number of its API\nkeys (test and live keys alike), in fixed 60-second windows and in three\nbudgets that do not draw on each other:\n\n| Budget | Operations | Free plan | Paid |\n|---|---|---|---|\n| Sending (`send`) | `POST …/invoices` | 10 a minute | 60 a minute |\n| Validation (`validate`) | `POST …/validate` | 20 a minute | 60 a minute |\n| Reading (`read`) | every `GET`: status, lists, events, TDD, XML and file downloads | 60 a minute | 300 a minute |\n\nThese are the defaults: a deployment may set other numbers and an\naccount's own may be higher, so `RateLimit-Limit` states the one in\nforce for the request, and each operation's `x-azdan-budget` names the\nbudget it draws on. Requests that are refused count too. Every answer\nto a request made with a valid key carries `RateLimit-Policy`,\n`RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds\nuntil the window ends) for that budget. Over a budget the answer is\n**429** in the JSON error envelope: `error.code` is `RATE_LIMITED`,\n`error.budget` names the budget (`send`, `validate` or `read`),\n`error.limitPerMinute` is its number, `error.message` a sentence with\nthe wait and `error.retryAfterSeconds` the seconds to wait, the same\nnumber as the `Retry-After` header. Wait that long, then repeat the\nrequest; repeat a submit with the same `Idempotency-Key`. Do not retry\nwithout waiting: refused requests count as well. The other two budgets\nare not affected.\n\nA request without a valid API key is counted per client address\ninstead (600 requests per minute by default) and is answered the same\nway, without `error.budget`.\n\nA further cap protects the keys themselves. After 20 requests in one\nminute (by default) from one client address with the same key that\nwere refused for a missing or invalid API key (401), requests with\nthat key from that address are answered **429** with the code\n`TOO_MANY_AUTH_FAILURES`, with `error.retryAfterSeconds` and\n`Retry-After`, until the minute ends; other keys from the same address\nare not affected. After 200 such refusals in one minute (by default)\nfrom one address, whatever the keys, every request from that address\nis answered that way. Requests made with a valid key never count\ntoward either; correct the key and wait.\n\n## Errors\nEvery other error is JSON: `{ \"error\": { \"code\", \"message\", \"details\" } }`.\n`error.code` is one of the values in the `ErrorCatalog` schema, or one\nof the few account-level codes its description lists.\n- A request that does not match the documented parameters or body is\n  **400** `VALIDATION`; the findings are in `error.issues[]` (each with a\n  `path` and a `message`), not in `error.details`.\n- A document that fails the PINT-AE rules is **400**\n  `PINT_VALIDATION_FAILED`; the findings are in `error.details[]` (each\n  with `code`, `severity`, `message` and `xpath`).\n- `error.details` is a list for document and idempotency errors and an\n  object for `AP_CORE_REJECTED`, for a missing document (404 on the\n  `/files/*` routes) and for subscription limits.\n- A JSON request body may be at most 1 MB (**413** `PAYLOAD_TOO_LARGE`).\n- **401** `UNAUTHORIZED`: the key is missing, unknown or revoked.\n  **403** `FORBIDDEN`: the key lacks every scope the operation accepts\n  (the message lists them). 403 is also the status of\n  `API_KEY_CREATOR_NOT_ADMIN` and `TENANT_SUSPENDED` (the account is\n  suspended; its keys work again when it is reactivated).\n\n## Pagination\n`GET /api/v1/integrations/peppol/transactions` has two modes:\n- **Cursor** (the default, recommended for sync jobs): send `limit`\n  (1 to 1000, default 50) and, for the next page, the `nextCursor` of\n  the previous answer as `cursor`. Cursors only move forward. Keep the\n  filters and `sort` the same for every page of one query; a cursor\n  used with other filters or another `sort` is refused with 400\n  `CURSOR_FILTER_MISMATCH`.\n- **Page**: used whenever `page` or `pageSize` is sent (`pageSize` 1 to\n  1000, default 25). Always newest first; the answer carries `total`\n  and `totalPages`. `limit`, `cursor` and `sort` are ignored in this\n  mode.\n\n## Webhooks\nSubscribe to real-time lifecycle events via the portal Webhooks settings.\nEvents are signed with HMAC-SHA256 for verification. If a tenant enables\nmultiple webhook endpoints, each matching event is delivered to all enabled\nendpoints and delivery attempts are tracked per endpoint. Retries are\nisolated per endpoint: one endpoint failure does not re-send successful\nendpoints. Adding a new endpoint does not replay events created before that\nendpoint existed. Webhook signing secrets are endpoint-specific; when a\ntenant configures multiple webhook endpoints, each delivery is signed\nindependently with the destination endpoint's configured secret.\n\nEvery delivery is an HTTPS POST with `Content-Type: application/json` and\nthe headers `X-Azdan-Signature` (`t=<unix>,v1=<hex>[,v1=<hex>]` — HMAC-SHA256\nof `\"<t>.<body>\"`; a second `v1=` appears for 24 hours after a secret\nrotation, signed with the previous secret), `X-Azdan-Event-Id` and\n`Idempotency-Key` (the same stable event id on every retry of an event),\n`X-Azdan-Webhook-Id`, `X-Azdan-Payload-Version` (`1` or `2`),\n`X-Azdan-Timestamp` (ISO 8601, for reading only) and\n`User-Agent: AZDAN-Webhook/1.0`. Verify the signature on the raw body\nbefore trusting it, refuse a delivery that has no valid\n`X-Azdan-Signature`, and reject one whose `t` is more than 300 seconds\nfrom your clock. Answer 2xx within 10 seconds; anything else — a\nredirect included, redirects are not followed — is tried\nagain, up to 8 attempts in all, with exponential backoff between them\n(30 s, 1, 2, 4, 8, 16, 32 minutes, ±50 % jitter; `Retry-After` on\n429/503 is honoured), then dead-lettered —\nvisible and requeue-able in the Tenant Console.\n\nPayload versions: a webhook created today sends the **v2 envelope**\n(`WebhookDeliveryV2`): flat, self-describing, with the document number,\nkind, amounts, counterparty, company and Peppol identifiers, the MLS /\nTDD outcome where relevant and the document download links. Webhooks\ncreated before payload versions existed, and any webhook set to\n`payloadVersion: \"1\"`, keep the original envelope (`WebhookDelivery`:\n`eventId`, `type`, `tenantId`, `transactionId`, `payload`, `occurredAt`).\nA v1 delivery names the event by its legacy name in `type`; a v2\ndelivery gives the v2 name in `eventType` and the legacy one in\n`legacyType`. A subscription may use either name (see\n`WebhookEventType`).\n","contact":{"name":"AZDAN Platform Team","email":"einvoicingsupport@azdan.com"},"license":{"name":"Proprietary","url":"https://azdanapps.com/terms"},"x-azdan-api-version":"1","x-azdan-document-standard":{"name":"PINT-AE","version":"1.0.4"},"x-azdan-generated":{"from":"azdan-platform-api/scripts/lib/developerContract.js","contractDigest":"98513c4f6cf2ff97","specification":"PINT-AE 1.0.4","customizationId":"urn:peppol:pint:billing-1@ae-1","profileId":"urn:peppol:bis:billing","doNotEdit":"Rendered by azdan-platform-api/scripts/generate-developer-examples.js from the structural template and the developer contract."},"x-azdan-limits":{"levels":{"free":{"send":10,"validate":20,"read":60},"paid":{"send":60,"validate":60,"read":300}},"perAddressPerMinute":600,"refusedKeys":{"perAddressAndKeyPerMinute":20,"perAddressPerMinute":200}}},"security":[{"ApiKeyBearer":[]}],"tags":[{"name":"1. Validate a document","description":"Check an invoice or credit note against the UAE (PINT-AE) rules without sending it. Nothing is stored or delivered."},{"name":"2. Send a document","description":"Send an invoice or credit note to the buyer on the Peppol network. Answers 202 with a transactionId; delivery continues in the background."},{"name":"3. Track status","description":"List your transactions, read one in full, find one by your Idempotency-Key or by its network message id, and read its Tax Data Document and events."},{"name":"4. Download documents","description":"Download the files of a transaction: the invoice XML and PDF, and the SBD, TDD and MLS XML when they exist."},{"name":"5. Webhooks (sent to your endpoint)","description":"What AZDAN sends to the HTTPS endpoint you register in the Tenant Console (Developers › Webhooks) when a transaction changes. You do not call this; you receive it."}],"paths":{"/api/v1/integrations/peppol/validate":{"post":{"operationId":"validateDocument","summary":"Validate an invoice or credit note without sending it","description":"Dry run. Checks the document against the UAE PINT-AE rules exactly as\na submit would, and answers whether it would be accepted. Nothing is\nstored, no transaction is created and nothing is sent to the Peppol\nnetwork, so it is safe to call repeatedly.\n\nSend the document either as JSON (`inputType: json` with `payload`;\nAZDAN builds the UBL XML) or as your own UBL 2.1 XML\n(`inputType: xml` with `xml`). The envelope is strict: an unknown\ntop-level property is refused with 400 `VALIDATION`. `environment`\ndefaults to `test` when it is left out.\n\n- **200** — `valid: true`. `warnings` lists findings that do not block\n  the document.\n- **403** — `SENDER_NOT_OWNED`: `senderPeppolId` is not an active\n  sending participant of your account in that environment. Refused\n  before the document is checked, exactly as a submit would refuse it.\n- **400** — the document or the request was refused. A document\n  failure answers `valid: false` with `error.code` and the findings\n  in `error.details[]`. On this route every refusal is 400, including\n  the case where the rules engine could not run\n  (`PINT_VALIDATION_ENGINE_ERROR`, `VALIDATOR_UPSTREAM_ERROR`), which\n  is not a defect in your document: try again.\n\n`valid: true` says the document passed validation. A submit can still\nbe refused for the sender (`SENDER_NOT_OWNED`), a duplicate document\nnumber, the subscription, or by the receiving side.\n","tags":["1. Validate a document"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateRequest"},"examples":{"jsonMode":{"summary":"JSON mode — Minimal Tax Invoice (380)","description":"The smallest request the API accepts for a UAE tax invoice. Start here and add only what your business case needs.","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"INV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000005","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionTypeCode":"00000000","paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","cityName":"Dubai","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1050.00","payableAmount":"1050.00"}}}},"xmlMode":{"summary":"XML mode — UAE Tax Invoice (380)","description":"The standard VAT invoice. Carries all 51 MoF mandatory Tax Invoice fields. The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>INV-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000001</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:DueDate>2026-10-16</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:Note>Thank you for your business.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000103</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000203</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount><cbc:ID>AE070331234567890123456</cbc:ID></cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Net 30 days</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1050.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1050.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"EA\">10</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">20.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">120.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1050.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:InvoiceLine>\n</Invoice>"}},"creditNoteJsonMode":{"summary":"JSON mode — UAE Tax Credit Note (381) (381)","description":"Reverses a tax invoice. Amounts stay POSITIVE; the document type says it is a credit. Needs a reason code and the original invoice reference.","value":{"inputType":"json","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"CN-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000002","issueDate":"2026-09-16","currency":"AED","transactionTypeCode":"00000000","note":"Credit for returned services.","creditNoteReasonCode":"DL8.61.1.D","billingReference":{"invoiceId":"INV-2026-000123","issueDate":"2026-09-16"},"supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1050.00","payableAmount":"1050.00"}}}},"creditNoteXmlMode":{"summary":"XML mode — UAE Tax Credit Note (381)","description":"Reverses a tax invoice. Amounts stay POSITIVE; the document type says it is a credit. Needs a reason code and the original invoice reference. The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<CreditNote\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>CN-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000002</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>\n  <cbc:Note>Credit for returned services.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:DiscrepancyResponse>\n    <cbc:ResponseCode>DL8.61.1.D</cbc:ResponseCode>\n  </cac:DiscrepancyResponse>\n  <cac:BillingReference>\n    <cac:InvoiceDocumentReference>\n      <cbc:ID>INV-2026-000123</cbc:ID>\n      <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n    </cac:InvoiceDocumentReference>\n  </cac:BillingReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000103</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000203</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1050.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1050.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:CreditNoteLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:CreditedQuantity unitCode=\"EA\">10</cbc:CreditedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">0.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">100.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1050.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:CreditNoteLine>\n</CreditNote>"}},"commercialInvoiceJsonMode":{"summary":"JSON mode — UAE Commercial Invoice (480) (480)","description":"Issued when no VAT is charged. Carries the MoF mandatory Commercial Invoice fields: the seller states its TIN instead of a VAT TRN, the buyer its legal registration, and every tax category is E or O (PINT AE 1.0.5 drops Z), so no tax rate is stated (MoF #38 / #47 cannot apply).","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"commercial","invoiceNumber":"CINV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000003","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionTypeCode":"00000000","note":"Thank you for your business.","paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","paymentTerms":{"note":"Net 30 days"},"supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxRegistrationId":"1000000001","taxSchemeId":"TIN","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","legalRegistrationId":"CN-7654321","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Abu Dhabi Department of Economic Development","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00","grossPriceAmount":"120.00","baseQuantity":"1"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"O"}}],"taxTotal":{"taxAmount":"0.00","taxSubtotals":[{"category":"O","taxableAmount":"1000.00","taxAmount":"0.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1000.00","payableAmount":"1000.00"}}}},"commercialInvoiceXmlMode":{"summary":"XML mode — UAE Commercial Invoice (480)","description":"Issued when no VAT is charged. Carries the MoF mandatory Commercial Invoice fields: the seller states its TIN instead of a VAT TRN, the buyer its legal registration, and every tax category is E or O (PINT AE 1.0.5 drops Z), so no tax rate is stated (MoF #38 / #47 cannot apply). The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>CINV-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000003</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:DueDate>2026-10-16</cbc:DueDate>\n  <cbc:InvoiceTypeCode>480</cbc:InvoiceTypeCode>\n  <cbc:Note>Thank you for your business.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>1000000001</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>TIN</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Abu Dhabi Department of Economic Development\">CN-7654321</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount><cbc:ID>AE070331234567890123456</cbc:ID></cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Net 30 days</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1000.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"EA\">10</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">20.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">120.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1000.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:InvoiceLine>\n</Invoice>"}},"commercialCreditNoteJsonMode":{"summary":"JSON mode — UAE Commercial Credit Note (81) (81)","description":"Reverses a commercial invoice. Same identity rules as 480.","value":{"inputType":"json","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"commercial","invoiceNumber":"CCN-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000004","issueDate":"2026-09-16","currency":"AED","transactionTypeCode":"00000000","note":"Credit for returned goods.","creditNoteReasonCode":"DL8.61.1.D","billingReference":{"invoiceId":"CINV-2026-000123","issueDate":"2026-09-16"},"supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxRegistrationId":"1000000001","taxSchemeId":"TIN","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","legalRegistrationId":"CN-7654321","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Abu Dhabi Department of Economic Development","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"O"}}],"taxTotal":{"taxAmount":"0.00","taxSubtotals":[{"category":"O","taxableAmount":"1000.00","taxAmount":"0.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1000.00","payableAmount":"1000.00"}}}},"commercialCreditNoteXmlMode":{"summary":"XML mode — UAE Commercial Credit Note (81)","description":"Reverses a commercial invoice. Same identity rules as 480. The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<CreditNote\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>CCN-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000004</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:CreditNoteTypeCode>81</cbc:CreditNoteTypeCode>\n  <cbc:Note>Credit for returned goods.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:DiscrepancyResponse>\n    <cbc:ResponseCode>DL8.61.1.D</cbc:ResponseCode>\n  </cac:DiscrepancyResponse>\n  <cac:BillingReference>\n    <cac:InvoiceDocumentReference>\n      <cbc:ID>CINV-2026-000123</cbc:ID>\n      <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n    </cac:InvoiceDocumentReference>\n  </cac:BillingReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>1000000001</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>TIN</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Abu Dhabi Department of Economic Development\">CN-7654321</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1000.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:CreditNoteLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:CreditedQuantity unitCode=\"EA\">10</cbc:CreditedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">0.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">100.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1000.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:CreditNoteLine>\n</CreditNote>"}},"uaeScenarioJsonMode":{"summary":"JSON mode — Combined scenarios (380)","description":"Positions 1, 4, 6 and 8 declared together (mask 10010101): the free-zone beneficiary (BTAE-01), the invoice period (IBG-14), the disclosed-agent principal (BTAE-14) and a deliver-to address abroad (IBG-13). Scenarios combine, and each companion element stays mandatory under its own rule — none is derived from a value the invoice already carries.","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"INV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000018","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionType":{"freeTradeZone":true,"summaryInvoice":true,"disclosedAgentBilling":true,"export":true},"invoicePeriod":{"startDate":"2026-09-01","endDate":"2026-09-30","frequencyCode":"MTH"},"paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"},"beneficiaryId":"FZ-BEN-778901"},"agent":{"principalId":"100000000000303"},"delivery":{"date":"2026-09-25","address":{"streetName":"Hamngatan 4","additionalStreetName":"Warehouse B","cityName":"Goteborg","postalZone":"41106","countrySubentity":"Vastra Gotaland","countryCode":"SE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1050.00","payableAmount":"1050.00"}}}},"exemptionReasonJsonMode":{"summary":"JSON mode — Mixed VAT categories (380)","description":"Standard rated (S), zero rated (Z) and exempt (E) lines on one invoice. The VAT breakdown has one entry per category; the exempt line carries a VAT exemption reason code and no rate.","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"INV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000017","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionTypeCode":"00000000","paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}},{"id":"2","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"International freight","description":"Zero-rated international transport of goods"},"tax":{"category":"Z","rate":"0"}},{"id":"3","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Financial service fee","description":"Exempt financial service"},"tax":{"category":"E","exemptionReasonCode":"DL8.46.1"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"},{"category":"Z","percent":"0.00","taxableAmount":"1000.00","taxAmount":"0.00"},{"category":"E","taxableAmount":"1000.00","taxAmount":"0.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"3000.00","taxExclusiveAmount":"3000.00","taxInclusiveAmount":"3050.00","payableAmount":"3050.00"}}}}}}}},"responses":{"200":{"description":"The document passed validation. Nothing was stored or sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateResponse"},"examples":{"valid":{"summary":"Valid document","value":{"valid":true,"documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","warnings":[],"phormSkipped":false,"normalized":{"sender":"0235:1000000001","receiver":"0235:1000000002","invoiceNumber":"INV-2026-000123","issueDate":"2026-09-16","currency":"AED","payableAmount":1050,"invoiceTypeCode":"380","dueDate":"2026-10-16","supplierName":"AZDAN Sample Supplier LLC","customerName":"Emirates Buyer Trading LLC","netAmount":1000,"taxAmount":50}}}}}}},"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ValidateForbidden"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"}},"x-azdan-scopes":["peppol:validate","peppol:submit","transactions:submit","transactions:read"],"x-azdan-default-key":true,"x-azdan-contract-key":"validate","x-azdan-access":"safe","x-azdan-expected":["200 valid: true","400 validation failure (valid: false, error.code)","401 invalid key","403 insufficient scope"],"x-azdan-budget":"validate"}},"/api/v1/integrations/peppol/invoices":{"post":{"operationId":"submitInvoice","summary":"Send an invoice or credit note to the buyer over Peppol","description":"Validates the document (the same checks as `POST …/validate`), records\na transaction, stores the XML and hands it to the access point for\ndelivery over the Peppol network.\n\nAnswers **202 Accepted** with a `transactionId` and `status: queued`.\nDelivery continues in the background: follow it with webhooks, or\nread the transaction (`GET …/transactions/{transactionId}`) until\n`status` is `delivered` or `failed`.\n\n**Sender.** `senderPeppolId` must be an active sending participant of\nyour account, registered in the `environment` the request names\n(default `test`); otherwise 403 `SENDER_NOT_OWNED`. The seller in the\ndocument must be that sender and the buyer must be\n`receiverPeppolId`.\n\n**Idempotency.** Send `Idempotency-Key` as an HTTP header, one key\nper document. Sending the same key again returns the original\ntransaction with `idempotent: true` and its current status; nothing\nis validated or sent a second time and the new body is not compared\nwith the first. One exception: when the original transaction failed\nbefore the access point accepted it, the same key sends it again\nunder the same `transactionId` (`idempotent: false`). The legacy\nbody field `idempotencyKey` is deprecated; if both are present they\nmust be equal.\n\n**Duplicates.** A document number that this sender has already sent\n(same document type and environment, any status except `failed`) is\nrefused with 409 `DUPLICATE_DOCUMENT`, which names the earlier\ntransaction. This applies with a new key and with no key at all.\n\n**Errors after the transaction exists.** 422 `AP_CORE_REJECTED` and\n502 `UPSTREAM` are returned after a transaction was recorded with\nstatus `failed`; `error.details.transactionId` (422) or\n`GET …/transactions/by-idempotency/{idempotencyKey}` finds it.\nA `production` document counts against the account's subscription;\na `test` document does not.\n","tags":["2. Send a document"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRequest"},"examples":{"jsonMode":{"summary":"JSON mode — Minimal Tax Invoice (380)","description":"The smallest request the API accepts for a UAE tax invoice. Start here and add only what your business case needs.","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"INV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000005","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionTypeCode":"00000000","paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","cityName":"Dubai","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1050.00","payableAmount":"1050.00"}}}},"xmlMode":{"summary":"XML mode — UAE Tax Invoice (380)","description":"The standard VAT invoice. Carries all 51 MoF mandatory Tax Invoice fields. The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>INV-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000001</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:DueDate>2026-10-16</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:Note>Thank you for your business.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000103</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000203</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount><cbc:ID>AE070331234567890123456</cbc:ID></cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Net 30 days</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1050.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1050.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"EA\">10</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">20.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">120.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1050.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:InvoiceLine>\n</Invoice>"}},"creditNoteJsonMode":{"summary":"JSON mode — UAE Tax Credit Note (381) (381)","description":"Reverses a tax invoice. Amounts stay POSITIVE; the document type says it is a credit. Needs a reason code and the original invoice reference.","value":{"inputType":"json","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"CN-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000002","issueDate":"2026-09-16","currency":"AED","transactionTypeCode":"00000000","note":"Credit for returned services.","creditNoteReasonCode":"DL8.61.1.D","billingReference":{"invoiceId":"INV-2026-000123","issueDate":"2026-09-16"},"supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1050.00","payableAmount":"1050.00"}}}},"creditNoteXmlMode":{"summary":"XML mode — UAE Tax Credit Note (381)","description":"Reverses a tax invoice. Amounts stay POSITIVE; the document type says it is a credit. Needs a reason code and the original invoice reference. The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<CreditNote\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>CN-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000002</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>\n  <cbc:Note>Credit for returned services.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:DiscrepancyResponse>\n    <cbc:ResponseCode>DL8.61.1.D</cbc:ResponseCode>\n  </cac:DiscrepancyResponse>\n  <cac:BillingReference>\n    <cac:InvoiceDocumentReference>\n      <cbc:ID>INV-2026-000123</cbc:ID>\n      <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n    </cac:InvoiceDocumentReference>\n  </cac:BillingReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000103</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>100000000000203</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1050.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1050.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:CreditNoteLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:CreditedQuantity unitCode=\"EA\">10</cbc:CreditedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>5.00</cbc:Percent>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">0.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">100.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1050.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">50.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:CreditNoteLine>\n</CreditNote>"}},"commercialInvoiceJsonMode":{"summary":"JSON mode — UAE Commercial Invoice (480) (480)","description":"Issued when no VAT is charged. Carries the MoF mandatory Commercial Invoice fields: the seller states its TIN instead of a VAT TRN, the buyer its legal registration, and every tax category is E or O (PINT AE 1.0.5 drops Z), so no tax rate is stated (MoF #38 / #47 cannot apply).","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"commercial","invoiceNumber":"CINV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000003","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionTypeCode":"00000000","note":"Thank you for your business.","paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","paymentTerms":{"note":"Net 30 days"},"supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxRegistrationId":"1000000001","taxSchemeId":"TIN","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","legalRegistrationId":"CN-7654321","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Abu Dhabi Department of Economic Development","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00","grossPriceAmount":"120.00","baseQuantity":"1"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"O"}}],"taxTotal":{"taxAmount":"0.00","taxSubtotals":[{"category":"O","taxableAmount":"1000.00","taxAmount":"0.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1000.00","payableAmount":"1000.00"}}}},"commercialInvoiceXmlMode":{"summary":"XML mode — UAE Commercial Invoice (480)","description":"Issued when no VAT is charged. Carries the MoF mandatory Commercial Invoice fields: the seller states its TIN instead of a VAT TRN, the buyer its legal registration, and every tax category is E or O (PINT AE 1.0.5 drops Z), so no tax rate is stated (MoF #38 / #47 cannot apply). The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>CINV-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000003</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:DueDate>2026-10-16</cbc:DueDate>\n  <cbc:InvoiceTypeCode>480</cbc:InvoiceTypeCode>\n  <cbc:Note>Thank you for your business.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>1000000001</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>TIN</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Abu Dhabi Department of Economic Development\">CN-7654321</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount><cbc:ID>AE070331234567890123456</cbc:ID></cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Net 30 days</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1000.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"EA\">10</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">20.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">120.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1000.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:InvoiceLine>\n</Invoice>"}},"commercialCreditNoteJsonMode":{"summary":"JSON mode — UAE Commercial Credit Note (81) (81)","description":"Reverses a commercial invoice. Same identity rules as 480.","value":{"inputType":"json","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"commercial","invoiceNumber":"CCN-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000004","issueDate":"2026-09-16","currency":"AED","transactionTypeCode":"00000000","note":"Credit for returned goods.","creditNoteReasonCode":"DL8.61.1.D","billingReference":{"invoiceId":"CINV-2026-000123","issueDate":"2026-09-16"},"supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxRegistrationId":"1000000001","taxSchemeId":"TIN","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","legalRegistrationId":"CN-7654321","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Abu Dhabi Department of Economic Development","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"O"}}],"taxTotal":{"taxAmount":"0.00","taxSubtotals":[{"category":"O","taxableAmount":"1000.00","taxAmount":"0.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1000.00","payableAmount":"1000.00"}}}},"commercialCreditNoteXmlMode":{"summary":"XML mode — UAE Commercial Credit Note (81)","description":"Reverses a commercial invoice. Same identity rules as 480. The xml value is the UBL 2.1 document the API builds for the JSON example of the same name; it passes PINT-AE 1.0.4.","value":{"inputType":"xml","environment":"test","documentType":"creditNote","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<CreditNote\n  xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n  <cbc:ID>CCN-2026-000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-41d3-9a0c-000000000004</cbc:UUID>\n  <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n  <cbc:CreditNoteTypeCode>81</cbc:CreditNoteTypeCode>\n  <cbc:Note>Credit for returned goods.</cbc:Note>\n  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n  <cac:DiscrepancyResponse>\n    <cbc:ResponseCode>DL8.61.1.D</cbc:ResponseCode>\n  </cac:DiscrepancyResponse>\n  <cac:BillingReference>\n    <cac:InvoiceDocumentReference>\n      <cbc:ID>CINV-2026-000123</cbc:ID>\n      <cbc:IssueDate>2026-09-16</cbc:IssueDate>\n    </cac:InvoiceDocumentReference>\n  </cac:BillingReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000001</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>AZDAN Sample Supplier LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>\n        <cbc:AdditionalStreetName>Office 401</cbc:AdditionalStreetName>\n        <cbc:CityName>Dubai</cbc:CityName>\n        <cbc:PostalZone>00000</cbc:PostalZone>\n        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>1000000001</cbc:CompanyID>\n        <cac:TaxScheme><cbc:ID>TIN</cbc:ID></cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>AZDAN Sample Supplier LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Department of Economic Development Dubai\">CN-1234567</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"0235\">1000000002</cbc:EndpointID>\n      <cac:PartyName><cbc:Name>Emirates Buyer Trading LLC</cbc:Name></cac:PartyName>\n      <cac:PostalAddress>\n        <cbc:StreetName>Corniche Road 88</cbc:StreetName>\n        <cbc:CityName>Abu Dhabi</cbc:CityName>\n        <cbc:PostalZone>11111</cbc:PostalZone>\n        <cbc:CountrySubentity>AUH</cbc:CountrySubentity>\n        <cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Emirates Buyer Trading LLC</cbc:RegistrationName>\n        <cbc:CompanyID schemeAgencyID=\"TL\" schemeAgencyName=\"Abu Dhabi Department of Economic Development\">CN-7654321</cbc:CompanyID>\n      </cac:PartyLegalEntity>\n    </cac:Party></cac:AccountingCustomerParty>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"AED\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"AED\">1000.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"AED\">1000.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:CreditNoteLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:CreditedQuantity unitCode=\"EA\">10</cbc:CreditedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"AED\">1000.00</cbc:LineExtensionAmount>\n    <cac:Item>\n        <cbc:Description>Professional services for September 2026</cbc:Description>\n      <cbc:Name>Consulting services</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>O</cbc:ID>\n        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"AED\">100.00</cbc:PriceAmount>\n      <cbc:BaseQuantity unitCode=\"EA\">1</cbc:BaseQuantity>\n      <cac:AllowanceCharge>\n        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n        <cbc:Amount currencyID=\"AED\">0.00</cbc:Amount>\n        <cbc:BaseAmount currencyID=\"AED\">100.00</cbc:BaseAmount>\n      </cac:AllowanceCharge>\n    </cac:Price>\n    <cac:ItemPriceExtension>\n      <cbc:Amount currencyID=\"AED\">1000.00</cbc:Amount>\n      <cac:TaxTotal>\n        <cbc:TaxAmount currencyID=\"AED\">0.00</cbc:TaxAmount>\n      </cac:TaxTotal>\n    </cac:ItemPriceExtension>\n  </cac:CreditNoteLine>\n</CreditNote>"}},"uaeScenarioJsonMode":{"summary":"JSON mode — Combined scenarios (380)","description":"Positions 1, 4, 6 and 8 declared together (mask 10010101): the free-zone beneficiary (BTAE-01), the invoice period (IBG-14), the disclosed-agent principal (BTAE-14) and a deliver-to address abroad (IBG-13). Scenarios combine, and each companion element stays mandatory under its own rule — none is derived from a value the invoice already carries.","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"INV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000018","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionType":{"freeTradeZone":true,"summaryInvoice":true,"disclosedAgentBilling":true,"export":true},"invoicePeriod":{"startDate":"2026-09-01","endDate":"2026-09-30","frequencyCode":"MTH"},"paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"},"beneficiaryId":"FZ-BEN-778901"},"agent":{"principalId":"100000000000303"},"delivery":{"date":"2026-09-25","address":{"streetName":"Hamngatan 4","additionalStreetName":"Warehouse B","cityName":"Goteborg","postalZone":"41106","countrySubentity":"Vastra Gotaland","countryCode":"SE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"1000.00","taxExclusiveAmount":"1000.00","taxInclusiveAmount":"1050.00","payableAmount":"1050.00"}}}},"exemptionReasonJsonMode":{"summary":"JSON mode — Mixed VAT categories (380)","description":"Standard rated (S), zero rated (Z) and exempt (E) lines on one invoice. The VAT breakdown has one entry per category; the exempt line carries a VAT exemption reason code and no rate.","value":{"inputType":"json","environment":"test","documentType":"invoice","senderPeppolId":"0235:1000000001","receiverPeppolId":"0235:1000000002","payload":{"invoiceKind":"tax","invoiceNumber":"INV-2026-000123","uniqueIdentifierNumber":"3f2504e0-4f89-41d3-9a0c-000000000017","issueDate":"2026-09-16","dueDate":"2026-10-16","currency":"AED","transactionTypeCode":"00000000","paymentMeansCode":"30","paymentAccountId":"AE070331234567890123456","supplier":{"name":"AZDAN Sample Supplier LLC","schemeId":"0235","peppolId":"1000000001","taxId":"100000000000103","legalRegistrationId":"CN-1234567","legalRegistrationType":"TL","legalRegistrationAuthorityName":"Department of Economic Development Dubai","address":{"streetName":"Sheikh Zayed Road 12","additionalStreetName":"Office 401","cityName":"Dubai","postalZone":"00000","countrySubentity":"DXB","countryCode":"AE"}},"customer":{"name":"Emirates Buyer Trading LLC","schemeId":"0235","peppolId":"1000000002","taxId":"100000000000203","address":{"streetName":"Corniche Road 88","cityName":"Abu Dhabi","postalZone":"11111","countrySubentity":"AUH","countryCode":"AE"}},"lines":[{"id":"1","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Consulting services","description":"Professional services for September 2026"},"tax":{"category":"S","rate":"5"}},{"id":"2","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"International freight","description":"Zero-rated international transport of goods"},"tax":{"category":"Z","rate":"0"}},{"id":"3","quantity":"10","unitCode":"EA","lineExtensionAmount":"1000.00","price":{"priceAmount":"100.00"},"item":{"name":"Financial service fee","description":"Exempt financial service"},"tax":{"category":"E","exemptionReasonCode":"DL8.46.1"}}],"taxTotal":{"taxAmount":"50.00","taxSubtotals":[{"category":"S","percent":"5.00","taxableAmount":"1000.00","taxAmount":"50.00"},{"category":"Z","percent":"0.00","taxableAmount":"1000.00","taxAmount":"0.00"},{"category":"E","taxableAmount":"1000.00","taxAmount":"0.00"}]},"legalMonetaryTotal":{"lineExtensionAmount":"3000.00","taxExclusiveAmount":"3000.00","taxInclusiveAmount":"3050.00","payableAmount":"3050.00"}}}}}}}},"responses":{"202":{"description":"Accepted. The transaction is recorded and delivery continues in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitResponse"},"examples":{"accepted":{"summary":"Accepted for delivery","value":{"transactionId":"txn_1789562400000_9f3a1c2b","status":"queued","valid":true,"documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","correlationId":"cor_1789562400000_4d5e6f70","as4MessageId":"f0debc61-215c-4e0a-9d1b-2a7c3e4f5a6b@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","idempotent":false,"warnings":[],"validatorPhormSkipped":false,"message":"Invoice accepted for Peppol delivery.","documents":{"invoiceXml":{"available":true,"fileId":"file_01J9Z3Q7M8K2N4P6R8T0V2X4Y6","fileName":"txn_1789562400000_9f3a1c2b.xml","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1789562400000_9f3a1c2b/files/invoice-xml"},"invoicePdf":{"available":false,"fileId":null,"fileName":null,"contentType":"application/pdf","downloadUrl":null,"reason":"not_generated"},"sbdXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_stored"},"tddXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_generated"},"mlsXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_received"},"payloadXml":{"available":false,"privileged":true,"requiredScope":"peppol:payload:read","contentType":"application/xml","downloadUrl":null,"reason":"not_in_object_storage"}}}},"idempotentReplay":{"summary":"Same Idempotency-Key again — the original transaction, nothing sent twice","value":{"transactionId":"txn_1789562400000_9f3a1c2b","status":"sending","valid":true,"documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","correlationId":"cor_1789562400000_4d5e6f70","as4MessageId":"f0debc61-215c-4e0a-9d1b-2a7c3e4f5a6b@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","idempotent":true,"warnings":[],"validatorPhormSkipped":false,"message":"Existing transaction returned (idempotent replay)."}}}}}},"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SubmitForbidden"},"409":{"$ref":"#/components/responses/DuplicateDocument"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/SubmitUnprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamError"},"503":{"$ref":"#/components/responses/ValidatorUnavailable"}},"x-azdan-scopes":["peppol:submit","transactions:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"submit","x-azdan-access":"send","x-azdan-expected":["202 accepted (asynchronous delivery)","400 validation failure","401 invalid key","403 insufficient scope","403 SENDER_NOT_OWNED","502 access point rejected"],"x-azdan-budget":"send"}},"/api/v1/integrations/peppol/transactions":{"get":{"operationId":"listTransactions","summary":"List your transactions, sent and received","description":"The transactions of your account, sent (`outbound`) and received\n(`inbound`), newest first unless `sort` says otherwise. Each item\ncarries its `documents` links. All filters are combined with AND and\nmatch exactly, except `search`.\n\n- **Cursor mode** (default): send `limit` and, for the next page,\n  `cursor`. The answer is `{ items, pagination }`. Recommended for\n  sync jobs.\n- **Page mode**: used whenever `page` or `pageSize` is sent. The\n  answer is `{ transactions, pagination }` with `total` and\n  `totalPages`; always newest first.\n\nWith no paging parameter at all, cursor mode is used with `limit` 50.\nA parameter outside its range or list of values is refused with 400\n`VALIDATION`. A search that takes longer than five seconds is stopped\nwith 503 `QUERY_TIMEOUT`: narrow it with a date range.\n","tags":["3. Track status"],"parameters":[{"$ref":"#/components/parameters/CursorLimit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Sort"},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/FilterFromAlias"},{"$ref":"#/components/parameters/FilterToAlias"},{"$ref":"#/components/parameters/IncludeParam"},{"$ref":"#/components/parameters/FilterDirection"},{"$ref":"#/components/parameters/FilterStatus"},{"$ref":"#/components/parameters/FilterEnvironment"},{"$ref":"#/components/parameters/FilterDocumentType"},{"$ref":"#/components/parameters/FilterSenderPeppolId"},{"$ref":"#/components/parameters/FilterReceiverPeppolId"},{"$ref":"#/components/parameters/FilterPeppolParticipantId"},{"$ref":"#/components/parameters/FilterSubsidiaryId"},{"$ref":"#/components/parameters/FilterCorrelationId"},{"$ref":"#/components/parameters/FilterAs4MessageId"},{"$ref":"#/components/parameters/FilterApCoreMessageId"},{"$ref":"#/components/parameters/FilterSbdhInstanceId"},{"$ref":"#/components/parameters/FilterIdempotencyKey"},{"$ref":"#/components/parameters/FilterDateFrom"},{"$ref":"#/components/parameters/FilterDateTo"},{"$ref":"#/components/parameters/FilterMessageId"},{"$ref":"#/components/parameters/FilterSearch"},{"$ref":"#/components/parameters/FilterArchived"}],"responses":{"200":{"description":"Transaction list","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CursorListResponse"},{"$ref":"#/components/schemas/PageListResponse"}]},"examples":{"cursorMode":{"summary":"Cursor mode — GET …/transactions?limit=50&direction=outbound","value":{"items":[{"transactionId":"txn_1715690640123_a1b2c3d4","direction":"outbound","status":"delivered","documentType":"invoice","documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","sender":{"participantId":"0235:1000000001","name":"Acme Trading LLC"},"receiver":{"participantId":"0235:1000000002"},"correlationId":"cor_1715690640123_e5f6a7b8","apCoreMessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","as4MessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","environment":"production","sizeBytes":8421,"createdAt":"2026-05-14T10:00:00.000Z","updatedAt":"2026-05-14T10:00:04.000Z","deliveredAt":"2026-05-14T10:00:04.000Z","failedAt":null,"failureReason":null,"idempotencyKey":"invoice-INV-10001","documents":{"invoiceXml":{"available":true,"fileId":"fil_1715690640200_c3d4e5f6","fileName":"txn_1715690640123_a1b2c3d4.xml","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/files/invoice-xml"},"invoicePdf":{"available":false,"fileId":null,"fileName":null,"contentType":"application/pdf","downloadUrl":null,"reason":"not_generated"},"sbdXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_stored_for_outbound"},"tddXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_generated"},"mlsXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_received"},"payloadXml":{"available":true,"privileged":true,"requiredScope":"peppol:payload:read","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/xml"}}}],"pagination":{"mode":"cursor","limit":50,"nextCursor":"eyJzIjoiY3JlYXRlZEF0IiwidiI6IjIwMjYtMDUtMTRUMTA6MDA6MDAuMDAwWiIsInQiOiJ0eG5fMTcxNTY5MDY0MDEyM19hMWIyYzNkNCIsImQiOiJkZXNjIiwiZiI6IjRmNWU2ZDdjOGI5YTAxMjMifQ","prevCursor":null,"hasNext":true}}},"pageMode":{"summary":"Page mode — GET …/transactions?page=1&pageSize=25&status=failed","value":{"transactions":[{"transactionId":"txn_1715694240456_b2c3d4e5","direction":"outbound","status":"failed","documentType":"creditNote","documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2::CreditNote##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","sender":{"participantId":"0235:1000000001","name":"Acme Trading LLC"},"receiver":{"participantId":"0235:1000000002"},"correlationId":"cor_1715694240456_f6a7b8c9","apCoreMessageId":null,"as4MessageId":null,"sbdhInstanceId":null,"environment":"test","sizeBytes":7630,"createdAt":"2026-05-14T11:04:00.000Z","updatedAt":"2026-05-14T11:04:02.000Z","deliveredAt":null,"failedAt":"2026-05-14T11:04:02.000Z","failureReason":"ap-core 422","idempotencyKey":null,"documents":{"invoiceXml":{"available":true,"fileId":"fil_1715694240500_d4e5f6a7","fileName":"txn_1715694240456_b2c3d4e5.xml","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715694240456_b2c3d4e5/files/invoice-xml"},"invoicePdf":{"available":false,"fileId":null,"fileName":null,"contentType":"application/pdf","downloadUrl":null,"reason":"not_generated"},"sbdXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_stored_for_outbound"},"tddXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_generated"},"mlsXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_received"},"payloadXml":{"available":true,"privileged":true,"requiredScope":"peppol:payload:read","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715694240456_b2c3d4e5/xml"}}}],"pagination":{"page":1,"pageSize":25,"total":1,"totalPages":1,"hasMore":false}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/QueryTimeout"}},"x-azdan-scopes":["transactions:read","peppol:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"list","x-azdan-access":"read","x-azdan-expected":["200 page of transactions","400 invalid cursor / filter","401 invalid key","403 insufficient scope"],"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}":{"get":{"operationId":"getTransaction","summary":"Get one transaction with its delivery status and documents","description":"Everything known about one transaction of your account:\n- `transaction` — the same fields as a list item (without `documents`)\n- `platform` — status, correlation id, Idempotency-Key, validation\n  engine and a summary of the webhook events recorded for it\n- `ap` — what the access point recorded: its own status, AS4 and SBDH\n  ids, timestamps, the error when sending failed, and the Message\n  Level Status received for an outbound document\n- `storage` — the main stored file (type, size, where it is kept), or\n  `null` when nothing is stored\n- `files` — the files stored for the transaction\n- `documents` — the download link, or the reason it is absent, for\n  each document kind\n- `links` — paths of the related operations (`self`, `events`, `xml`)\n\nThe access point record is found by exact identifiers only, in this\norder: the platform transaction id, the correlation id, the SBDH\ninstance id, the AS4 message id. When none matches,\n`ap` is `{ \"linked\": false }`.\n\n`transaction.status` is brought up to date with the access point when\nthe transaction is read, so a delivered document does not stay\n`sending`. A transaction of another account answers 404.\n","tags":["3. Track status"],"parameters":[{"name":"transactionId","in":"path","required":true,"description":"The `transactionId` returned by submit or by the list. For a received document it is normally the access point's id of the document, not a `txn_…` id.","schema":{"type":"string"},"example":"txn_1715690640123_a1b2c3d4"}],"responses":{"200":{"description":"The transaction, its access point record, files and document links.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichedTransactionDetail"},"examples":{"delivered":{"summary":"A delivered outbound invoice","value":{"transaction":{"transactionId":"txn_1715690640123_a1b2c3d4","direction":"outbound","status":"delivered","documentType":"invoice","documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","sender":{"participantId":"0235:1000000001","name":"Acme Trading LLC"},"receiver":{"participantId":"0235:1000000002"},"correlationId":"cor_1715690640123_e5f6a7b8","apCoreMessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","as4MessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","environment":"production","sizeBytes":8421,"createdAt":"2026-05-14T10:00:00.000Z","updatedAt":"2026-05-14T10:00:04.000Z","deliveredAt":"2026-05-14T10:00:04.000Z","failedAt":null,"failureReason":null,"idempotencyKey":"invoice-INV-10001"},"platform":{"transactionId":"txn_1715690640123_a1b2c3d4","status":"delivered","correlationId":"cor_1715690640123_e5f6a7b8","idempotencyKey":"invoice-INV-10001","validation":{"engine":"internal"},"webhookSummary":{"totalEvents":3,"lastEventType":"transaction.status_changed","lastEventStatus":"delivered","lastEventAt":"2026-05-14T10:00:04.000Z"}},"ap":{"linked":true,"direction":"outbound","apTransactionId":"683a1f2e4b0c9d7e1f2a3b4c","status":"sent","messageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","as4MessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","documentType":"peppol-doctype-wildcard::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"cenbii-procid-ubl::urn:peppol:bis:billing","sender":"0235:1000000001","receiver":"0235:1000000002","createdAt":"2026-05-14T10:00:01.000Z","completedAt":"2026-05-14T10:00:04.000Z","errorDetails":null,"mlsStatus":"received_ap","mlsReceivedAt":"2026-05-14T10:02:11.000Z","mlsId":"7d2e3f40-5b6c-4d7e-9f80-a1b2c3d4e5f6","mlsType":null,"mlsErrorCode":null,"mlsErrorMessage":null,"isTdd":false,"tddStatus":null},"storage":{"driver":"oci","contentType":"application/xml","fileType":"payload","sizeBytes":8421,"cleanupStatus":"clean"},"files":[{"name":"txn_1715690640123_a1b2c3d4.xml","contentType":"application/xml","sizeBytes":8421,"storage":"oci"}],"documents":{"invoiceXml":{"available":true,"fileId":"fil_1715690640200_c3d4e5f6","fileName":"txn_1715690640123_a1b2c3d4.xml","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/files/invoice-xml"},"invoicePdf":{"available":false,"fileId":null,"fileName":null,"contentType":"application/pdf","downloadUrl":null,"reason":"not_generated"},"sbdXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_stored_for_outbound"},"tddXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_generated"},"mlsXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"metadata_only"},"payloadXml":{"available":true,"privileged":true,"requiredScope":"peppol:payload:read","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/xml"}},"links":{"self":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4","events":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/events","xml":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/xml"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}},"x-azdan-scopes":["transactions:read","peppol:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"transaction","x-azdan-access":"read","x-azdan-expected":["200 detail with documents.<kind>.available and reason","401 invalid key","403 insufficient scope","404 unknown transaction"],"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/xml":{"get":{"operationId":"getTransactionXml","summary":"Get a signed link to the stored document XML (privileged scope)","description":"Answers **303** with a `Location` header: a signed object-storage\nlink to the XML stored for the transaction (the business document;\nfor a received document this can be its SBD envelope). The link\nworks without the API key, for 15 minutes, and\nserves the XML itself; the 303 answer has no useful body. Follow the\nredirect without forwarding the `Authorization` header, and do not\nstore or log the link.\n\nRequires the scope `peppol:payload:read`, which a newly issued key\ndoes not have (403 without it). The same file is available with the\nordinary read scopes from `…/files/invoice-xml`.\n\n409 `PAYLOAD_NOT_IN_OBJECT_STORAGE` means the transaction exists but\nits XML is not kept in object storage. 404 means the transaction\ndoes not exist in your account.\n","tags":["3. Track status"],"security":[{"ApiKeyBearer":[]}],"parameters":[{"name":"transactionId","in":"path","required":true,"description":"The `transactionId` returned by submit or by the list.","schema":{"type":"string"},"example":"txn_1715690640123_a1b2c3d4"}],"responses":{"303":{"description":"Redirect to a signed object-storage link, valid for 15 minutes.","headers":{"Location":{"description":"Signed download link for the XML (expires after 15 minutes).","schema":{"type":"string","format":"uri"},"example":"https://objectstorage.example.com/p/Zx3kQ9aB7cD1eF/n/examplenamespace/b/example-bucket/o/INV-10001.xml"},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenPayloadScope"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"The transaction exists but its XML is not kept in object storage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"PAYLOAD_NOT_IN_OBJECT_STORAGE","message":"XML payload is not available in object storage. It may only exist in a legacy local path."}}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"x-azdan-scopes":["peppol:payload:read"],"x-azdan-default-key":false,"x-azdan-contract-key":"xml","x-azdan-access":"privileged","x-azdan-required-scope":"peppol:payload:read","x-azdan-expected":["303 signed URL","401 invalid key","403 key lacks peppol:payload:read","404 unknown transaction","409 payload not in object storage"],"x-azdan-availability":{"present":"303 redirect to a signed URL when the payload is in object storage.","absent":"409 PAYLOAD_NOT_IN_OBJECT_STORAGE when the payload exists only outside object storage; 404 when the transaction is unknown.","source":"The stored business payload, served as a short-lived signed object-storage URL (303). Same bytes as Invoice XML; a different route with a privileged scope."},"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/files/invoice-xml":{"get":{"operationId":"downloadIntegrationInvoiceXml","summary":"Download the invoice or credit note XML","description":"The UBL XML of the invoice or credit note, as sent or as received.\nThis is the address in `documents.invoiceXml.downloadUrl` of API\nanswers and webhook payloads.\n\nThe answer is either the file itself (**200**) or a redirect\n(**302**) to a signed link that works for 15 minutes without the API\nkey. A file kept in object storage always answers 302, so let your\nHTTP client follow redirects.\n\n**404** means the transaction is not in your account or no such file\nis stored; `error.details.reason` says which (`transaction_not_found`,\n`not_stored`). Scopes: `peppol:read` or `transactions:read`; a key\nwith only `peppol:submit` is accepted too.\n","tags":["4. Download documents"],"security":[{"ApiKeyBearer":[]}],"parameters":[{"$ref":"#/components/parameters/TransactionIdPath"}],"responses":{"200":{"description":"File streamed through the Platform API.","headers":{"Content-Disposition":{"schema":{"type":"string","example":"attachment; filename=\"INV-10001.xml\""}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}},"content":{"application/xml":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"The file is kept in object storage. Redirect to a signed download link, valid for 15 minutes; follow it without the `Authorization` header.","headers":{"Location":{"description":"Signed download link (expires after 15 minutes). Do not store or log it.","schema":{"type":"string","format":"uri"}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/DocumentNotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/StorageLinkUnavailable"}},"x-azdan-scopes":["peppol:read","transactions:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"invoiceXml","x-azdan-access":"read","x-azdan-expected":["200 file (302 to a short-lived signed URL on object storage)","401 invalid key","403 insufficient scope","404 not stored"],"x-azdan-availability":{"present":"200 when stored.","absent":"404 only when no file was stored — for a document the platform itself submitted that is a storage or mapping defect, not an expected state.","source":"The UBL invoice / credit note the platform stored when the document was submitted (outbound) or received (inbound)."},"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/files/invoice-pdf":{"get":{"operationId":"downloadIntegrationInvoicePdf","summary":"Download the invoice or credit note as a PDF","description":"A readable PDF of the invoice or credit note\n(`documents.invoicePdf.downloadUrl`). When a PDF file is stored for\nthe transaction it is returned like the other documents (200, or 302\nto a signed link). Otherwise, where PDF generation is switched on, an\nA4 PDF is produced from the stored invoice XML on request and\nreturned directly (**200**), in English or Arabic (`lang`).\n\n**404** (`error.details.reason: not_generated`) when no PDF is stored\nand none can be produced: generation is off, the invoice XML is not\nstored, or the transaction is not an invoice or credit note.\n**503** `INVOICE_PDF_BUSY` or `INVOICE_PDF_UNAVAILABLE` when the\nrenderer cannot take the request now: try again shortly.\n**422** `INVOICE_PDF_UNREADABLE` when the stored XML cannot be read\nas an invoice. Scopes as for `…/files/invoice-xml`.\n","tags":["4. Download documents"],"security":[{"ApiKeyBearer":[]}],"parameters":[{"$ref":"#/components/parameters/TransactionIdPath"},{"name":"lang","in":"query","required":false,"description":"Language of a generated PDF. Any other value is treated as `en`. Ignored when a stored PDF is returned.","schema":{"type":"string","enum":["en","ar"],"default":"en"}}],"responses":{"200":{"description":"File streamed through the Platform API.","headers":{"Content-Disposition":{"schema":{"type":"string","example":"attachment; filename=\"INV-10001.pdf\""}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"The file is kept in object storage. Redirect to a signed download link, valid for 15 minutes; follow it without the `Authorization` header.","headers":{"Location":{"description":"Signed download link (expires after 15 minutes). Do not store or log it.","schema":{"type":"string","format":"uri"}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/DocumentNotFound"},"422":{"description":"The stored invoice XML could not be read to produce a PDF.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"INVOICE_PDF_UNREADABLE","message":"The stored document is not a readable UBL invoice or credit note"}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/StorageLinkUnavailable"},"503":{"description":"The PDF renderer is busy or unavailable. Try again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"INVOICE_PDF_BUSY","message":"PDF rendering is busy. Try again in a moment."}}}}}},"x-azdan-scopes":["peppol:read","transactions:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"invoicePdf","x-azdan-access":"optional","x-azdan-expected":["200 file","401 invalid key","403 insufficient scope","404 no PDF attached or generated","503 renderer busy or unavailable (retry)"],"x-azdan-availability":{"present":"200 with the PDF.","absent":"404 when no PDF is attached and none can be generated (generation is off, or no invoice XML is stored); 503 INVOICE_PDF_BUSY when the renderer is busy (retry shortly).","source":"An attached PDF when one exists; otherwise an A4 PDF generated on request from the stored invoice XML, in English or Arabic (?lang=en|ar), when invoice PDF generation is enabled on the platform."},"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/files/sbd-xml":{"get":{"operationId":"downloadIntegrationSbdXml","summary":"Download the Standard Business Document (SBD) XML of a received document","description":"The Standard Business Document: the Peppol envelope (SBDH) together\nwith the invoice inside it (`documents.sbdXml.downloadUrl`). It is\nstored for received documents. A document you sent has none — the\naccess point builds the envelope while sending and does not keep it —\nso for an outbound transaction this answers **404** with\n`error.details.reason: not_stored_for_outbound`; that is expected,\nnot a failure. Answers 200 or 302, and takes the same scopes, as\n`…/files/invoice-xml`.\n","tags":["4. Download documents"],"security":[{"ApiKeyBearer":[]}],"parameters":[{"$ref":"#/components/parameters/TransactionIdPath"}],"responses":{"200":{"description":"File streamed through the Platform API.","headers":{"Content-Disposition":{"schema":{"type":"string","example":"attachment; filename=\"INV-10001.sbd.xml\""}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}},"content":{"application/xml":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"The file is kept in object storage. Redirect to a signed download link, valid for 15 minutes; follow it without the `Authorization` header.","headers":{"Location":{"description":"Signed download link (expires after 15 minutes). Do not store or log it.","schema":{"type":"string","format":"uri"}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/DocumentNotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/StorageLinkUnavailable"}},"x-azdan-scopes":["peppol:read","transactions:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"sbdXml","x-azdan-access":"optional","x-azdan-expected":["200 file","401 invalid key","403 insufficient scope","404 no SBD stored (expected for outbound)"],"x-azdan-availability":{"present":"200 only when a real SBD is stored; the outbound payload is never returned under this name.","absent":"404 for outbound transactions is expected; 404 on inbound means no SBD was stored.","source":"A real StandardBusinessDocument (SBDH envelope) that was stored. An outbound submission is payload-only — the access point builds the SBDH inside the AS4 message and does not persist it — so this is normally an inbound document."},"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/files/tdd-xml":{"get":{"operationId":"downloadIntegrationTddXml","summary":"Download the Tax Data Document (TDD) XML","description":"The Tax Data Document AZDAN generated for this invoice or credit note\nand reported to the UAE Federal Tax Authority\n(`documents.tddXml.downloadUrl`). You never submit a TDD yourself.\n**404** with `error.details.reason: not_generated` until the TDD\nexists; that is expected shortly after a submit. `GET …/tdd` gives\nits status and metadata. Answers 200 or 302, and takes the same\nscopes, as `…/files/invoice-xml`.\n","tags":["4. Download documents"],"security":[{"ApiKeyBearer":[]}],"parameters":[{"$ref":"#/components/parameters/TransactionIdPath"}],"responses":{"200":{"description":"File streamed through the Platform API.","headers":{"Content-Disposition":{"schema":{"type":"string","example":"attachment; filename=\"INV-10001.tdd.xml\""}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}},"content":{"application/xml":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"The file is kept in object storage. Redirect to a signed download link, valid for 15 minutes; follow it without the `Authorization` header.","headers":{"Location":{"description":"Signed download link (expires after 15 minutes). Do not store or log it.","schema":{"type":"string","format":"uri"}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/DocumentNotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/StorageLinkUnavailable"}},"x-azdan-scopes":["peppol:read","transactions:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"tddXml","x-azdan-access":"optional","x-azdan-expected":["200 file","401 invalid key","403 insufficient scope","404 not generated yet (expected until the TDD exists)"],"x-azdan-availability":{"present":"200 once the TDD was generated and stored.","absent":"404 before generation or when no TDD applies to the document.","source":"The Tax Data Document AZDAN generated for this transaction, linked by explicit parent id. It is never submitted by the caller."},"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/files/mls-xml":{"get":{"operationId":"downloadIntegrationMlsXml","summary":"Download the Message Level Status (MLS) XML","description":"The Message Level Status: the answer (a Peppol ApplicationResponse)\nof the receiving access point to a document\n(`documents.mlsXml.downloadUrl`). Only a stored MLS file can be\ndownloaded. For a document you sent, the MLS outcome is normally\nknown as data only (`ap.mlsStatus` and the other `ap.mls*` fields of\nthe transaction detail) and this answers **404** with\n`error.details.reason: metadata_only`, or `not_received` when no MLS\narrived; both are expected. Answers 200 or 302, and takes the same\nscopes, as `…/files/invoice-xml`.\n","tags":["4. Download documents"],"security":[{"ApiKeyBearer":[]}],"parameters":[{"$ref":"#/components/parameters/TransactionIdPath"}],"responses":{"200":{"description":"File streamed through the Platform API.","headers":{"Content-Disposition":{"schema":{"type":"string","example":"attachment; filename=\"INV-10001.mls.xml\""}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}},"content":{"application/xml":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"The file is kept in object storage. Redirect to a signed download link, valid for 15 minutes; follow it without the `Authorization` header.","headers":{"Location":{"description":"Signed download link (expires after 15 minutes). Do not store or log it.","schema":{"type":"string","format":"uri"}},"Cache-Control":{"schema":{"type":"string","example":"no-store"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/DocumentNotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/StorageLinkUnavailable"}},"x-azdan-scopes":["peppol:read","transactions:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"mlsXml","x-azdan-access":"optional","x-azdan-expected":["200 file","401 invalid key","403 insufficient scope","404 metadata only or no MLS (expected)"],"x-azdan-availability":{"present":"200 only when the XML file itself is stored.","absent":"404 when the MLS is known only as metadata (reason metadata_only) or was not received at all.","source":"A stored Message Level Status (ApplicationResponse) file. MLS METADATA (ap.mlsStatus, ap.mlsReceivedAt, ap.mlsId, ap.mlsType, ap.mlsErrorCode, ap.mlsErrorMessage) can exist on the transaction without a stored XML file."},"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/by-message/{messageId}":{"get":{"operationId":"getTransactionByMessageId","summary":"Find a transaction by its AS4 message ID","description":"Returns the transaction of your account whose AS4 message id\n(`as4MessageId` / `apCoreMessageId`) is exactly the value given — the\nid returned by submit and carried by webhooks. Use it to match a\nnetwork-level id to a transaction. The answer is the same object as a\nlist item, including `documents`. 404 when no transaction of your\naccount has that message id.\n\nA message id usually contains `@`; URL-encode the value.\n","tags":["3. Track status"],"parameters":[{"name":"messageId","in":"path","required":true,"description":"The AS4 message id, URL-encoded. Matched exactly.","schema":{"type":"string"},"example":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com"}],"responses":{"200":{"description":"The transaction with that AS4 message id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transaction"},"examples":{"found":{"summary":"The matching transaction","value":{"transactionId":"txn_1715690640123_a1b2c3d4","direction":"outbound","status":"delivered","documentType":"invoice","documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","sender":{"participantId":"0235:1000000001","name":"Acme Trading LLC"},"receiver":{"participantId":"0235:1000000002"},"correlationId":"cor_1715690640123_e5f6a7b8","apCoreMessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","as4MessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","environment":"production","sizeBytes":8421,"createdAt":"2026-05-14T10:00:00.000Z","updatedAt":"2026-05-14T10:00:04.000Z","deliveredAt":"2026-05-14T10:00:04.000Z","failedAt":null,"failureReason":null,"idempotencyKey":"invoice-INV-10001","documents":{"invoiceXml":{"available":true,"fileId":"fil_1715690640200_c3d4e5f6","fileName":"txn_1715690640123_a1b2c3d4.xml","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/files/invoice-xml"},"invoicePdf":{"available":false,"fileId":null,"fileName":null,"contentType":"application/pdf","downloadUrl":null,"reason":"not_generated"},"sbdXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_stored_for_outbound"},"tddXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_generated"},"mlsXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_received"},"payloadXml":{"available":true,"privileged":true,"requiredScope":"peppol:payload:read","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/xml"}}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No transaction of your account has that message id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"NOT_FOUND","message":"Transaction not found for this message ID"}}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"x-azdan-scopes":["transactions:read","peppol:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"byMessage","x-azdan-access":"read","x-azdan-expected":["200 transaction","401 invalid key","403 insufficient scope","404 unknown message id"],"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/by-idempotency/{idempotencyKey}":{"get":{"operationId":"getTransactionByIdempotencyKey","summary":"Find the transaction created with an Idempotency-Key","description":"Returns the transaction that a submit with this `Idempotency-Key`\ncreated. Use it after a timeout or a 5xx on submit to learn whether\nthe document was recorded, before sending it again. Keys belong to\nyour account, so at most one transaction matches. The answer is the\nsame object as a list item, including `documents`.\n\n404 when no transaction was recorded with the key: either the submit\nnever reached the point of recording one (a 400, 403, 409 or 503\nanswer records nothing), or it was sent without the key. A key longer than\n120 characters is refused with 400 `IDEMPOTENCY_KEY_INVALID`.\n","tags":["3. Track status"],"parameters":[{"name":"idempotencyKey","in":"path","required":true,"description":"The `Idempotency-Key` sent with the submit, URL-encoded. 1 to 120 characters.","schema":{"type":"string","minLength":1,"maxLength":120},"example":"erp-invoice-2026-0001"}],"responses":{"200":{"description":"The transaction created with that key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transaction"},"examples":{"found":{"summary":"The matching transaction","value":{"transactionId":"txn_1715690640123_a1b2c3d4","direction":"outbound","status":"delivered","documentType":"invoice","documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","sender":{"participantId":"0235:1000000001","name":"Acme Trading LLC"},"receiver":{"participantId":"0235:1000000002"},"correlationId":"cor_1715690640123_e5f6a7b8","apCoreMessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","as4MessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","environment":"production","sizeBytes":8421,"createdAt":"2026-05-14T10:00:00.000Z","updatedAt":"2026-05-14T10:00:04.000Z","deliveredAt":"2026-05-14T10:00:04.000Z","failedAt":null,"failureReason":null,"idempotencyKey":"invoice-INV-10001","documents":{"invoiceXml":{"available":true,"fileId":"fil_1715690640200_c3d4e5f6","fileName":"txn_1715690640123_a1b2c3d4.xml","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/files/invoice-xml"},"invoicePdf":{"available":false,"fileId":null,"fileName":null,"contentType":"application/pdf","downloadUrl":null,"reason":"not_generated"},"sbdXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_stored_for_outbound"},"tddXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_generated"},"mlsXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_received"},"payloadXml":{"available":true,"privileged":true,"requiredScope":"peppol:payload:read","contentType":"application/xml","downloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/xml"}}}}}}}},"400":{"description":"The key is longer than 120 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"IDEMPOTENCY_KEY_INVALID","message":"Idempotency-Key path parameter must be at most 120 characters (received 121).","details":[{"code":"IDEMPOTENCY_KEY_INVALID","message":"Idempotency-Key path parameter must be at most 120 characters (received 121).","maxLength":120,"receivedLength":121}]}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No transaction of your account was recorded with that key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"NOT_FOUND","message":"Transaction not found for this idempotency key"}}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"x-azdan-scopes":["transactions:read","peppol:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"byIdempotency","x-azdan-access":"read","x-azdan-expected":["200 transaction","400 key over the limit","401 invalid key","403 insufficient scope","404 unknown key"],"x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/tdd":{"get":{"operationId":"getTransactionTdd","summary":"Get the status of the Tax Data Document generated for a transaction","tags":["3. Track status"],"parameters":[{"$ref":"#/components/parameters/TransactionIdPath"}],"responses":{"200":{"description":"The Tax Data Document generated for the transaction — its delivery status, identifiers, size and hash.","content":{"application/json":{"schema":{"type":"object","required":["tdd"],"properties":{"tdd":{"$ref":"#/components/schemas/TddMetadata"}}},"examples":{"generated":{"summary":"A TDD that was generated and sent","value":{"tdd":{"fileId":"fil_1715690700300_e5f6a7b8","transactionId":"txn_1715690640123_a1b2c3d4","parentTransactionId":"txn_1715690640123_a1b2c3d4","apTddTransactionId":"683a1f6a4b0c9d7e1f2a3b9d","status":"sent","documentTypeId":"peppol-doctype-wildcard::urn:peppol:schema:taxdata:1.0::TaxData##urn:peppol:taxdata:ae-1::1.0","processId":"cenbii-procid-ubl::urn:peppol:taxreporting","sha256":"9f2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a","sizeBytes":5120,"contentType":"application/xml","source":"ap_core_generated_tdd","sbdhInstanceId":"8e3f4a51-6c7d-4e8f-a091-b2c3d4e5f6a7","apCoreMessageId":"a1c2e3f4-5b6d-4e7f-8a9b-0c1d2e3f4a5b@peppol.azdanapps.com","tddDownloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/tdd/download"}}}}}}},"400":{"description":"The generated TDD could not be prepared for download. The cause is on the platform's side; try again later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"The Tax Data Document could not be prepared. Try again later."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/TddNotFound"},"429":{"$ref":"#/components/responses/RateLimited"}},"x-azdan-scopes":["transactions:read","peppol:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"tdd","x-azdan-access":"optional","x-azdan-expected":["200 TDD metadata","401 invalid key","403 insufficient scope","404 TDD not generated (expected until it exists)"],"description":"Tax Data Documents are generated automatically by AZDAN. Do not submit a TDD. Use the invoice transaction's TDD endpoint to inspect the generated TDD status and download it when available.\n\nResolution follows the explicit parent linkage recorded by the access point (never a time or sender guess), so on a self-send the TDD returned is the one generated for THIS outbound document. The download route returns JSON with a short-lived signed URL and needs the privileged peppol:payload:read scope; documents.tddXml / …/files/tdd-xml offer the same file under the ordinary document-read scopes.\n\nOn the enriched detail of an invoice, ap.isTdd is always false and ap.tddStatus is always null — they describe the row itself, not the TDD generated for it. The generated TDD's delivery status is tdd.status on the TDD endpoint.\n\nAnswers 404 until a TDD has been generated for the transaction, which is expected for a short while after a submit. The id in the path is the transaction's transactionId; the access point's own id of the document is accepted too.\n\nRequired scope: any of x-azdan-scopes (a default key qualifies).","x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/tdd/download":{"get":{"operationId":"getTransactionTddDownload","summary":"Get a signed link to download the Tax Data Document (privileged scope)","tags":["3. Track status"],"parameters":[{"$ref":"#/components/parameters/TransactionIdPath"},{"name":"ttlSeconds","in":"query","required":false,"schema":{"type":"integer","minimum":1},"description":"Accepted for compatibility and ignored. The link is always valid for 15 minutes; the answer states the lifetime in `ttlSeconds` (900)."}],"responses":{"200":{"description":"The TDD metadata (the fields of `tdd` on `…/tdd`, at the top level) plus a signed download link.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/TddMetadata"},{"type":"object","properties":{"downloadUrl":{"type":"string","format":"uri","description":"Signed object-storage link to the TDD XML. Works without the API key until it expires; do not store or log it."},"ttlSeconds":{"type":"integer","description":"Lifetime of `downloadUrl` in seconds (900)."}}}]},"examples":{"signedLink":{"summary":"TDD metadata with a signed link","value":{"fileId":"fil_1715690700300_e5f6a7b8","transactionId":"txn_1715690640123_a1b2c3d4","parentTransactionId":"txn_1715690640123_a1b2c3d4","apTddTransactionId":"683a1f6a4b0c9d7e1f2a3b9d","status":"sent","documentTypeId":"peppol-doctype-wildcard::urn:peppol:schema:taxdata:1.0::TaxData##urn:peppol:taxdata:ae-1::1.0","processId":"cenbii-procid-ubl::urn:peppol:taxreporting","sha256":"9f2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a","sizeBytes":5120,"contentType":"application/xml","source":"ap_core_generated_tdd","sbdhInstanceId":"8e3f4a51-6c7d-4e8f-a091-b2c3d4e5f6a7","apCoreMessageId":"a1c2e3f4-5b6d-4e7f-8a9b-0c1d2e3f4a5b@peppol.azdanapps.com","tddDownloadUrl":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/tdd/download","downloadUrl":"https://objectstorage.example.com/p/Zx3kQ9aB7cD1eF/n/examplenamespace/b/example-bucket/o/TDD-INV-10001.xml","ttlSeconds":900}}}}}},"400":{"description":"The TDD exists but is not kept in object storage, so no signed link can be issued. Use `…/files/tdd-xml`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"Only object-storage-backed files can issue presigned URLs"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenPayloadScope"},"404":{"$ref":"#/components/responses/TddNotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/StorageLinkUnavailable"}},"x-azdan-scopes":["peppol:payload:read"],"x-azdan-default-key":false,"x-azdan-contract-key":"tddDownload","x-azdan-access":"privileged","x-azdan-required-scope":"peppol:payload:read","x-azdan-expected":["200 JSON with signed downloadUrl","401 invalid key","403 key lacks peppol:payload:read","404 TDD not generated (expected until it exists)"],"x-azdan-availability":{"present":"200 JSON with downloadUrl when the TDD exists.","absent":"404 when no TDD was generated for the transaction.","source":"The generated TDD as JSON metadata plus a short-lived signed URL. The same file is available under the ordinary document scopes as TDD XML."},"description":"Same resolution as …/tdd, plus a short-lived signed downloadUrl for the TDD XML. Returns JSON (not a redirect). Resolution follows the explicit parent linkage recorded by the access point (never a time or sender guess), so on a self-send the TDD returned is the one generated for THIS outbound document. The download route returns JSON with a short-lived signed URL and needs the privileged peppol:payload:read scope; documents.tddXml / …/files/tdd-xml offer the same file under the ordinary document-read scopes.\n\nThe link in downloadUrl is valid for 15 minutes and works without the API key; do not store or log it. 404 until a TDD has been generated for the transaction; 400 when the TDD is not kept in object storage (use …/files/tdd-xml instead).","x-azdan-budget":"read"}},"/api/v1/integrations/peppol/transactions/{transactionId}/events":{"get":{"operationId":"getTransactionEvents","summary":"List the webhook events recorded for a transaction","description":"The webhook events recorded under this transaction id, oldest first\n(at most 100), each with its delivery state: `deliveryStatus`,\n`attempts`, `deliveredAt` and `lastError`. Use it to see whether your\nendpoint received an event, or to read an event you missed.\n\n`type` is the stored (legacy) event name; `payload` is the event's\ndata — the `payload` of a version 1 delivery and the `data` of a\nversion 2 delivery.\n\nFor a document you sent through this API (`txn_…`) the list holds the\nevents the platform itself raises: `document.validated`,\n`transaction.submitted` and `transaction.status_changed`. Events\nraised by the access point for the same document\n(`ap.outbound.created`, `ap.outbound.delivered`, `ap.outbound.failed`,\n`ap.mls.updated`, `mls.received`, `mls.accepted`, `mls.rejected`) are\nrecorded under the access point's own id of the document\n(`ap.apTransactionId` on the transaction detail). They are delivered\nto your webhooks but are not listed here.\n\nAn id that is not a transaction of your account answers 200 with an\nempty list, not 404.\n","tags":["3. Track status"],"parameters":[{"name":"transactionId","in":"path","required":true,"description":"The `transactionId` returned by submit or by the list.","schema":{"type":"string"},"example":"txn_1715690640123_a1b2c3d4"}],"responses":{"200":{"description":"The events recorded for the transaction, oldest first. Empty when there are none or the id is unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsResponse"},"examples":{"timeline":{"summary":"Events of a delivered outbound invoice","value":{"events":[{"eventId":"evt_ap_3c5e7a9b1d2f4a6c","type":"document.validated","deliveryStatus":"delivered","payload":{"event":"document.validated","direction":"outbound","status":"queued","environment":"production","subsidiaryId":"sub_1715690000000_a1b2","documentType":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","sender":{"participantId":"0235:1000000001","name":"Acme Trading LLC"},"receiver":{"participantId":"0235:1000000002"},"documentNumber":"INV-10001","validation":{"engine":"internal","deepValidation":true,"validatedAt":"2026-05-14T10:00:00.000Z"},"tenantId":"tnt_acme","transactionId":"txn_1715690640123_a1b2c3d4"},"createdAt":"2026-05-14T10:00:00.000Z","deliveredAt":"2026-05-14T10:00:01.000Z","attempts":1,"lastError":null},{"eventId":"evt_1715690641200_9a8b7c6d","type":"transaction.submitted","deliveryStatus":"delivered","payload":{"transactionId":"txn_1715690640123_a1b2c3d4","tenantId":"tnt_acme","peppolId":"0235:1000000001","subsidiaryId":"sub_1715690000000_a1b2","direction":"outbound","environment":"production","status":"sending","correlationId":"cor_1715690640123_e5f6a7b8","sender":{"participantId":"0235:1000000001"},"receiver":{"participantId":"0235:1000000002"},"documentType":"invoice","processId":"urn:peppol:bis:billing","documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","payloadFormat":"json-built-ubl","as4MessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","errorDetails":null,"submittedAt":"2026-05-14T10:00:01.200Z"},"createdAt":"2026-05-14T10:00:01.200Z","deliveredAt":"2026-05-14T10:00:02.000Z","attempts":1,"lastError":null},{"eventId":"evt_ap_8f6d4b2a0c1e3f5a","type":"transaction.status_changed","deliveryStatus":"failed","payload":{"event":"transaction.status_changed","direction":"outbound","status":"delivered","previousStatus":"sending","source":"ap_status_reconciler","subsidiaryId":"sub_1715690000000_a1b2","changedAt":"2026-05-14T10:00:04.000Z","tenantId":"tnt_acme","transactionId":"txn_1715690640123_a1b2c3d4"},"createdAt":"2026-05-14T10:00:04.000Z","deliveredAt":null,"attempts":2,"lastError":"http_503"}]}},"empty":{"summary":"No events, or an unknown transaction id","value":{"events":[]}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}},"x-azdan-scopes":["transactions:read","peppol:read","peppol:submit"],"x-azdan-default-key":true,"x-azdan-contract-key":"events","x-azdan-access":"read","x-azdan-expected":["200 events (may be empty)","401 invalid key","403 insufficient scope"],"x-azdan-budget":"read"}}},"components":{"securitySchemes":{"ApiKeyBearer":{"type":"http","scheme":"bearer","bearerFormat":"AZDAN API Key","description":"Integration API key created in the Tenant Console (API Keys): `azd_test_…` or `azd_live_…`. Pass it as `Authorization: Bearer <key>`; it is not a JWT.\n\nThe prefix identifies the key; it does not choose the Peppol network. Routing is decided only by the request's `environment` (\"test\" | \"production\", default \"test\"), and the sender must be registered in that environment.\n\nScopes: every operation lists the scopes its route accepts in x-azdan-scopes (any one suffices; the first is the one to ask for). A newly issued key carries transactions:submit and transactions:read.\npeppol:payload:read: Raw payload access: GET …/{transactionId}/xml and …/tdd/download. Not in a default key; request it when an integration must fetch signed URLs for the raw bytes. The …/files/* routes do not need it."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":120},"description":"Send Idempotency-Key as an HTTP header on submit. The key identifies ONE logical submission, scoped to the tenant: the same key always returns the original transaction (idempotent: true) and never sends twice, so retry a timeout or a 5xx with the SAME key and use a new key for a new document. 1 to 120 characters — a longer key is refused with HTTP 400 IDEMPOTENCY_KEY_INVALID before anything is stored, and the same limit applies to the legacy body field idempotencyKey and to the by-idempotency lookup. The header is authoritative; if the legacy body field is also sent the two must be equal (IDEMPOTENCY_KEY_CONFLICT).","example":"invoice-INV-2026-000123"},"TransactionIdPath":{"name":"transactionId","in":"path","required":true,"schema":{"type":"string"},"description":"Platform transaction id (`txn_*`) or AP transaction id.","example":"txn_1715690640123_a1b2c3d4"},"CursorLimit":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000,"default":50},"description":"Cursor mode. The most items to return in one answer."},"Cursor":{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"Cursor mode. The `pagination.nextCursor` of the previous answer, unchanged. Send it with the same filters and `sort` as the request that produced it."},"Sort":{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["createdAt:desc","createdAt:asc","updatedAt:desc"],"default":"createdAt:desc"},"description":"Cursor mode. The order of the items. Page mode is always newest first (`createdAt:desc`)."},"Page":{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1},"description":"Page mode. The page number, starting at 1. Sending `page` or `pageSize` selects page mode."},"PageSize":{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000,"default":25},"description":"Page mode. Items per page."},"FilterFromAlias":{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Page mode only. Older name of `dateFrom`; `dateFrom` wins when both are sent."},"FilterToAlias":{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Page mode only. Older name of `dateTo`; `dateTo` wins when both are sent."},"FilterDirection":{"name":"direction","in":"query","required":false,"description":"`outbound` for documents you sent, `inbound` for documents you received.","schema":{"$ref":"#/components/schemas/Direction"}},"FilterStatus":{"name":"status","in":"query","required":false,"description":"Only transactions in this status.","schema":{"$ref":"#/components/schemas/TransactionStatus"}},"FilterEnvironment":{"name":"environment","in":"query","required":false,"description":"Only transactions of this Peppol network. Without it, both `test` and `production` transactions are returned.","schema":{"$ref":"#/components/schemas/Environment"}},"FilterDocumentType":{"name":"documentType","in":"query","required":false,"description":"Exact match on the transaction's `documentType`. For a document sent\nthrough this API that is `invoice`, `creditNote`, `selfBillingInvoice`\nor `selfBillingCreditNote`. A received document stores the document\ntype as the access point reported it (normally the full Peppol\ndocument type identifier), so filter received documents with that\nvalue or with `direction`.\n","schema":{"type":"string"},"example":"invoice"},"FilterSenderPeppolId":{"name":"senderPeppolId","in":"query","required":false,"description":"Exact sender Peppol ID (`scheme:value`).","schema":{"type":"string"},"example":"0235:1000000001"},"FilterReceiverPeppolId":{"name":"receiverPeppolId","in":"query","required":false,"description":"Exact receiver Peppol ID (`scheme:value`).","schema":{"type":"string"},"example":"0235:1000000002"},"FilterPeppolParticipantId":{"name":"peppolParticipantId","in":"query","required":false,"schema":{"type":"string"},"description":"Exact Peppol ID (`scheme:value`) that is either the sender or the receiver.","example":"0235:1000000001"},"FilterSubsidiaryId":{"name":"subsidiaryId","in":"query","required":false,"description":"Only transactions of this company (subsidiary) of your account, by its id — the `companyId` of version 2 webhook payloads.","schema":{"type":"string"}},"FilterCorrelationId":{"name":"correlationId","in":"query","required":false,"description":"Exact `correlationId` — the value you sent with the submit, or the one AZDAN generated.","schema":{"type":"string"}},"FilterAs4MessageId":{"name":"as4MessageId","in":"query","required":false,"description":"Exact AS4 message id. `apCoreMessageId` and `messageId` are other names of the same filter; when several are sent, `as4MessageId` is used first, then `apCoreMessageId`.","schema":{"type":"string"}},"FilterApCoreMessageId":{"name":"apCoreMessageId","in":"query","required":false,"description":"Same filter as `as4MessageId`.","schema":{"type":"string"}},"FilterSbdhInstanceId":{"name":"sbdhInstanceId","in":"query","required":false,"description":"Exact SBDH instance identifier.","schema":{"type":"string"}},"FilterIdempotencyKey":{"name":"idempotencyKey","in":"query","required":false,"description":"Exact `Idempotency-Key` the document was submitted with.","schema":{"type":"string","maxLength":120}},"FilterDateFrom":{"name":"dateFrom","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Only transactions created at or after this moment. ISO 8601, for example `2026-05-01T00:00:00Z`. Text that is not a date is refused with 400 `VALIDATION`.","example":"2026-05-01T00:00:00Z"},"FilterDateTo":{"name":"dateTo","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Only transactions created at or before this moment. ISO 8601; a date without a time means the start of that day (UTC). Text that is not a date is refused with 400 `VALIDATION`.","example":"2026-05-31T23:59:59Z"},"FilterMessageId":{"name":"messageId","in":"query","required":false,"schema":{"type":"string"},"description":"Same filter as `as4MessageId`."},"FilterSearch":{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":120},"description":"Text to find, ignoring case, anywhere in the transaction id, correlation id, AS4 message id, SBDH instance id, or the Peppol ID or name of the sender or receiver. At most 120 characters. Combined with the other filters."},"FilterArchived":{"name":"archived","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]},"description":"Optional. An archived document is an old, finished document that the consoles show under their Archived tab (older than the account's archive period; nothing is moved or removed, and it can always be read). `true` returns only archived documents, `false` only the others. Leave it out to get every document, exactly as before this filter existed. Combined with the other filters; a cursor continues only under the same value."},"IncludeParam":{"name":"include","in":"query","required":false,"schema":{"type":"string","enum":["storage"]},"description":"`storage` adds a `storage` object to each item that has a stored file:\nwhere the file is kept (`driver`), its `fileType` and `sizeBytes`.\nWorks in both paging modes. Any other value is ignored.\n"}},"schemas":{"Direction":{"type":"string","enum":["inbound","outbound"]},"TransactionStatus":{"type":"string","enum":["queued","sending","delivered","reported_to_fta","failed","received","quarantined"],"x-azdan-notes":"queued → sending → delivered (happy path)\nqueued → sending → failed (delivery error)\nqueued → reported_to_fta (receiver is a PINT-AE predefined buyer endpoint, 0235:9900000097, 9900000098 or 9900000099: nothing is delivered to a buyer over Peppol; the access point reports the invoice to the FTA only, DCTCE 1.0.5 §5. Its tax report is tracked like any other.)\nreceived (inbound from network)\nquarantined (inbound held for review)\n"},"Environment":{"type":"string","enum":["test","production"],"description":"The Peppol network a document is routed to. Set per request (environment, default \"test\"), stored on the transaction and echoed in every webhook payload. The API key prefix does not influence it; the sender participant must be registered in the environment named."},"SubmittableDocumentType":{"type":"string","enum":["invoice","creditNote","selfBillingInvoice","selfBillingCreditNote"],"description":"Document types accepted by validate and submit endpoints.\n- `invoice` — AE PINT Invoice\n- `creditNote` — AE PINT Credit Note\n- `selfBillingInvoice` — AE PINT Self-billing Invoice (`inputType: xml` only)\n- `selfBillingCreditNote` — AE PINT Self-billing Credit Note (`inputType: xml` only)\n\nSelf-billing: the buyer issues the document on the seller's behalf, so\n`senderPeppolId` is the buyer (`AccountingCustomerParty` EndpointID) and\n`receiverPeppolId` the seller (`AccountingSupplierParty` EndpointID);\n`cbc:CustomizationID` is `urn:peppol:pint:selfbilling-1@ae-1` and\n`cbc:ProfileID` `urn:peppol:bis:selfbilling`.\n"},"DocumentType":{"type":"string","enum":["invoice","creditNote","tdd"],"description":"Document type names used by this API.\n- `invoice` and `creditNote` (and the self-billing types of `SubmittableDocumentType`) are submittable via the API; a transaction sent through the API carries that name in `documentType`.\n- `tdd` (UAE Tax Data Document) is **never submitted**: Tax Data Documents are generated automatically by AZDAN. Do not submit a TDD. Use the invoice transaction's TDD endpoint to inspect the generated TDD status and download it when available. Inspect it with GET /api/v1/integrations/peppol/transactions/{transactionId}/tdd. Submitting `tdd` via validate or submit is rejected with HTTP 400 (`VALIDATION`). It is not a value of a transaction's `documentType`.\n\nA received document carries the document type as the access point reported it (normally the full Peppol document type identifier) in `documentType`, so `documentType` in responses and in the list filter is a plain string. Use `SubmittableDocumentType` for requests."},"WebhookEventType":{"type":"string","enum":["transaction.submitted","ap.outbound.created","ap.outbound.delivered","ap.outbound.failed","ap.inbound.received","ap.mls.updated","transaction.tdd_generated","mls.sent","mls.received","mls.accepted","mls.rejected","tdd.reported","transaction.status_changed","document.validated","document.rejected","mls.overdue","webhook.test"],"description":"Event names as they are stored and as a version 1 delivery reports\nthem in `type`. A version 2 delivery reports the v2 name in\n`eventType` (for example `document.delivered`) and this name in\n`legacyType`. A subscription may list either name.\n","x-azdan-notes":"Legacy (v1) names, as stored and as a v1 delivery's `type`:\ntransaction.submitted: The access point accepted the document for sending, right after POST /invoices answers 202 (v2 name document.submitted).\nap.outbound.created: AP Core created the outbound row (v2 name document.sent).\nap.outbound.delivered: AS4 delivery confirmed (v2 name document.delivered).\nap.outbound.failed: Delivery failed permanently (v2 name document.failed).\nap.inbound.received: Inbound document received from network (v2 name document.received).\nap.mls.updated: Message Level Status receipt update (v2 name mls.updated).\ntransaction.tdd_generated: A UAE Tax Data Document was generated for a transaction (v2 name tdd.generated).\nmls.sent: This AP sent an MLS ApplicationResponse (linked to the originating transaction where known).\nmls.received: An MLS was received from a peer AP for one of the tenant's outbound transactions.\nTopics introduced with payload v2 (one name only):\nmls.accepted: The receiver's access point accepted or acknowledged the document (MLS AP / AB).\nmls.rejected: The receiver's access point rejected the document (MLS RE), with the reason.\ntdd.reported: The FTA's access point answered a Tax Data Document — outcome accepted or rejected, with the reason.\ntransaction.status_changed: The platform transaction moved to another status (previous and new status in the payload).\ndocument.validated: A document submitted through this API passed validation and was recorded.\ndocument.rejected: A document submitted through this API failed validation and was not sent (validation issues in the payload; no transaction).\nmls.overdue: A delivered domestic outbound document received no Message Level Status within the UAE 10-minute limit. Fires once; mls.received follows if the MLS arrives later.\nwebhook.test: A test event sent from the console.\n"},"InputType":{"type":"string","enum":["json","xml"],"description":"How the document is sent. `json`: the invoice data in `payload`; AZDAN\nbuilds the UBL XML. `xml`: your own complete UBL 2.1 document in `xml`.\n"},"ParticipantRef":{"type":"object","properties":{"participantId":{"type":"string","description":"Peppol participant ID (scheme:id format)","example":"0235:1000000001"},"name":{"type":"string","nullable":true,"description":"Name of the party when known. Often absent for the receiver of a document you sent.","example":"Acme Trading LLC"}}},"DocumentLink":{"type":"object","required":["available","fileName","contentType","downloadUrl"],"description":"One document of a transaction inside the `documents` object. When\n`available` is false there is nothing to download: `fileId`,\n`fileName` and `downloadUrl` are null and `reason` says why.\n","properties":{"available":{"type":"boolean","description":"Whether the file exists and can be downloaded."},"fileId":{"type":"string","nullable":true,"description":"Identifier of the stored file. Null when unavailable, and for a PDF that is generated on request.","example":"fil_1715690640200_c3d4e5f6"},"generated":{"type":"boolean","description":"Present and true on `invoicePdf` when no PDF is stored and one is generated from the invoice XML when requested."},"fileName":{"type":"string","nullable":true,"example":"INV-10001.xml"},"contentType":{"type":"string","description":"Expected MIME type (present even when unavailable).","example":"application/xml"},"downloadUrl":{"type":"string","nullable":true,"description":"Address of the download operation for this document; call it with\nyour API key. Never a direct object-storage address. A path\nrelative to the API host in API answers; an absolute URL in\nwebhook payloads when the deployment has a public address set.\nThe download may answer with a redirect to a short-lived signed\nlink, so do not cache what it returns.\n","example":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/files/invoice-xml"},"reason":{"type":"string","nullable":true,"enum":["metadata_only","not_generated","not_in_object_storage","not_received","not_stored","not_stored_for_outbound","transaction_not_found",null],"description":"Present only when available is false: why the document is absent. documents.<kind>.available on the transaction detail is computed from what is actually stored, and the download route resolves the same rows — the two never disagree. An unavailable entry carries reason: not_generated (PDF, TDD), metadata_only (MLS known from the access point without a stored file), not_received (no MLS), not_stored_for_outbound (an outbound submission is payload-only, the SBDH exists only inside the AS4 message) or not_stored. Optional documents answer 404 with the same reason in error.details; that is an expected state, not a failure. Privileged routes (raw payload, TDD signed download) answer 403 without the peppol:payload:read scope."}}},"TddMetadata":{"type":"object","properties":{"fileId":{"type":"string"},"transactionId":{"type":"string","description":"The invoice / credit note transaction the TDD reports on."},"parentTransactionId":{"type":"string"},"apTddTransactionId":{"type":"string","description":"Access-point transaction id of the TDD transport itself."},"status":{"type":"string","nullable":true,"description":"Delivery status of the TDD at the access point (pending, sending, sent, failed, permanently_failed, …)."},"documentTypeId":{"type":"string","nullable":true},"processId":{"type":"string","nullable":true},"generatedAt":{"type":"string","format":"date-time","nullable":true},"sha256":{"type":"string"},"sizeBytes":{"type":"integer"},"contentType":{"type":"string"},"source":{"type":"string","example":"ap_core_generated_tdd"},"sbdhInstanceId":{"type":"string","nullable":true},"apCoreMessageId":{"type":"string","nullable":true},"tddDownloadUrl":{"type":"string","description":"Path of the signed-download operation (`…/tdd/download`, needs `peppol:payload:read`)."}},"description":"Tax Data Documents are generated automatically by AZDAN. Do not submit a TDD. Use the invoice transaction's TDD endpoint to inspect the generated TDD status and download it when available."},"TransactionDocuments":{"type":"object","description":"documents.<kind>.available on the transaction detail is computed from what is actually stored, and the download route resolves the same rows — the two never disagree. An unavailable entry carries reason: not_generated (PDF, TDD), metadata_only (MLS known from the access point without a stored file), not_received (no MLS), not_stored_for_outbound (an outbound submission is payload-only, the SBDH exists only inside the AS4 message) or not_stored. Optional documents answer 404 with the same reason in error.details; that is an expected state, not a failure. Privileged routes (raw payload, TDD signed download) answer 403 without the peppol:payload:read scope.","required":["invoiceXml","invoicePdf","sbdXml","tddXml","mlsXml"],"properties":{"invoiceXml":{"$ref":"#/components/schemas/DocumentLink"},"invoicePdf":{"$ref":"#/components/schemas/DocumentLink"},"sbdXml":{"$ref":"#/components/schemas/DocumentLink"},"tddXml":{"$ref":"#/components/schemas/DocumentLink"},"mlsXml":{"$ref":"#/components/schemas/DocumentLink"},"payloadXml":{"type":"object","description":"The stored business payload, served as a short-lived signed object-storage URL (303). Same bytes as Invoice XML; a different route with a privileged scope. Integration surface only.","properties":{"available":{"type":"boolean"},"privileged":{"type":"boolean","enum":[true]},"requiredScope":{"type":"string","enum":["peppol:payload:read"]},"contentType":{"type":"string"},"downloadUrl":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true}}}}},"Transaction":{"type":"object","properties":{"transactionId":{"type":"string","example":"txn_1715690640123_a1b2c3d4"},"archived":{"type":"boolean","description":"Whether the document is under the account's Archived tab today (finished, and older than the account's archive period). Informational; an archived document is read, downloaded and reported exactly like any other.","example":false},"direction":{"$ref":"#/components/schemas/Direction"},"status":{"$ref":"#/components/schemas/TransactionStatus"},"documentType":{"type":"string","nullable":true,"description":"For a document sent through this API, `invoice`, `creditNote`, `selfBillingInvoice` or `selfBillingCreditNote`. For a received document, the document type as the access point reported it (normally the full Peppol document type identifier).","example":"invoice"},"documentTypeId":{"type":"string","nullable":true,"description":"Full Peppol document type identifier. Set for documents sent through this API; otherwise null (read `documentType`)."},"processId":{"type":"string","nullable":true,"example":"urn:peppol:bis:billing"},"sender":{"$ref":"#/components/schemas/ParticipantRef"},"receiver":{"$ref":"#/components/schemas/ParticipantRef"},"correlationId":{"type":"string","nullable":true,"description":"The `correlationId` sent with the submit, or the one AZDAN generated (`cor_…`)."},"apCoreMessageId":{"type":"string","nullable":true,"description":"AP Core / AS4 message ID."},"as4MessageId":{"type":"string","nullable":true,"description":"Alias of apCoreMessageId for convenience."},"sbdhInstanceId":{"type":"string","nullable":true},"environment":{"$ref":"#/components/schemas/Environment"},"sizeBytes":{"type":"integer","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"failedAt":{"type":"string","format":"date-time","nullable":true},"failureReason":{"type":"string","nullable":true,"description":"Why the transaction failed, when `status` is `failed`."},"idempotencyKey":{"type":"string","nullable":true,"description":"The `Idempotency-Key` the document was submitted with, if any."},"documents":{"$ref":"#/components/schemas/TransactionDocuments"},"storage":{"$ref":"#/components/schemas/StorageSummary"}}},"CursorPagination":{"type":"object","required":["mode","limit","hasNext"],"properties":{"mode":{"type":"string","const":"cursor"},"limit":{"type":"integer"},"nextCursor":{"type":"string","nullable":true,"description":"Token for the next page; send it unchanged as `cursor`. Null on the last page."},"prevCursor":{"type":"string","nullable":true,"description":"Always null. Cursors only move forward."},"hasNext":{"type":"boolean"}}},"PagePagination":{"type":"object","required":["page","pageSize","total","totalPages","hasMore"],"properties":{"page":{"type":"integer"},"pageSize":{"type":"integer"},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}}},"CursorListResponse":{"type":"object","required":["items","pagination"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}},"pagination":{"$ref":"#/components/schemas/CursorPagination"}}},"PageListResponse":{"type":"object","required":["transactions","pagination"],"properties":{"transactions":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}},"WebhookEvent":{"type":"object","properties":{"eventId":{"type":"string","example":"evt_ap_a1b2c3d4e5f60718"},"type":{"$ref":"#/components/schemas/WebhookEventType"},"deliveryStatus":{"type":"string","enum":["pending","in_flight","delivered","failed","dead"],"description":"Delivery state of the event: `pending` (waiting to be sent),\n`in_flight` (being sent), `delivered` (an endpoint answered 2xx, or\nno enabled webhook subscribes to this event type — `lastError`\nthen says `filtered_by_subscription`), `failed` (the last attempt\nfailed; another will follow), `dead` (given up after the last\nattempt, or no enabled webhook exists — `no_active_webhook`).\n"},"payload":{"type":"object","nullable":true,"description":"The event's data; the fields depend on the event type. It carries\nthe `documents` object when the document lookup succeeded. For\n`transaction.tdd_generated`, the legacy `tddDownloadUrl` field is\nkept and `documents.tddXml` points at the same TDD. `sender` and\n`receiver` are Peppol ID strings in events raised by the access\npoint and objects (`participantId`, `name`) in `document.*`,\n`transaction.submitted` events.\n","properties":{"event":{"type":"string"},"transactionId":{"type":"string"},"status":{"type":"string"},"direction":{"type":"string"},"environment":{"type":"string"},"sender":{"description":"Sender Peppol ID — a string, or an object with `participantId` and `name`.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ParticipantRef"}]},"receiver":{"description":"Receiver Peppol ID — a string, or an object with `participantId` and `name`.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ParticipantRef"}]},"documentType":{"type":"string"},"processId":{"type":"string"},"correlationId":{"type":"string"},"apMessageId":{"type":"string"},"sbdhInstanceId":{"type":"string"},"tddDownloadUrl":{"type":"string","nullable":true,"description":"Legacy TDD download URL retained for backward compatibility on `transaction.tdd_generated`.","example":"/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/tdd/download"},"documents":{"$ref":"#/components/schemas/TransactionDocuments"}}},"createdAt":{"type":"string","format":"date-time"},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"attempts":{"type":"integer","description":"Delivery attempts made so far."},"lastError":{"type":"string","nullable":true,"description":"A short code for the last failure (for example `http_503`, `network:timeout`), or why nothing was sent (`filtered_by_subscription`, `no_active_webhook`). Null after a clean delivery."}}},"EventsResponse":{"type":"object","required":["events"],"properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEvent"}}}},"ApEnrichment":{"type":"object","description":"What the access point recorded for the transaction. When no access\npoint record matches, the object is just `{ \"linked\": false }`; the\nother fields are present only when `linked` is true.\n","required":["linked"],"properties":{"linked":{"type":"boolean","description":"Whether an access point record was found for this transaction."},"direction":{"$ref":"#/components/schemas/Direction"},"apTransactionId":{"type":"string","description":"The access point's own id of the document. Webhook events raised by the access point are recorded under this id."},"status":{"type":"string","nullable":true,"description":"The access point's own status, in its own words (for an outbound document for example `sending`, `sent`, `permanently_failed`). Read `transaction.status` for the status to act on."},"as4MessageId":{"type":"string","nullable":true,"description":"AS4 transport message ID."},"sbdhInstanceId":{"type":"string","nullable":true},"messageId":{"type":"string","nullable":true,"description":"Same as as4MessageId (legacy alias)."},"documentType":{"type":"string","nullable":true},"processId":{"type":"string","nullable":true},"sender":{"type":"string","nullable":true,"description":"Normalised sender participant ID (without URI prefix)."},"receiver":{"type":"string","nullable":true,"description":"Normalised receiver participant ID (without URI prefix)."},"createdAt":{"type":"string","format":"date-time","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"errorDetails":{"type":"string","nullable":true,"description":"The access point's error text when sending failed."},"mlsStatus":{"type":"string","nullable":true,"enum":["pending","received_ap","received_ab","received_re","not_applicable",null],"description":"MLS values are lower-case, exactly as stored. ap.mlsStatus / ap.mlsReceivedAt / ap.mlsId / ap.mlsType / ap.mlsErrorCode / ap.mlsErrorMessage are metadata on the enriched detail; documents.mlsXml is available only when an MLS XML file is actually stored — for outbound documents it is normally not. Outbound only.","example":"received_ap"},"mlsReceivedAt":{"type":"string","format":"date-time","nullable":true,"description":"When the MLS was received. Outbound only."},"mlsId":{"type":"string","nullable":true,"description":"Identifier of the MLS document. Outbound only."},"mlsType":{"type":"string","nullable":true,"description":"MLS document type recorded by the access point (either direction)."},"mlsErrorCode":{"type":"string","nullable":true,"description":"Error code carried by a negative MLS (received_re). Outbound only."},"mlsErrorMessage":{"type":"string","nullable":true,"description":"Error message carried by a negative MLS (received_re). Outbound only."},"isTdd":{"type":"boolean","description":"True only when THIS access-point row is itself a UAE Tax Data Document\ntransport. For an invoice or credit note it is always false — it does not\nsay whether a TDD was generated for the document (use GET\n…/transactions/{transactionId}/tdd for that).\n"},"tddStatus":{"type":"string","nullable":true,"description":"Status of this row when it is itself a TDD transport; always null for an\ninvoice or credit note. The generated TDD's delivery status is tdd.status\non GET …/transactions/{transactionId}/tdd.\n"}}},"StorageInfo":{"type":"object","nullable":true,"description":"The main file stored for the transaction, or `null` when nothing is\nstored: where it is kept, what kind of file it is and its size. The\nname of the object in storage is not part of the answer (the fields\n`objectKey` and `s3Key` were removed; they could not be used to\ndownload anything). Download through `documents.<kind>.downloadUrl`.\n","properties":{"driver":{"type":"string","enum":["oci","s3","local"],"description":"Where the file is kept. `oci` / `s3` — object storage; `local` — the API's own storage."},"contentType":{"type":"string","example":"application/xml"},"fileType":{"type":"string","enum":["payload","sbdh","mlr","mdn","envelope","attachment","receipt","tdd_xml"]},"sizeBytes":{"type":"integer"},"cleanupStatus":{"type":"string","enum":["clean","pending_cleanup"],"description":"`pending_cleanup` while an older local copy of the file still exists next to the stored one. Informational."}}},"StorageSummary":{"type":"object","description":"Added to a list item when the list is called with `include=storage` and a file is stored for the transaction.","properties":{"driver":{"type":"string","enum":["oci","s3","local"],"description":"Where the file is kept (object storage or the API's own storage)."},"fileType":{"type":"string","description":"What the file is (`payload` for the business document)."},"sizeBytes":{"type":"integer"}}},"FileInfo":{"type":"object","properties":{"name":{"type":"string","description":"Original filename or generated name."},"contentType":{"type":"string","example":"application/xml"},"sizeBytes":{"type":"integer"},"storage":{"type":"string","enum":["oci","s3","local"]}}},"PlatformMeta":{"type":"object","description":"Platform-specific metadata for the transaction.","properties":{"transactionId":{"type":"string"},"status":{"$ref":"#/components/schemas/TransactionStatus"},"correlationId":{"type":"string","nullable":true},"idempotencyKey":{"type":"string","nullable":true},"validation":{"type":"object","properties":{"engine":{"type":"string","nullable":true}}},"webhookSummary":{"type":"object","nullable":true,"properties":{"totalEvents":{"type":"integer"},"lastEventType":{"type":"string","nullable":true},"lastEventStatus":{"type":"string","nullable":true},"lastEventAt":{"type":"string","format":"date-time","nullable":true}}}}},"TransactionLinks":{"type":"object","description":"Paths of the related operations for this transaction, relative to the API host.","properties":{"self":{"type":"string"},"events":{"type":"string"},"xml":{"type":"string"}}},"EnrichedTransactionDetail":{"type":"object","required":["transaction","platform","ap","storage","files","documents","links"],"properties":{"transaction":{"$ref":"#/components/schemas/Transaction"},"platform":{"$ref":"#/components/schemas/PlatformMeta"},"ap":{"$ref":"#/components/schemas/ApEnrichment"},"storage":{"$ref":"#/components/schemas/StorageInfo"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FileInfo"}},"documents":{"$ref":"#/components/schemas/TransactionDocuments"},"links":{"$ref":"#/components/schemas/TransactionLinks"}}},"WebhookDeliveryV2":{"type":"object","description":"Shape of the HTTP POST body sent to a webhook whose `payloadVersion` is\n`\"2\"` (the default for new webhooks). Facts come from the platform\nledger row of the transaction where it is known; otherwise from the\nevent itself and `null` where unknown. `data` is the v1 `payload`\nobject unchanged, so nothing a v1 receiver saw is lost.\n","required":["version","eventId","eventType","occurredAt","tenantId"],"properties":{"version":{"type":"string","enum":["2"]},"eventId":{"type":"string","description":"Stable, unique id of the event; the same on every retry (also sent as X-Azdan-Event-Id and Idempotency-Key)."},"eventType":{"type":"string","description":"The topic's v2 name (e.g. document.delivered)."},"legacyType":{"type":"string","nullable":true,"description":"The v1 name of the topic when it has one (e.g. ap.outbound.delivered)."},"occurredAt":{"type":"string","format":"date-time"},"webhookId":{"type":"string"},"tenantId":{"type":"string"},"companyId":{"type":"string","nullable":true,"description":"The subsidiary (company) of the tenant the transaction belongs to."},"transactionId":{"type":"string","nullable":true,"description":"The platform transaction id (txn_…) when known."},"apTransactionId":{"type":"string","nullable":true,"description":"The access point's own id of the document when the event came from the AP."},"environment":{"$ref":"#/components/schemas/Environment"},"document":{"type":"object","properties":{"kind":{"type":"string","description":"invoice, credit_note, self_billing_invoice, self_billing_credit_note, tdd, mls, report or other."},"number":{"type":"string","nullable":true},"typeCode":{"type":"string","nullable":true},"issueDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"direction":{"$ref":"#/components/schemas/Direction"},"documentTypeId":{"type":"string","nullable":true},"processId":{"type":"string","nullable":true},"currency":{"type":"string","nullable":true},"amount":{"type":"number","nullable":true,"description":"Payable amount."},"taxAmount":{"type":"number","nullable":true},"netAmount":{"type":"number","nullable":true},"supplierName":{"type":"string","nullable":true},"customerName":{"type":"string","nullable":true}}},"counterparty":{"type":"object","description":"The other party from the tenant's point of view.","properties":{"role":{"type":"string","enum":["sender","receiver"]},"participantId":{"type":"string","nullable":true},"name":{"type":"string","nullable":true}}},"sender":{"$ref":"#/components/schemas/ParticipantRef"},"receiver":{"$ref":"#/components/schemas/ParticipantRef"},"status":{"type":"object","properties":{"transaction":{"type":"string","nullable":true,"description":"The platform status (queued","sending":null,"delivered":null,"failed":null,"received":null,"quarantined).":null},"previous":{"type":"string","nullable":true},"accessPoint":{"type":"string","nullable":true},"failureReason":{"type":"string","nullable":true},"failureStage":{"type":"string","nullable":true},"deliveredAt":{"type":"string","nullable":true},"failedAt":{"type":"string","nullable":true}}},"identifiers":{"type":"object","properties":{"correlationId":{"type":"string","nullable":true},"as4MessageId":{"type":"string","nullable":true},"sbdhInstanceId":{"type":"string","nullable":true}}},"mls":{"type":"object","description":"Present on MLS topics.","properties":{"status":{"type":"string","nullable":true,"description":"received_ap","received_ab":null,"received_re or pending.":null},"outcome":{"type":"string","nullable":true,"enum":["accepted","acknowledged","rejected"]},"type":{"type":"string","nullable":true},"reasonCode":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true},"receivedAt":{"type":"string","nullable":true},"mlsId":{"type":"string","nullable":true},"previousStatus":{"type":"string","nullable":true}}},"tdd":{"type":"object","description":"Present on Tax Data Document topics.","properties":{"apTddTransactionId":{"type":"string","nullable":true},"outcome":{"type":"string","nullable":true,"enum":["accepted","rejected"]},"reasonCode":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true},"generatedAt":{"type":"string","nullable":true},"reportedAt":{"type":"string","nullable":true},"sha256":{"type":"string","nullable":true},"sizeBytes":{"type":"integer","nullable":true},"downloadUrl":{"type":"string","nullable":true}}},"issues":{"type":"array","description":"Present on document.rejected — the validation issues.","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"xpath":{"type":"string"},"severity":{"type":"string"}}}},"documents":{"$ref":"#/components/schemas/TransactionDocuments"},"data":{"type":"object","description":"The v1 `payload` object, unchanged."}},"example":{"version":"2","eventId":"evt_ap_a1b2c3d4e5f60718","eventType":"document.delivered","legacyType":"ap.outbound.delivered","occurredAt":"2026-05-14T10:00:03.000Z","webhookId":"whk_1715690000000_k3j9a1","tenantId":"tnt_acme","companyId":"sub_1715690000000_a1b2","transactionId":"txn_1715690640123_a1b2c3d4","apTransactionId":"683a1f2e4b0c9d7e1f2a3b4c","environment":"production","document":{"kind":"invoice","number":"INV-10001","typeCode":"380","issueDate":"2026-05-14","dueDate":"2026-06-13","direction":"outbound","documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","currency":"AED","amount":1050,"taxAmount":50,"netAmount":1000,"supplierName":"Acme Trading LLC","customerName":"Gulf Buyer LLC"},"counterparty":{"role":"receiver","participantId":"0235:1000000002","name":"Gulf Buyer LLC"},"sender":{"participantId":"0235:1000000001","name":"Acme Trading LLC"},"receiver":{"participantId":"0235:1000000002","name":"Gulf Buyer LLC"},"status":{"transaction":"delivered","previous":null,"accessPoint":"sent","failureReason":null,"failureStage":null,"deliveredAt":"2026-05-14T10:00:03.000Z","failedAt":null},"identifiers":{"correlationId":"cor_1715690640123_e5f6a7b8","as4MessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"i-1715690640123"},"documents":{"invoiceXml":{"available":true,"fileName":"INV-10001.xml","contentType":"application/xml","downloadUrl":"https://api.example.com/api/v1/integrations/peppol/transactions/txn_1715690640123_a1b2c3d4/files/invoice-xml"}},"data":{"event":"ap.outbound.delivered","direction":"outbound","status":"sent"}}},"WebhookDelivery":{"type":"object","description":"Shape of the HTTP POST body sent to a webhook whose payload version is\n1: `eventId`, `type`, `tenantId`, `transactionId`, `payload` and\n`occurredAt`. `payload` depends on the event; the properties listed\nare the ones events raised by the access point carry.\n","properties":{"eventId":{"type":"string","description":"Stable, unique id of the event; the same on every retry (also sent as X-Azdan-Event-Id and Idempotency-Key)."},"type":{"$ref":"#/components/schemas/WebhookEventType"},"transactionId":{"type":"string","nullable":true,"description":"The id the event is recorded under — the platform transaction id (`txn_…`) for events the platform raises, the access point's id of the document for events the access point raises. Null for `document.rejected` and `webhook.test`."},"tenantId":{"type":"string"},"payload":{"type":"object","properties":{"event":{"type":"string"},"direction":{"$ref":"#/components/schemas/Direction"},"transactionId":{"type":"string"},"status":{"type":"string"},"environment":{"$ref":"#/components/schemas/Environment"},"sender":{"type":"string"},"receiver":{"type":"string"},"documentType":{"type":"string"},"processId":{"type":"string"},"correlationId":{"type":"string"},"apMessageId":{"type":"string"},"sbdhInstanceId":{"type":"string"},"documents":{"$ref":"#/components/schemas/TransactionDocuments"},"createdAt":{"type":"string","format":"date-time"}}},"occurredAt":{"type":"string","format":"date-time","description":"When the event was recorded."}},"x-azdan-notes":"Every delivery includes an X-AZDAN-Signature header for HMAC-SHA256 verification.\nFormat: t=<unix_timestamp>,v1=<hex_hmac>[,v1=<hex_hmac of the previous secret>]\nThis is the payload-v1 envelope; webhooks with payloadVersion \"2\" receive WebhookDeliveryV2.\n","examples":[{"eventId":"evt_ap_a1b2c3d4e5f60718","type":"ap.outbound.delivered","tenantId":"tnt_acme","transactionId":"683a1f2e4b0c9d7e1f2a3b4c","payload":{"event":"ap.outbound.delivered","direction":"outbound","sender":"0235:1000000001","receiver":"0235:1000000002","documentType":"peppol-doctype-wildcard::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"cenbii-procid-ubl::urn:peppol:bis:billing","status":"sent","correlationId":"cor_1715690640123_e5f6a7b8","apMessageId":"f0debc61-215c-4d16-9d33-ca5d126ccbb3@peppol.azdanapps.com","sbdhInstanceId":"6c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","environment":"production","subsidiaryId":"sub_1715690000000_a1b2","createdAt":"2026-05-14T10:00:01.000Z","completedAt":"2026-05-14T10:00:04.000Z","documents":{"invoiceXml":{"available":true,"fileId":"fil_1715690640200_c3d4e5f6","fileName":"txn_1715690640123_a1b2c3d4.xml","contentType":"application/xml","downloadUrl":"https://api.example.com/api/v1/integrations/peppol/transactions/683a1f2e4b0c9d7e1f2a3b4c/files/invoice-xml"},"invoicePdf":{"available":false,"fileId":null,"fileName":null,"contentType":"application/pdf","downloadUrl":null,"reason":"not_generated"},"sbdXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_stored"},"tddXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_generated"},"mlsXml":{"available":false,"fileId":null,"fileName":null,"contentType":"application/xml","downloadUrl":null,"reason":"not_received"}},"tenantId":"tnt_acme","transactionId":"683a1f2e4b0c9d7e1f2a3b4c"},"occurredAt":"2026-05-14T10:00:04.000Z"}]},"ValidateRequest":{"type":"object","additionalProperties":false,"description":"The request envelope. It is strict: a property that is not listed\nhere is refused with 400 `VALIDATION`. Send `payload` with\n`inputType: json` and `xml` with `inputType: xml`. The whole JSON\nbody may be at most 1 MB.\n","required":["inputType","documentType","senderPeppolId","receiverPeppolId"],"properties":{"inputType":{"$ref":"#/components/schemas/InputType"},"environment":{"$ref":"#/components/schemas/Environment"},"documentType":{"$ref":"#/components/schemas/SubmittableDocumentType"},"senderPeppolId":{"type":"string","minLength":3,"pattern":"^[0-9]{4}:.+$","description":"Sender Peppol ID as `scheme:value`, where scheme is a four-digit code of the current OpenPeppol participant scheme list (for a UAE participant `0235` and the ten-digit TIN). Must be the seller named in the document (the buyer, for a self-billing document). At most 200 characters.","example":"0235:1000000001"},"receiverPeppolId":{"type":"string","minLength":3,"pattern":"^[0-9]{4}:.+$","description":"Receiver Peppol ID as `scheme:value`. Must be the buyer named in the document (the seller, for a self-billing document). At most 200 characters.","example":"0235:1000000002"},"payload":{"type":"object","description":"The invoice or credit note data (`inputType: json` only; required then). Its fields are checked by the document rules and reported as `PINT_VALIDATION_FAILED`; see the request examples."},"xml":{"type":"string","minLength":20,"description":"The complete UBL 2.1 document as a string (`inputType: xml` only; required then). UTF-8, no DOCTYPE or entity declarations."},"correlationId":{"type":"string","minLength":1,"maxLength":120,"description":"Your own reference for the request. Accepted here for symmetry with submit; a dry run does not store it."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":120,"description":"Accepted so the same body can be sent to validate and submit; ignored by a dry run."},"forceResubmit":{"type":"boolean","description":"Accepted so the same body can be sent to validate and submit; ignored by a dry run."}}},"SubmitRequest":{"type":"object","additionalProperties":false,"description":"The request envelope — the same as for validate. It is strict: a\nproperty that is not listed here is refused with 400 `VALIDATION`.\nSend `payload` with `inputType: json` and `xml` with\n`inputType: xml`. The whole JSON body may be at most 1 MB.\n","required":["inputType","documentType","senderPeppolId","receiverPeppolId"],"properties":{"inputType":{"$ref":"#/components/schemas/InputType"},"environment":{"$ref":"#/components/schemas/Environment"},"documentType":{"$ref":"#/components/schemas/SubmittableDocumentType"},"senderPeppolId":{"type":"string","minLength":3,"pattern":"^[0-9]{4}:.+$","description":"Sender Peppol ID as `scheme:value`. Must be an active sending participant of your account in the `environment` named, and the seller named in the document (the buyer, for a self-billing document). At most 200 characters.","example":"0235:1000000001"},"receiverPeppolId":{"type":"string","minLength":3,"pattern":"^[0-9]{4}:.+$","description":"Receiver Peppol ID as `scheme:value`. Must be the buyer named in the document (the seller, for a self-billing document). At most 200 characters.","example":"0235:1000000002"},"idempotencyKey":{"type":"string","minLength":1,"deprecated":true,"maxLength":120,"description":"Deprecated legacy alternative to the Idempotency-Key header. Prefer the HTTP header. If both are sent they must have the same value or the API returns IDEMPOTENCY_KEY_CONFLICT. Same 1 to 120 character limit as the header (IDEMPOTENCY_KEY_INVALID)."},"payload":{"type":"object","description":"The invoice or credit note data (`inputType: json` only; required then). Its fields are checked by the document rules and reported as `PINT_VALIDATION_FAILED`; see the request examples."},"xml":{"type":"string","minLength":20,"description":"The complete UBL 2.1 document as a string (`inputType: xml` only; required then). UTF-8, no DOCTYPE or entity declarations."},"correlationId":{"type":"string","minLength":1,"maxLength":120,"description":"Your own reference for this document (for example the ERP's record id). Stored on the transaction, returned by submit, searchable in the list (`correlationId`) and carried by webhooks. When left out AZDAN generates one (`cor_…`)."},"forceResubmit":{"type":"boolean","description":"Only has an effect when the `Idempotency-Key` sent belongs to a transaction that failed before the access point accepted it. `true` sends the document as a NEW transaction (new `transactionId`, the key stays with the failed one) instead of sending the failed transaction again under its own id."}}},"ValidateResponse":{"type":"object","properties":{"valid":{"type":"boolean","description":"Always `true` in a 200 answer."},"documentTypeId":{"type":"string","description":"The Peppol document type identifier the document is sent under."},"processId":{"type":"string","description":"The Peppol process identifier."},"warnings":{"type":"array","description":"Findings that do not stop the document. Empty when there are none.","items":{"$ref":"#/components/schemas/ValidationFinding"}},"phormSkipped":{"type":"boolean","description":"True when the full PINT-AE rules engine did not run and only the structural checks were applied. A submit of such a document is refused with 503 `VALIDATOR_UNAVAILABLE`, except for `test` documents on a development deployment that allows it."},"normalized":{"type":"object","description":"What was read from the document — sender, receiver, document number, dates, currency and totals."}}},"SubmitResponse":{"type":"object","properties":{"transactionId":{"type":"string","description":"The id of the transaction. Use it with the transaction operations."},"status":{"$ref":"#/components/schemas/TransactionStatus"},"valid":{"type":"boolean","description":"Always `true` in a 202 answer."},"documentTypeId":{"type":"string"},"processId":{"type":"string"},"correlationId":{"type":"string","nullable":true,"description":"The `correlationId` you sent, or the one AZDAN generated."},"as4MessageId":{"type":"string","nullable":true,"description":"The AS4 message id the access point assigned. Null when it is not known yet."},"sbdhInstanceId":{"type":"string","nullable":true},"idempotent":{"type":"boolean","description":"True when the `Idempotency-Key` was already used and the original transaction is returned; nothing was sent by this request. `status` is then that transaction's current status and `documents` is left out."},"warnings":{"type":"array","description":"Findings that did not stop the document. Empty when there are none, and on an idempotent replay.","items":{"$ref":"#/components/schemas/ValidationFinding"}},"validatorPhormSkipped":{"type":"boolean","description":"True when the full PINT-AE rules engine did not run for this document. Never true for a `production` document."},"documents":{"$ref":"#/components/schemas/TransactionDocuments"},"message":{"type":"string","description":"A sentence saying what happened — accepted, an idempotent replay, or a failed transaction sent again."}}},"ValidationFinding":{"type":"object","description":"One finding of the document validation.","properties":{"code":{"type":"string","description":"The rule or check that produced the finding (for example `PINT_BR_AE_20`, `UNIT_CODE_REQUIRED`, `SENDER_NOT_OWNED`)."},"severity":{"type":"string","description":"`fatal` for a finding that refuses the document, `warning` for one that does not."},"message":{"type":"string"},"xpath":{"type":"string","description":"Where the finding applies — a path into `payload` in JSON mode, an XPath into the document in XML mode. May be empty."}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"valid":{"type":"boolean","description":"`POST …/validate` only: always `false`, present when the document itself was refused."},"documentTypeId":{"type":"string","description":"`POST …/validate` only, next to `valid`."},"processId":{"type":"string","description":"`POST …/validate` only, next to `valid`."},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code. See the ErrorCatalog schema for every value.","example":"PINT_VALIDATION_FAILED"},"message":{"type":"string","description":"Human-readable error description."},"retryAfterSeconds":{"type":"integer","description":"On 429 only: the seconds to wait before sending the request again (the same number as the `Retry-After` header).","example":42},"budget":{"type":"string","enum":["send","validate","read"],"description":"On 429 `RATE_LIMITED` only: the account's budget that is used up."},"limitPerMinute":{"type":"integer","description":"On 429 `RATE_LIMITED` only: the number of requests a minute that budget allows this account.","example":60},"details":{"description":"More about the error, when there is more. A list of findings\nfor document and idempotency errors (`code`, `message`, and\nfor document findings `severity` and `xpath`); an object for\n`AP_CORE_REJECTED` (`transactionId`, `reason`,\n`upstreamStatus`, the AS4 error), for a missing document\n(`document`, `available`, `reason`, `expected`) and for\nsubscription limits.\n","oneOf":[{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string"},"message":{"type":"string"},"xpath":{"type":"string"}}}},{"type":"object"}]},"issues":{"type":"array","description":"Only with `code` `VALIDATION` — what is wrong with the request parameters or envelope.","items":{"type":"object","properties":{"code":{"type":"string","description":"The kind of problem (for example `invalid_value`, `too_big`, `unrecognized_keys`)."},"path":{"type":"array","description":"The parameter or property the problem is in.","items":{}},"message":{"type":"string"}}}}}}}},"ErrorCatalogEntry":{"type":"object","required":["code","httpStatus","category","title","message"],"description":"One row in the public error catalog. The full catalog is documented\non the Developer Docs page and mirrored at runtime by the\n`peppol.errorCatalog` module in the Platform API.\n","properties":{"code":{"type":"string","description":"Stable error code returned in `error.code`."},"httpStatus":{"type":"integer","description":"HTTP status this code pairs with on the wire."},"category":{"type":"string","enum":["validation","document","xml","participant","idempotency","submission","network","platform"]},"title":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string","description":"Actionable guidance for integrators."}}},"ErrorCatalog":{"type":"object","description":"Authoritative list of the error.code values the integration API\nemits — generated from the runtime catalog and held to it by tests.\nCodes inside error.details[] (PINT-AE rule ids, UNIT_CODE_REQUIRED,\nSELLER_TIN_MISMATCH, …) are documented by the developer contract's\nworked examples. HTTP 429 `RATE_LIMITED` (a rate limit, with\nerror.budget, error.retryAfterSeconds and the RateLimit-* /\nRetry-After headers) and 429 `TOO_MANY_AUTH_FAILURES` belong to the\nlimits, not to an operation, and are not in this list.\n\nCodes the API can also answer that are not in this list, because\nthey belong to the account rather than to this API: 403\n`TENANT_SUSPENDED` (any operation; the account is suspended), and on\na `production` submit 403 `PLAN_LIMIT_REACHED`, `QUOTA_EXHAUSTED`,\n`TRIAL_EXPIRED`, `SUBSCRIPTION_EXPIRED` or `SUBSCRIPTION_INACTIVE`\n(the subscription does not allow another document). On\n`…/files/invoice-pdf`: 422 `INVOICE_PDF_UNREADABLE`, 503\n`INVOICE_PDF_BUSY` and `INVOICE_PDF_UNAVAILABLE`.\n","required":["entries"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/ErrorCatalogEntry"}}},"example":{"entries":[{"code":"VALIDATION","httpStatus":400,"category":"validation","title":"The request envelope failed schema validation","message":"Invalid request","hint":"Read error.issues[] — each entry names the path. A missing or mistyped envelope property, an unknown top-level property (the envelope is strict), a documentType other than invoice / creditNote, or an EAS scheme outside the active OpenPeppol code list all arrive here. Problems INSIDE payload come back as PINT_VALIDATION_FAILED."},{"code":"BAD_REQUEST","httpStatus":400,"category":"validation","title":"The request could not be processed as sent","message":"Bad request","hint":"The message names the problem (for example an unknown document kind on a download route). Correct the request."},{"code":"INVALID_JSON","httpStatus":400,"category":"validation","title":"The request body is not valid JSON","message":"The request body is not valid JSON.","hint":"Send Content-Type: application/json with a complete, well-formed JSON body — check quotes, commas and closing braces. Nothing was processed."},{"code":"PAYLOAD_TOO_LARGE","httpStatus":413,"category":"validation","title":"The request body is too large","message":"The request body is too large.","hint":"JSON request bodies are limited to 1 MB. Send a smaller request. Nothing was processed."},{"code":"UNSUPPORTED_ENCODING","httpStatus":415,"category":"validation","title":"The request body's encoding is not supported","message":"The request body's encoding is not supported.","hint":"Send the JSON body as UTF-8, either uncompressed or with Content-Encoding: gzip or deflate."},{"code":"PINT_VALIDATION_FAILED","httpStatus":400,"category":"document","title":"The document failed validation","message":"Document failed Peppol/PINT validation.","hint":"Inspect error.details[] — each finding carries a code, a message and (for XML) an xpath. Fix the document and validate again; nothing was sent."},{"code":"UNSUPPORTED_DOC_TYPE","httpStatus":400,"category":"document","title":"Document type is not supported","message":"Only invoice and creditNote can be validated or submitted.","hint":"Use documentType invoice or creditNote. Tax Data Documents are system-generated by AZDAN and appear on the invoice transaction; they are never submitted."},{"code":"UNSUPPORTED_CUSTOMIZATION","httpStatus":400,"category":"document","title":"The document is not PINT-AE","message":"The document's CustomizationID is not supported on this route.","hint":"cbc:CustomizationID must be urn:peppol:pint:billing-1@ae-1. Produce a PINT-AE document, or use JSON mode and let AZDAN build it."},{"code":"UNSUPPORTED_PROFILE","httpStatus":400,"category":"document","title":"The document's ProfileID is not the Peppol billing process","message":"The document's ProfileID is not supported on this route.","hint":"cbc:ProfileID must be urn:peppol:bis:billing."},{"code":"DOCUMENT_TYPE_MISMATCH","httpStatus":400,"category":"document","title":"The document is not the declared document type","message":"The document is not the document type declared for this submission.","hint":"documentType invoice needs an <Invoice> root, creditNote a <CreditNote> root, both in the UBL 2.1 namespace."},{"code":"ROOT_MISMATCH","httpStatus":400,"category":"document","title":"XML root element does not match documentType","message":"Document root element does not match the declared documentType.","hint":"invoice → <Invoice>, creditNote → <CreditNote>."},{"code":"XML_NOT_WELL_FORMED","httpStatus":400,"category":"xml","title":"XML is not well-formed","message":"Submitted document is not well-formed XML.","hint":"Unclosed tags, wrong encoding or invalid characters. Validate locally with any XML parser before submitting. UTF-8 only; no BOM."},{"code":"XML_DTD_FORBIDDEN","httpStatus":400,"category":"xml","title":"XML contains a prohibited declaration","message":"DOCTYPE / ENTITY declarations are not permitted in Peppol UBL submissions.","hint":"Remove every <!DOCTYPE>, <!ENTITY>, <!ATTLIST>, <!NOTATION> and <!ELEMENT> declaration and every reference to a non-predefined entity."},{"code":"INVALID_UAE_TIN","httpStatus":400,"category":"participant","title":"A UAE participant id is not a ten-digit TIN","message":"A UAE participant identifier (scheme 0235) is not a ten-digit TIN.","hint":"Under scheme 0235 the participant value is the UAE TIN: exactly ten digits, starting with 1 (e.g. 0235:1002663183). The 15-digit VAT TRN belongs in supplier.taxId / customer.taxId (cac:PartyTaxScheme), never in senderPeppolId, receiverPeppolId, peppolId or cbc:EndpointID."},{"code":"UNSUPPORTED_ENDPOINT_SCHEME","httpStatus":400,"category":"participant","title":"A participant identifier is malformed","message":"A Peppol participant identifier uses an unsupported scheme.","hint":"Use the form NNNN:value with a four-digit EAS code, e.g. 0235:1000000001, and the same scheme in cbc:EndpointID/@schemeID."},{"code":"SENDER_ENDPOINT_MISMATCH","httpStatus":403,"category":"participant","title":"The seller in the document is not the sender","message":"The seller named in the document is not the sender of this submission.","hint":"senderPeppolId must equal the seller's scheme:value (payload.supplier.schemeId:peppolId, or the AccountingSupplierParty EndpointID in XML mode)."},{"code":"RECEIVER_ENDPOINT_MISMATCH","httpStatus":400,"category":"participant","title":"The buyer in the document is not the receiver","message":"The buyer named in the document is not the receiver of this submission.","hint":"receiverPeppolId must equal the buyer's scheme:value (payload.customer.schemeId:peppolId, or the AccountingCustomerParty EndpointID in XML mode)."},{"code":"SENDER_NOT_OWNED","httpStatus":403,"category":"participant","title":"Sender participant is not configured for this tenant","message":"The sender id is not registered as an active sending participant of your tenant in this environment.","hint":"Check Participants in the portal. The sender must be active, outbound or both, and registered in the environment the request names (test | production)."},{"code":"PARTICIPANT_C1_COUNTRY_MISSING","httpStatus":400,"category":"participant","title":"Sender participant has no country code","message":"The sender participant is missing a valid c1CountryCode.","hint":"Ask your AZDAN administrator to set an ISO-3166 alpha-2 country (e.g. AE) on the participant. It is server-owned and cannot be sent in the request."},{"code":"PINT_VALIDATION_ENGINE_ERROR","httpStatus":503,"validate":400,"category":"validation","title":"The validation engine could not run","message":"The PINT-AE validation engine could not run. The document was not validated and was not sent.","hint":"Not a defect in your document. Retry with the same Idempotency-Key; contact AZDAN support if it persists."},{"code":"VALIDATOR_UPSTREAM_ERROR","httpStatus":503,"validate":400,"category":"validation","title":"The validation engine could not be reached","message":"Validation service unavailable.","hint":"Not a defect in your document. Retry with the same Idempotency-Key; contact AZDAN support if it persists."},{"code":"VALIDATOR_UNAVAILABLE","httpStatus":503,"category":"validation","title":"Submit refused because validation did not run","message":"PINT-AE validation did not run. Submit refused to avoid forwarding an unvalidated document.","hint":"Not a defect in your document. Retry with the same Idempotency-Key; contact AZDAN support if it persists."},{"code":"DUPLICATE_DOCUMENT","httpStatus":409,"category":"idempotency","title":"This document number was already sent","message":"The sender has already sent a document of this type with this number.","hint":"A document number can be sent once. error.details[0].existingTransactionId is the earlier transaction: read its status instead of sending again. Use a new number for a new document; a number whose earlier attempt failed can be sent again."},{"code":"IDEMPOTENCY_KEY_INVALID","httpStatus":400,"category":"idempotency","title":"Idempotency key is out of contract","message":"The Idempotency-Key (header, legacy body field, or lookup path) must be 1 to 120 characters.","hint":"Shorten the key. Nothing was persisted: retry the same submission with a key of at most 120 characters."},{"code":"IDEMPOTENCY_KEY_CONFLICT","httpStatus":400,"category":"idempotency","title":"Header and body idempotency keys disagree","message":"Idempotency-Key header and body.idempotencyKey must have the same value when both are provided.","hint":"Send the Idempotency-Key header only; body.idempotencyKey is a legacy property. Note: reusing a key never conflicts on body differences — the original transaction is returned with idempotent: true."},{"code":"AP_CORE_REJECTED","httpStatus":422,"category":"submission","title":"The access point could not send the document","message":"AP Core rejected submission","hint":"The document was valid. Read error.details — it carries the transactionId, the lookup / sending error and any AS4 error code. Confirm the receiver is registered on the Peppol network for PINT-AE."},{"code":"UPSTREAM","httpStatus":502,"category":"network","title":"The access point is unreachable","message":"The access point did not answer or returned an error.","hint":"Retry with the same Idempotency-Key. A transaction may have been created in the failed state; look it up with GET /transactions/by-idempotency/{key} before resubmitting."},{"code":"INVALID_CURSOR","httpStatus":400,"category":"platform","title":"Cursor token is malformed","message":"Invalid cursor format","hint":"Pass only a nextCursor value returned by a previous page. Start a new query without a cursor."},{"code":"CURSOR_FILTER_MISMATCH","httpStatus":400,"category":"platform","title":"Cursor was created with different filters","message":"Cursor was generated with different filters. Start a new query without a cursor.","hint":"Keep the filters identical for every page of one query."},{"code":"NOT_FOUND","httpStatus":404,"category":"platform","title":"Resource not found","message":"The requested resource does not exist or is not visible to this tenant.","hint":"Check the id. Documents belonging to another tenant, and documents that do not exist for a transaction (for example an SBD for an outbound payload-only submission), also answer 404."},{"code":"PAYLOAD_NOT_IN_OBJECT_STORAGE","httpStatus":409,"category":"platform","title":"Document file is not available for download","message":"The XML file for this transaction is not retrievable.","hint":"Try again later. If the issue persists, contact AZDAN support with the transactionId."},{"code":"UNAUTHORIZED","httpStatus":401,"category":"platform","title":"Missing or invalid credentials","message":"The Authorization header was missing, malformed, or rejected.","hint":"Use `Authorization: Bearer azd_…` with an active key issued in the Tenant Console. A revoked key is also refused with 401."},{"code":"FORBIDDEN","httpStatus":403,"category":"platform","title":"API key does not have the required scope","message":"Missing one of scopes: …","hint":"The message lists the scopes accepted by the endpoint. Issue a key with one of them (for example peppol:submit, or peppol:payload:read for raw payload downloads)."},{"code":"API_KEY_CREATOR_NOT_ADMIN","httpStatus":403,"category":"platform","title":"API key's creator can no longer issue keys","message":"This API key was created by a user who can no longer issue keys. Ask an Admin to create a new key.","hint":"A key works only while the user who created it is an active Admin of the account. Ask an Admin to create a new key and replace this one."},{"code":"PREDEFINED_ENDPOINT_SELF_BILLING","httpStatus":422,"category":"submission","title":"Self-billing cannot use a predefined buyer endpoint","message":"A self-billed invoice or credit note cannot be addressed to a PINT-AE predefined buyer endpoint (0235:9900000097, 9900000098 or 9900000099): self-billing needs the buyer on the UAE e-invoicing system (UAE Electronic Invoicing Guidelines 10.3).","hint":"Send the self-billed document to the supplier's own Peppol ID, or issue a normal invoice. Invoices (not self-billed) to the predefined endpoints are accepted and reported to the FTA only."},{"code":"PREDEFINED_ENDPOINT_SCENARIO","httpStatus":400,"category":"validation","title":"Predefined buyer endpoint does not match the transaction type","message":"The buyer endpoint 0235:9900000097 is for a deemed supply; 0235:9900000099 is for an export to a buyer not on Peppol.","hint":"Set the matching transaction type (BTAE-02) or address the buyer by its own Peppol ID."},{"code":"QUERY_TIMEOUT","httpStatus":503,"category":"platform","title":"The search took too long","message":"The search took too long. Narrow it and try again.","hint":"Add a date range or a more specific search term (an ID rather than a name), then retry."},{"code":"INTERNAL","httpStatus":500,"category":"platform","title":"Unexpected error","message":"An unexpected condition prevented the request from completing.","hint":"Retry shortly. If the issue persists, contact AZDAN support with the correlationId."}]}}},"responses":{"ValidationError":{"description":"The request or the document was refused; nothing was stored or sent.\n`error.code` says which: `VALIDATION` for the request envelope\n(findings in `error.issues[]`), `PINT_VALIDATION_FAILED` and the other\ndocument codes for the document (findings in `error.details[]`),\n`IDEMPOTENCY_KEY_INVALID` / `IDEMPOTENCY_KEY_CONFLICT` for the key,\n`INVALID_JSON` for a body that is not JSON. `POST …/validate` adds\n`valid: false`, `documentTypeId` and `processId` next to `error`\nwhen the document itself was refused; `POST …/invoices` answers\n`error` only.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"pintFailed":{"summary":"POST …/validate — The document failed validation (POST …/invoices answers the same error object without valid, documentTypeId and processId)","value":{"valid":false,"documentTypeId":"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1","processId":"urn:peppol:bis:billing","error":{"code":"PINT_VALIDATION_FAILED","message":"Document failed Peppol/PINT validation.","details":[{"code":"PINT_BR_AE_20","severity":"fatal","message":"dueDate (IBT-009) is required when the amount due for payment is greater than zero [ibr-127-ae]","xpath":"/dueDate"}]}}},"envelopeInvalid":{"summary":"The request envelope is wrong (an unknown property and a documentType that cannot be sent)","value":{"error":{"code":"VALIDATION","message":"Invalid request","issues":[{"code":"invalid_value","values":["invoice","creditNote","selfBillingInvoice","selfBillingCreditNote"],"path":["documentType"],"message":"Invalid option: expected one of \"invoice\"|\"creditNote\"|\"selfBillingInvoice\"|\"selfBillingCreditNote\""},{"code":"unrecognized_keys","keys":["notes"],"path":[],"message":"Unrecognized key: \"notes\""}]}}},"idempotencyKeyTooLong":{"summary":"Submit only — the Idempotency-Key is longer than 120 characters","value":{"error":{"code":"IDEMPOTENCY_KEY_INVALID","message":"Idempotency-Key header must be at most 120 characters (received 121).","details":[{"code":"IDEMPOTENCY_KEY_INVALID","message":"Idempotency-Key header must be at most 120 characters (received 121).","maxLength":120,"receivedLength":121}]}}},"invalidJson":{"summary":"The body is not valid JSON","value":{"error":{"code":"INVALID_JSON","message":"The request body is not valid JSON."}}}}}}},"BadRequest":{"description":"A query parameter is outside its range or list of values (`VALIDATION`, findings in `error.issues[]`), or the cursor cannot be used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"parameterInvalid":{"summary":"A parameter is out of range (limit=5000)","value":{"error":{"code":"VALIDATION","message":"Invalid request","issues":[{"origin":"number","code":"too_big","maximum":1000,"inclusive":true,"path":["limit"],"message":"Too big: expected number to be <=1000"}]}}},"dateInvalid":{"summary":"A date filter that is not a date (dateFrom=abc)","value":{"error":{"code":"VALIDATION","message":"Invalid request","issues":[{"code":"custom","path":["dateFrom"],"message":"Must be a date or a date-time, for example 2026-11-01 or 2026-11-01T00:00:00Z"}]}}},"cursorMismatch":{"summary":"Cursor filter mismatch","value":{"error":{"code":"CURSOR_FILTER_MISMATCH","message":"Cursor was generated with different filters. Start a new query without a cursor."}}},"cursorSortMismatch":{"summary":"Cursor used with another sort","value":{"error":{"code":"CURSOR_FILTER_MISMATCH","message":"Cursor was generated with a different sort. Start a new query without a cursor."}}},"invalidCursor":{"summary":"Invalid cursor format","value":{"error":{"code":"INVALID_CURSOR","message":"Invalid cursor format"}}}}}}},"Unauthorized":{"description":"The API key is missing, unknown or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"invalidKey":{"summary":"The key is unknown or revoked","value":{"error":{"code":"UNAUTHORIZED","message":"Invalid API key"}}},"missingKey":{"summary":"No Authorization Bearer header was sent","value":{"error":{"code":"UNAUTHORIZED","message":"Missing API key"}}}}}}},"Forbidden":{"description":"The API key has none of the scopes this operation accepts (the message lists them), or the key or the account may not be used (`API_KEY_CREATOR_NOT_ADMIN`, `TENANT_SUSPENDED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missingScope":{"summary":"The key lacks the scope","value":{"error":{"code":"FORBIDDEN","message":"Missing one of scopes: transactions:read, peppol:submit, peppol:read"}}},"keyCreatorNotAdmin":{"summary":"The user who created the key can no longer issue keys","value":{"error":{"code":"API_KEY_CREATOR_NOT_ADMIN","message":"This API key was created by a user who can no longer issue keys. Ask an Admin to create a new key."}}}}}}},"ForbiddenPayloadScope":{"description":"The API key does not have the scope `peppol:payload:read`. A newly issued key does not; ask for a key with it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"FORBIDDEN","message":"Missing one of scopes: peppol:payload:read"}}}}},"ValidateForbidden":{"description":"The document may not be validated with this key or for this sender.\n`FORBIDDEN` — the key lacks the scope. `SENDER_NOT_OWNED` —\n`senderPeppolId` is not an active sending participant of your account\nin that environment (refused as a submit would refuse it).\n`API_KEY_CREATOR_NOT_ADMIN`, `TENANT_SUSPENDED` — the key or the\naccount may not be used. Nothing was stored or sent.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"SubmitForbidden":{"description":"The document may not be sent with this key, from this sender, or by\nthis account. `FORBIDDEN` — the key lacks the scope.\n`SENDER_NOT_OWNED` — `senderPeppolId` is not an active sending\nparticipant of your account in that environment.\n`SENDER_ENDPOINT_MISMATCH` — the seller in the document is not\n`senderPeppolId`. `PLAN_LIMIT_REACHED`, `QUOTA_EXHAUSTED`,\n`TRIAL_EXPIRED`, `SUBSCRIPTION_EXPIRED`, `SUBSCRIPTION_INACTIVE` —\nthe subscription does not allow another `production` document.\nNothing was stored or sent.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"senderNotOwned":{"summary":"The sender is not a participant of your account","value":{"error":{"code":"SENDER_NOT_OWNED","message":"Sender '0235:1000000001' is not owned by this tenant in 'test'","details":[{"code":"SENDER_NOT_OWNED","message":"Sender '0235:1000000001' is not owned by this tenant in 'test'"}]}}},"missingScope":{"summary":"The key lacks the scope","value":{"error":{"code":"FORBIDDEN","message":"Missing one of scopes: peppol:submit, transactions:submit"}}},"quotaExhausted":{"summary":"The subscription's documents are used up","value":{"error":{"code":"QUOTA_EXHAUSTED","message":"Your subscription allows 1200 document credits in this period and they have all been used. Add a document package or an account to continue.","details":{"pricingModel":"annual","quota":1200,"used":1200,"pending":0,"periodEndsAt":"2027-05-13T20:00:00.000Z"}}}}}}}},"DuplicateDocument":{"description":"This sender already sent a document of this type with this number. Nothing was sent. `error.details[0].existingTransactionId` is the earlier transaction.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"DUPLICATE_DOCUMENT","message":"Document number 'INV-10001' was already sent by 0235:1000000001 (transaction txn_1715690640123_a1b2c3d4, status delivered). A document number can be sent once; use a new number, or read the status of the earlier transaction.","details":[{"code":"DUPLICATE_DOCUMENT","message":"Document number 'INV-10001' was already sent by 0235:1000000001 (transaction txn_1715690640123_a1b2c3d4, status delivered). A document number can be sent once; use a new number, or read the status of the earlier transaction.","xpath":"/invoiceNumber","existingTransactionId":"txn_1715690640123_a1b2c3d4","existingStatus":"delivered"}]}}}}},"PayloadTooLarge":{"description":"The JSON request body is larger than 1 MB. Nothing was processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"PAYLOAD_TOO_LARGE","message":"The request body is too large."}}}}},"SubmitUnprocessable":{"description":"The document is valid but was not sent. `AP_CORE_REJECTED` — the\naccess point could not send it (for example the receiver is not\nregistered on the Peppol network); a transaction was recorded with\nstatus `failed` and `error.details` (an object) carries its\n`transactionId` and the reason. `PREDEFINED_ENDPOINT_SELF_BILLING` —\na self-billed document was addressed to one of the PINT-AE predefined\nbuyer endpoints, which self-billing cannot use; nothing was recorded.\n(An invoice or credit note that is not self-billed IS accepted for\nthose endpoints: it is reported to the FTA only and its transaction\nends as `reported_to_fta`.)\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"receiverNotRegistered":{"summary":"The receiver is not registered on the Peppol network","value":{"error":{"code":"AP_CORE_REJECTED","message":"Receiver '0235:1000000002' is not registered on the Peppol test network, so the document was not sent. Check the Peppol ID with the receiver.","details":{"transactionId":"txn_1715694240456_b2c3d4e5","reason":"RECEIVER_NOT_REGISTERED","receiverPeppolId":"0235:1000000002","upstreamStatus":422,"as4MessageId":null,"sbdhInstanceId":null,"sendingError":"No SMP registration found for the receiver","as4ErrorCode":null,"as4ErrorDetail":null,"as4ErrorDescription":null,"sendingReport":{"overallSuccess":false}}}}},"selfBillingToPredefinedEndpoint":{"summary":"A self-billed document addressed to a predefined buyer endpoint","value":{"error":{"code":"PREDEFINED_ENDPOINT_SELF_BILLING","message":"A self-billed invoice or credit note cannot be addressed to a PINT-AE predefined buyer endpoint (0235:9900000097, 9900000098 or 9900000099): self-billing needs the buyer on the UAE e-invoicing system (UAE Electronic Invoicing Guidelines 10.3).","details":[{"code":"PREDEFINED_ENDPOINT_SELF_BILLING","message":"A self-billed invoice or credit note cannot be addressed to a PINT-AE predefined buyer endpoint (0235:9900000097, 9900000098 or 9900000099): self-billing needs the buyer on the UAE e-invoicing system (UAE Electronic Invoicing Guidelines 10.3)."}]}}}}}}},"NotFound":{"description":"The transaction does not exist in your account. A transaction of another account answers the same.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"NOT_FOUND","message":"Transaction not found"}}}}},"DocumentNotFound":{"description":"The transaction is not in your account, or it has no such document.\n`error.details.reason` says which, and `error.details.expected` is\ntrue when the absence is a normal state rather than a defect.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"documentAbsent":{"summary":"The transaction exists but has no such document","value":{"error":{"code":"NOT_FOUND","message":"SBD XML is not stored for an outbound transaction (the access point builds the envelope inside the AS4 message)","details":{"document":"sbdXml","available":false,"reason":"not_stored_for_outbound","expected":true}}}},"transactionUnknown":{"summary":"No such transaction in your account","value":{"error":{"code":"NOT_FOUND","message":"Transaction not found","details":{"document":"invoiceXml","available":false,"reason":"transaction_not_found","expected":true}}}}}}}},"TddNotFound":{"description":"The transaction is not in your account, or no Tax Data Document has been generated for it (yet). The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"notGenerated":{"summary":"No TDD exists for the transaction yet","value":{"error":{"code":"NOT_FOUND","message":"TDD not found for transaction"}}},"transactionUnknown":{"summary":"No such transaction in your account","value":{"error":{"code":"NOT_FOUND","message":"Transaction not found"}}}}}}},"RateLimited":{"description":"Too many requests in the current minute. With the code\n`RATE_LIMITED` and `error.budget`, the account has used up the\nbudget this operation draws on (`send`, `validate` or `read`);\nthe other budgets are not affected. Without `error.budget`, too\nmany requests came from your address without a valid API key.\n`error.retryAfterSeconds` and the `Retry-After` header give the\nseconds to wait. Wait that long, then send the request again (a\nsubmit with the same `Idempotency-Key`).\n\nThe same status with the code `TOO_MANY_AUTH_FAILURES` means too many\nrequests from your address were refused for a missing or invalid API\nkey in the current minute. Correct the key, wait, then try again.\n","headers":{"Retry-After":{"description":"Seconds to wait before sending the request again.","schema":{"type":"integer"},"example":42},"RateLimit-Limit":{"description":"Requests allowed per window in the budget this request drew on.","schema":{"type":"integer"},"example":60},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"},"example":0},"RateLimit-Reset":{"description":"Seconds until the current window ends.","schema":{"type":"integer"},"example":42},"RateLimit-Policy":{"description":"The limit and the window length in seconds.","schema":{"type":"string"},"example":"60;w=60"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rateLimited":{"summary":"The account's sending budget is used up","value":{"error":{"code":"RATE_LIMITED","message":"Too many sending requests for this account. Try again in 42 seconds.","retryAfterSeconds":42,"budget":"send","limitPerMinute":60}}},"refusedKeys":{"summary":"Too many requests with a missing or invalid API key","value":{"error":{"code":"TOO_MANY_AUTH_FAILURES","message":"Too many requests with a missing or invalid API key from this address. Check the key, wait a minute and try again.","retryAfterSeconds":42}}}}}}},"UpstreamError":{"description":"The access point could not be reached, so the document was not sent.\nA transaction was recorded with status `failed`. Send the request\nagain with the same `Idempotency-Key`: the failed transaction is then\nsent again under the same `transactionId`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"accessPointUnreachable":{"summary":"The access point did not answer","value":{"error":{"code":"UPSTREAM","message":"AP Core submit network error"}}}}}}},"StorageLinkUnavailable":{"description":"The signed download link could not be created. Try again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"UPSTREAM","message":"Object storage download link is unavailable"}}}}},"ValidatorUnavailable":{"description":"The PINT-AE rules engine could not run, so the document was not\nvalidated and was not sent. This is not a defect in your document.\nNothing was recorded: send the request again later, with the same\n`Idempotency-Key`. Codes: `VALIDATOR_UNAVAILABLE`,\n`PINT_VALIDATION_ENGINE_ERROR`, `VALIDATOR_UPSTREAM_ERROR`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"VALIDATOR_UNAVAILABLE","message":"PINT-AE validation did not run. Submit refused to avoid forwarding an unvalidated document."}}}}},"QueryTimeout":{"description":"The search took longer than five seconds and was stopped. Narrow it with a date range or a more specific filter and try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"QUERY_TIMEOUT","message":"The search took too long. Narrow it and try again."}}}}}}},"servers":[{"url":"https://peppol.azdanapps.com","description":"Production (this environment)"}],"webhooks":{"transactionEvent":{"post":{"operationId":"receiveWebhookEvent","tags":["5. Webhooks (sent to your endpoint)"],"summary":"Receive a transaction event","description":"AZDAN sends an HTTPS POST with a JSON body to every enabled endpoint subscribed to the event.\n\n**Verify the signature before trusting the body.** `X-Azdan-Signature` is `t=<unix seconds>,v1=<hex>`: compute HMAC-SHA256 of the text `<t>.<raw body>` with the endpoint's signing secret and compare it, in constant time, with each `v1` value (for 24 hours after you rotate the secret a second `v1`, signed with the previous secret, is also sent). Refuse a delivery whose `t` is more than 300 seconds from your clock.\n\n**Authentication to your endpoint.** Every delivery is signed, whichever method you choose. If your endpoint also asks callers to identify themselves, choose one for the webhook (Tenant Console › Webhooks › Authentication): Basic (`Authorization: Basic <base64 of user:password>`), an API key in a header you name, custom headers (for example a client id and a client secret in two headers), or OAuth 2.0 client credentials — AZDAN posts `grant_type=client_credentials` with your client id and secret (in the body, or as a Basic header) to your token URL, keeps the access token until shortly before it expires and sends `Authorization: Bearer <access token>`; a 401 or 403 from your endpoint makes it fetch one new token and send the event once more. Credentials are stored encrypted and never shown again. AZDAN calls only `https` addresses on the public internet, for the endpoint and for the token URL, and follows no redirects.\n\n**Answer 2xx within 10 seconds**, then do your processing. Any other answer, or no answer, is tried again: up to 8 attempts in all, with growing waits (30 seconds, then 1, 2, 4, 8, 16 and 32 minutes); `Retry-After` on a 429 or 503 is respected. After the last attempt the event is kept as a dead letter, which you can see and send again from the Tenant Console, and the account's administrators are told by e-mail (at most once a day per endpoint). While a webhook is paused its events are kept for up to 7 days and sent when it is resumed.\n\n**Expect repeats.** The same event can arrive more than once; `X-Azdan-Event-Id` (also sent as `Idempotency-Key`) is the same on every attempt, so store it and ignore one you have already processed.\n\nA webhook created now sends payload version 2 (`WebhookDeliveryV2`); an older one, or one set to version 1, sends `WebhookDelivery`. `X-Azdan-Payload-Version` says which.","security":[],"parameters":[{"name":"X-Azdan-Signature","in":"header","required":true,"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256>`; a second `v1=` for 24 hours after a secret rotation.","schema":{"type":"string"},"example":"t=1778752800,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"X-Azdan-Timestamp","in":"header","required":true,"description":"When the delivery was sent, ISO 8601 (UTC). For reading only: verify with `t` in the signature.","schema":{"type":"string"},"example":"2026-05-14T10:00:00.000Z"},{"name":"X-Azdan-Event-Id","in":"header","required":true,"description":"The event's id: the same on every attempt of this event.","schema":{"type":"string"},"example":"evt_txn_submitted_abc123"},{"name":"Idempotency-Key","in":"header","required":true,"description":"The same value as `X-Azdan-Event-Id`.","schema":{"type":"string"},"example":"evt_txn_submitted_abc123"},{"name":"X-Azdan-Webhook-Id","in":"header","required":true,"description":"The id of the webhook (endpoint) this delivery belongs to.","schema":{"type":"string"},"example":"wh_0123456789abcdef"},{"name":"X-Azdan-Payload-Version","in":"header","required":true,"description":"`2` or `1`: which body shape follows.","schema":{"type":"string"},"example":"2"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/WebhookDeliveryV2"},{"$ref":"#/components/schemas/WebhookDelivery"}]}}}},"responses":{"2XX":{"description":"Received. Any 2xx status within 10 seconds ends the delivery."},"default":{"description":"Anything else (or no answer in 10 seconds) is tried again, up to 8 attempts in all."}}}}}}