Received invoices
List the invoices other businesses issued to the organisation
GET /i/v1/inbound-invoices
invoice.inbound.read; free. Served from the organisation’s mirror of the authority gateway’s feed in the token’s mode, narrowed to its own tax ids (taxpayer.taxIds). Filters: seller, accessPoint, transmissionStatus, paymentStatus (paid|unpaid|partial|rejected|overdue), issueDateFrom/To, receivedFrom/To, amountMin/Max (major units), currency, q, taxId; sort -receivedAt (default) | receivedAt | issueDate | -issueDate | amount | -amount; page, limit ≤ 100 with meta.pagination. A first view reads the feed’s head before answering and the rest in the background (sync.syncing); a gateway outage serves the mirror with sync.error, never an error.
Who can call it: API key or signed-in user.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
seller | query | string | No | The seller: a name (substring, any case) or a TIN (prefix). At most 100 characters. |
accessPoint | query | string | No | The seller’s access point (supplier.app_reference), exact. At most 256 characters. |
transmissionStatus | query | string | No | As the gateway reports it, exact. At most 64 characters. |
paymentStatus | query | string | No | overdue: a due date before today and not paid. One of paid | unpaid | partial | rejected | overdue. |
issueDateFrom | query | string | No | Inclusive. |
issueDateTo | query | string | No | Inclusive. |
receivedFrom | query | string | No | Inclusive (an instant or a day). |
receivedTo | query | string | No | Exclusive for an instant; a calendar day includes that whole day. |
amountMin | query | string | No | Payable amount, MAJOR units, inclusive. |
amountMax | query | string | No | Payable amount, MAJOR units, inclusive. |
currency | query | string | No | |
q | query | string | No | Seller name or TIN, IRN, or the seller’s invoice number (substring, any case). At most 100 characters. |
taxId | query | string | No | One of taxpayer.taxIds (the organisation’s own tax ids in this mode); any other is 400. At most 32 characters. |
sort | query | string | No | One of -receivedAt | receivedAt | issueDate | -issueDate | amount | -amount. Default: -receivedAt. |
page | query | number | No | Default: 1. At least 1. |
limit | query | number | No | Default: 25. Between 1 and 100. |
Example request
Responses
One page: data {items, taxpayer, sync}, meta.pagination the page block.
Errors: 400, 401, 403, 429
One received invoice
GET /i/v1/inbound-invoices/{id}
invoice.inbound.read; free. From the mirror; document (the decrypted authority copy) is read from the gateway once, on the first view, when the mirror does not hold it. 503 only for a row the mirror never held while the gateway is down.
Who can call it: API key or signed-in user.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | At most 128 characters. |
Example request
Responses
The received invoice.
Errors: 401, 403, 404, 429, 503
Analytics over the received invoices
GET /i/v1/inbound-invoices/analytics
invoice.inbound.read; free. The same filters as the list (no sort or page); from the mirror. Amounts are MINOR units in reportingCurrency (the currency filter, else the most common); byCurrency gives each currency’s own.
Who can call it: API key or signed-in user.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
seller | query | string | No | The seller: a name (substring, any case) or a TIN (prefix). At most 100 characters. |
accessPoint | query | string | No | The seller’s access point (supplier.app_reference), exact. At most 256 characters. |
transmissionStatus | query | string | No | As the gateway reports it, exact. At most 64 characters. |
paymentStatus | query | string | No | overdue: a due date before today and not paid. One of paid | unpaid | partial | rejected | overdue. |
issueDateFrom | query | string | No | Inclusive. |
issueDateTo | query | string | No | Inclusive. |
receivedFrom | query | string | No | Inclusive (an instant or a day). |
receivedTo | query | string | No | Exclusive for an instant; a calendar day includes that whole day. |
amountMin | query | string | No | Payable amount, MAJOR units, inclusive. |
amountMax | query | string | No | Payable amount, MAJOR units, inclusive. |
currency | query | string | No | |
q | query | string | No | Seller name or TIN, IRN, or the seller’s invoice number (substring, any case). At most 100 characters. |
taxId | query | string | No | One of taxpayer.taxIds (the organisation’s own tax ids in this mode); any other is 400. At most 32 characters. |
Example request
Responses
The figures.
Errors: 400, 401, 403, 429
Load older received invoices from the authority
POST /i/v1/inbound-invoices/load-older
invoice.inbound.read; free. Reads ONE more page of the gateway’s feed past where the mirror’s walk stopped (it may reach the authority’s own history, and be slow) and stores it; then list the received invoices again. hasMore: false — nothing older to read.
Who can call it: API key or signed-in user.
Example request
Responses
What the page held.
Errors: 401, 403, 429, 503