Send a credit note
Send a credit note, which reduces or cancels an invoice, and report it to the FTA.
A credit note takes the same journey as an invoice (see POST /invoices):
Wafeq checks it, delivers it to the buyer's e-invoicing provider or reports it
to the FTA only, and reports it to the FTA. Wafeq files it as a tax credit note
(381) or a commercial credit note (81).
Say which invoice it credits. For an invoice sent through Wafeq, send its
document_id in previous_document_id. For one issued elsewhere, set
previous_invoice_source to external and send its number, and its issue date
if you have it; keep the original's records in your own system. A volume
discount (credit_note_reason_code VD) credits no single invoice. To cancel an
invoice in full, POST /invoices/{invoice_id}/void builds the credit note for you.
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.
Updated about 2 months ago