Usage

get
https://api.wafeq.com/v1/zatca/usage/

Endpoint for retrieving how many documents the organization can still report to ZATCA production, and the allowance of its current contract term. Submissions beyond the available documents are refused with 402. It also shows how many connected accounts are active in the environment of your API key or of the environment header (production when neither names one), against the limit of an Enterprise contract, which applies to production only.

Headers
string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

string

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