List invoices
Changed onLists all invoices.
Request
- Base URLhttps://api.wafeq.com/v1
- URLhttps://api.wafeq.com/v1/zatca/invoices/
- AuthAPI key in header Authorization
Query parameters
Issue datetime
Issue datetime
Search the documents by an exact value: the whole search must equal the document number, customer name, customer tax number, reference or any metadata value, ignoring case (INV-123 finds inv-123, never INV-1234). To match one field only, write document.id:<value>, document.customer.name:<value>, document.customer.tax_registration_number:<value>, reference:<value> or metadata.<key>:<value> (quote a metadata key that contains a colon: metadata."<key>":<value>).
A page number within the paginated result set.
Number of results to return per page.
- ERROR - ERROR
- FAILED - FAILED
- PENDING - PENDING
- PROCESSING - PROCESSING
- QUEUED - QUEUED
- REPORTED - REPORTED
- __null__ - null
Status
- ERROR - Error
- FAILED - Failed
- PENDING - Pending
- PROCESSING - Processing
- QUEUED - Queued
- REPORTED - Reported
Supply date
Supply date
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
Example response
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Changes
- breaking
the response property
became nullable for the status - 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