v1

latestOpenAPI 3.1.12026-07-269084337.9 KB
Debit Note

Download an debit note

Downloads a single debit note.

get/zatca/debit-notes/{id}/download/

Path parameters

idstring required

The unique identifier of the document.

Query parameters

regenerateboolean

If true, the document will be regenerated before download

type'pdf' | 'xml'

The type of the download format

  • pdf - Portable Document Format (PDF) format
  • xml - Extensible Markup Language (XML) format

Headers

X-ZATCA-Branchstring

If the account is under a Group VAT, then it is required to be the TIN of the instance under the Group VAT. Otherwise it is optional and can be used as a branch name

X-ZATCA-Connected-Account-Idstring

The unique identifier of the connected account you're operating on behalf of

X-ZATCA-Environmentstring required

The zatca environment to use, available options are ['production', 'simulation']

Response

string binary required