Get Transaction
This query returns information for a transaction initiated/authorized via the Transfers API. The reference parameter is a unique identifier for the payment on the client's end.
1
query {
2
getTransaction(reference:"ref000100") {
3
id
4
reference
5
amount
6
sourceBankAccount
7
sourceBankAccountName
8
destinationBankAccount
9
description
10
createdAt
11
status
12
}
13
}
Copied!
Response
1
{
2
"data": {
3
"getTransaction": {
4
"id": "0afc3d1f-eebc-4609-8d78-75e9ad560492",
5
"reference": "ref000100",
6
"amount": 100,
7
"sourceBankAccount": "1234567890",
8
"sourceBankAccountName": "FirstName MiddleName LastName",
9
"destinationBankAccount": "0123456789",
10
"description": "",
11
"createdAt": "2021-08-06 21:24:29.260101 +0100 WAT",
12
"status": "Pending"
13
}
14
}
15
}
Copied!

Request Parameters

Field
Scalar
Required
Description
reference
String
Yes
This is a unique identifier for the payment on the client's end

Response

Field
Scalar
Required
Description
id
String
Yes
This is a unique identifier for the payment on the client's end
reference
String
Yes
This is a unique identifier for the payment on the client's end
amount
Float
Yes
The amount that was to be transferred.
sourceBankAccount
String
Yes
The account number debit was attempted from
sourceBankAccountName
String
Yes
The account name on bank profile debit was attempted from
destinationBankAccount
String
Yes
The account number credit was attempted to
destinationBankCode
String
Yes
The bank code of the destinationAccountNumber
description
String
Yes
Description of the payment status
createdAt
String
Yes
The date the payment was initiated
status
String
Yes
The status of the payment
Last modified 2mo ago