Get payment history¶
Returns a history of payments.
Authentication Required
Requires account user level access.
-
Arguments
accountNumber
:Int
reason
: PaymentReasonOptionsstatus
: AccountPaymentStatusOptionsfirst
:Int
(used for pagination)
-
Returns
Example¶
Get auto top off payment history¶
Returns cleared payments that were applied to top up a payment schedule (applies to customers with a pre-pay agreement).
Note: amount
is returned in cents.
{
"data": {
"account": {
"payments": {
"edges": [
{
"node": {
"status": "CLEARED",
"amount": 5000,
"paymentDate": "2022-08-24",
"reference": "abcd_12345_redacted",
"transactionType": "DD_REGULAR_COLLECTION",
"surchargeAmount": 0
}
},
{
"node": {
"status": "CLEARED",
"amount": 5000,
"paymentDate": "2022-08-01",
"reference": "abcd_12345_redacted",
"transactionType": "DD_REGULAR_COLLECTION",
"surchargeAmount": 0
}
},
{
"node": {
"status": "CLEARED",
"amount": 5000,
"paymentDate": "2022-06-28",
"reference": "abcd_12345_redacted",
"transactionType": "CREDIT_CARD",
"surchargeAmount": 0
}
},
{
"node": {
"status": "CLEARED",
"amount": 5000,
"paymentDate": "2022-06-13",
"reference": "abcd_12345_redacted",
"transactionType": "DD_REGULAR_COLLECTION",
"surchargeAmount": 0
}
},
{
"node": {
"status": "CLEARED",
"amount": 5000,
"paymentDate": "2022-05-28",
"reference": "abcd_12345_redacted",
"transactionType": "DD_REGULAR_COLLECTION",
"surchargeAmount": 0
}
}
]
}
}
}
}