Generate transaction statements
You can generate a transaction statement with the API. You can also download transaction statements, referred to as transaction confirmations, from your Dashboard.
- The account member has the
canViewAccount
membership permission. - You have a project access token.
- The transaction status is
Booked
. - Subscribe to the
TransactionStatement.Generated
webhook.
API guide​
Step 1: Generate statement​
- Call the
generateTransactionStatement
mutation. - Add the
transactionId
. - Choose the language for your transaction statement.
- Add the success payload and any information you need, such as the transaction statement ID and status.
- Add rejections (not shown).
🔎 Open the mutation in API Explorer
mutation TransactionStatement {
generateTransactionStatement(
input: {
transactionId: "$TRANSACTION_ID"
language: es
}
) {
... on GenerateTransactionStatementSuccessPayload {
__typename
transactionStatement {
createdAt
id
statusInfo {
status
... on PendingTransactionStatementStatusInfo {
__typename
status
}
}
}
}
}
Step 2: Get transaction statement ID​
Get the transactionStatement
> id
from the success payload (line 7).
This is the only way to get the transactionStatement
> id
.
Copy it immediately to use in step 3.
{
"data": {
"generateTransactionStatement": {
"__typename": "GenerateTransactionStatementSuccessPayload",
"transactionStatement": {
"createdAt": "2024-09-26T15:31:38.742Z",
"id": "$TRANSACTION_STATEMENT_ID",
"statusInfo": {
"status": "Pending",
"__typename": "PendingTransactionStatementStatusInfo"
}
}
}
}
}
Step 3: Retrieve download URL​
After generating the transaction statement, you receive a TransactionStatement.Generated
webhook notification letting you know the statement can be downloaded by URL.
The URL is valid for seven days.
- Call the
transactionStatement
query. - Add the
transactionStatement
>id
. - Add
statusInfo
for all statuses. The URL to download the statement is provided instatusInfo
>GeneratedTransactionStatementStatusInfo
>url
(line 11).
🔎 Open the query in API Explorer
query GetStatementUrl {
transactionStatement(id: "$TRANSACTION_STATEMENT_ID") {
createdAt
updatedAt
statusInfo {
status
... on GeneratedTransactionStatementStatusInfo {
__typename
expiresAt
status
url
}
}
}
}
Step 4: Download statement​
Use the url
to download the statement within seven days of generation.
- Copy the
url
from the payload (line 10). - Paste the
url
into your preferred browser. - The document downloads automatically after you press enter.
{
"data": {
"transactionStatement": {
"createdAt": "2024-09-26T16:08:55.512Z",
"updatedAt": "2024-09-26T16:08:55.512Z",
"statusInfo": {
"status": "Generated",
"__typename": "GeneratedTransactionStatementStatusInfo",
"expiresAt": "2024-10-03T16:09:01.286Z",
"url": "$YOUR_DOWNLOAD_URL"
}
}
}
}
If the transaction statement status is Failed
or Expired
, return to step 1 to generate your statement again.
Dashboard​
- On your Dashboard, go to Data > Transactions.
- Open the eligible transaction for which you'd like to download an account confirmation statement (not shown). The transaction status must be
Booked
. - Click Transaction confirmation, triggering the generation and download of the document automatically.
Transaction confirmation statements are only available for incoming and outgoing SEPA Credit Transfers and Instant SEPA Credit Transfers with the status Booked
.
The transaction confirmation button doesn't appear for ineligible transactions.