Clients can retrieve all payment transactions initiated/authorized via the Transfers API by calling the getTransactions
query.
The query can be filtered by status, date range (from and to), and page number.
query {
getTransactions(from:"2021-08-01", to:"2021-09-01") {
transactions {
id
reference
amount
sourceBankAccount
sourceBankAccountName
destinationBankAccount
description
createdAt
status
}
paging{
total
page
pages
}
}
}
{
"data": {
"getTransactions": {
"transactions": [
{
"id": "0afc3d1f-eebc-4609-8d78-75e9ad560492",
"reference": "ref000100",
"amount": 100,
"sourceBankAccount": "1234567890",
"sourceBankAccountName": "FirstName MiddleName LastName",
"destinationBankAccount": "0123456789",
"description": "",
"createdAt": "2021-08-06T21:24:29.260101+01:00",
"status": "Pending"
}
],
"paging": {
"total": 1,
"page": 1,
"pages": 1
}
}
}
}