Retrieve an invoice
Changed onRetrieves a single invoice.
Request
- Base URLhttps://api.wafeq.com/v1
- URLhttps://api.wafeq.com/v1/zatca/prepayment-simplified-invoices/{id}/
- AuthAPI key in header Authorization
Path parameters
The unique identifier of the document.
Headers
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
The unique identifier of the connected account you're operating on behalf of.
Connected accounts should be used only for Platforms and White Label integrations that onboard customers and report documents on their behalf. Omit the X-ZATCA-Connected-Account-Id header when registering devices or reporting documents for your own organization. See the Platforms and White Label guide.
The ZATCA environment to use, one of ['production', 'simulation']. A ZATCA API key (starting with zatca_live_ or zatca_sim_) already names its environment, so the header is optional with it and must match it when sent. Other API keys and OAuth tokens need it.
Response
Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - info
the
headerrequest parameterX-ZATCA-Environmentbecame optional
- breaking