Statements API
Imported bank, wallet and courier statements, matched to what is owed and reconciled every night.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/statements/formats
List statement formats
The formats this workspace may import by name, from its country pack. An entry stays disabled until someone has written the institution's columns down. Needs statements:read.
Scope statements:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/statements/imports
Import a statement
Reads a statement by a format that is data and keeps the lines not seen before as unmatched. The same line imported twice is stored once. Needs statements:write.
Scope statements:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/statements/lines
List statement lines
The lines in one state, newest first. The default is the unmatched queue. Needs statements:read.
Scope statements:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
state | query | string | No | Which lines. Default `unmatched`. |
limit | query | integer | No | How many. Default 50. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/statements/lines/settle
Settle a waiting line
A person says what a waiting line is: the payment for an item (applied, never more than is still owed), a line that needs no match, or one to look into with the institution. Needs statements:write.
Scope statements:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/statements/items
List what is owed
The open items a payment can be applied to: orders, dues and invoices with what is still owed on each. Needs statements:read.
Scope statements:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/statements/reconciliation
Reconcile now
Runs the nightly matching for this workspace now: lines to open items by the reference the payer quoted, then to the books, then the rest stays in the queue. Running it twice changes nothing the first run settled. Needs statements:write.
Scope statements:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/courier-statements
Match a courier statement
Reads a courier's cash-on-delivery payout statement, keeps every line, matches each to its parcel, and raises a decision card for the owner for each line that does not agree. Needs courier-statements:write.
Scope courier-statements:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |