Send an invoice to the buyer, and report it to the FTA.
Wafeq checks the invoice against the UAE e-invoicing rules (PINT-AE), picks its
document type (380 tax invoice or 480 commercial invoice) and looks the buyer up
on Peppol. If the buyer is registered there, Wafeq delivers the invoice to the
buyer's e-invoicing provider. If it isn't, the invoice is reported to the FTA
only, addressed to an FTA placeholder address, where the rules allow it. Either
way, Wafeq reports the invoice to the FTA. In Sandbox, delivery is simulated and
nothing is reported.
The seller is always the taxpayer, taken from its registered profile: you never
send it. For a credit note, use POST /credit-notes. To check an invoice
without sending it, send the same body to POST /invoices/validate.
Send an Idempotency-Key so you can retry safely, and branch on status in the
answer. Live mode needs an active subscription for your organization: without
one you get 402 (subscription_required). If Wafeq can't confirm the billing
status just then, you get 503 (billing_status_unavailable): try again shortly.
Sandbox needs no subscription.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
409Conflict; detail.code says which. idempotency_key_reused: the key was used before with a different body; use a new key for a changed document. idempotency_in_progress or idempotency_unconfirmed: an earlier send with this key hasn't settled yet; wait, then send the same body with the same key. document_already_submitted: a document with this number was already accepted; follow it instead of sending it again. correction_not_ready: Wafeq is still handling the rejected document's report to the FTA; send the same correction again later, with the same key.
503A temporary problem, e.g. the buyer couldn't be looked up on Peppol just now (smp_unavailable), the billing status couldn't be confirmed (billing_status_unavailable), or the send couldn't be saved (idempotency_unavailable). Send it again later with the same Idempotency-Key, never a new one, so it can't be sent twice. queued_delivery_unavailable means new queued delivery is unavailable (for example, disabled): submit without Prefer: respond-async, or retry once queued delivery is enabled. A key already reserved for queued delivery keeps that delivery mode; completed keys still replay.