List batches

get
https://api.wafeq.com/ae/v1/batches

List the taxpayer's batches that your organization sent, newest first.

Another organization's batches are not listed, even with a grant from the same taxpayer.

Query Params
integerbetween 1 and 100Defaults to 20

How many batches to return: 1 to 100. Defaults to 20.

integer≥ 0Defaults to 0

How many batches to skip, for paging.

Headers
string | null
stringrequired

Taxpayer ID (txpay_…). Required with an organization API key (pk_…) for this taxpayer-specific operation, even for one taxpayer. Not a TIN. Optional with a taxpayer access token, which already names its taxpayer.

string | null

Grant ID (tgr_…) to act through, with an organization API key. The request then has exactly that grant's scopes and fails once the grant is revoked. Without it, the key acts through all of the organization's active grants on the taxpayer.

Response