Skip to Content
Transactions & ReportingStatements

Create a test statement

Create a test mode statement to simulate receiving the bank's end-of-day statement. If you're subscribed to webhooks, you'll receive a webhook with the event statements.created.

Associate test mode Transactions with the statement by specifying their IDs in the transactionIds request field. You can then retrieve Transactions associated with this statement using the statementId query parameter of GET /v1/transactions (List Transactions).

This request is only available in test mode.

POST
/v1/statements

Authorization

authorization
headerAuthorizationBearer <SECRET_API_KEY>

Set Your Secret API Key

Header Parameters

Idempotency-Key?string

A unique value, eg. a UUID.

Request Body

application/json
closingBalance?number

The closing balance for the statement. An integer value in the specified currency's smallest unit. E.g., SGD $10 will be represented as 1000 (cents). Can be negative.

openingBalance?number

The opening balance for the statement. An integer value in the specified currency's smallest unit. E.g., SGD $10 will be represented as 1000 (cents). Can be negative.

statementDate?string

Statement date, in the format YYYY-MM-DD.

Format date
transactionIds?array<string>

Test mode Transactions to associate with this statement.

type*string

Statement type. CAMT.053 is the end-of-day statement.

Match ^CAMT.053

Response Body

OK

*/*
bankAccount?StatementBankAccount

The bank account of the statement.

closingBalance?integer

The closing balance for the statement. An integer value in the specified currency's smallest unit. E.g., SGD $10 will be represented as 1000 (cents). Can be negative. Where possible, this is set to the booked/ledger closing balance (corresponding to the balance type CLBD in camt.053).

Format int64
createdAt?string

Time at which the object was created. In ISO 8601 format.

currency?string

Statement currency.

id?string

Unique identifier for this Statement.

openingBalance?integer

The opening balance for the statement. An integer value in the specified currency's smallest unit. E.g., SGD $10 will be represented as 1000 (cents). Can be negative. Where possible, this is set to the booked/ledger opening balance (corresponding to the balance type OPBD in camt.053).

Format int64
statementDate?string

Statement date, in the format YYYY-MM-DD.

type?string

Statement type: what the bank's end-of-day statement came in. CAMT.053 (ISO 20022), MT940 (SWIFT), or BAZ_EXTENDED_MOVEMENTS_REPORT (Banco Azteca's end-of-day statement file).

updatedAt?string

Time at which the object was last updated. In ISO 8601 format.

Example Request
curl -X POST 'https://api.tryacme.com/v1/statements' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "string"
}'
Example Response
{
  "bankAccount": {
    "bank": "string",
    "bankAccountNumber": "string",
    "id": "string"
  },
  "closingBalance": 0,
  "createdAt": "string",
  "currency": "string",
  "id": "string",
  "openingBalance": 0,
  "statementDate": "string",
  "type": "string",
  "updatedAt": "string"
}