Skip to main content

Generate account statement

Generate an account statement for a custom time period.

You can also generate statements on your Dashboard > Data > Accounts. Open the account for which you want to generate a statement, then go to the Account statements tab. Click + New, enter required information, and click Save.

Guide​

  1. Call the generateAccountStatement mutation.
  2. Add the account ID.
  3. Add the opening and closing dates with the following format: YYYY-MM-DDT00:00:00.000Z.
  4. Add all information you'd like to review about the statement (lines 9-19).

Mutation​

🔎 Open the mutation in API Explorer

mutation GenerateAccountStatement {
generateAccountStatement(
input: {
accountId: "$YOUR_ACCOUNT_ID"
openingDate: "2023-11-01T00:00:00.000Z"
closingDate: "2024-11-01T00:00:00.000Z"
}
) {
closingDate
createdAt
fees {
currency
value
}
id
openingDate
period
status
updatedAt
}
}

Payload​

The mutation returns all of the requested information as well as the status Pending (line 13).

{
"data": {
"generateAccountStatement": {
"closingDate": "2024-01-01T00:00:00.000Z",
"createdAt": "2024-01-19T10:08:17.082Z",
"fees": {
"currency": "EUR",
"value": "0"
},
"id": "9b2b9e4f-36ed-40a8-bf8d-7d86bea8c256",
"openingDate": "2023-11-01T00:00:00.000Z",
"period": "Custom",
"status": "Pending",
"updatedAt": "2024-01-19T10:08:17.084Z"
}
}
}