Make Payment
base_url: https://demo.etranzact.com/bankit-api/antPeer/v1
Description: This endpoint is used to make a loan payment
- Sample Request
- Sample Response
Request Parameters
Parameter | Type | Description | Required |
---|---|---|---|
sessionId | string | Session ID | Yes |
reference | string | Client's Reference | Yes |
merchantId | string | Merchant ID | Yes |
phoneNo | integer | Customer’s phone number. This should be preceded with 234 | Yes |
paymentReference | string | Reference for the repayment schedule | Yes |
bank | object | An object holding the bank details of the customer | Yes |
bankName | string | Customer’s Bank Name | Yes |
bankName | string | Customer’s Bank Name | Yes |
bankCode | string | Customer’s Bank Code | Yes |
accountNo | string | Customer’s account number | Yes |
pin | string | Customer transaction PIN. This is to be encrypted using the SHA 256 64 bit encryption algorithm | Yes |
amount | integer | amount to be repaid | Yes |
POST /user/transaction/makePayment
curl `${base_url}/user/transaction/makePayment`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X POST
-d '{
"sessionId": "1uMifUW7I0El3Q3b",
"reference": "1dkD2PLYDL8M1k6LBUI9",
"merchantId": "ANT-PEER",
"phoneNo": 2347065099181,
"paymentReference": "UUWiYZzRp-970_01",
"bank": {
"bankName": "UBA",
"bankCode": "033",
"accountNo": "1022024258"
},
"pin":"3udwo38rhfkle84udndkdo38934744hrnfie93IOU34n3h3u4b4n5nnnwerfgtes",
"amount": 2000
}
'
Response Parameters
Parameter | Type | Description | Mandatory |
---|---|---|---|
status | string | Response Code of the operation. See Response Code in Response table | Yes |
message | string | Response message for the operation. See response message in Response Table | Yes |
data | object | An object holding additional information | Yes |
sessionId | string | Session ID | Yes |
reference | string | Client’s reference | Yes |
phoneNo | string | Customer’s phone number | Yes |
transactionReference | string | Host transaction reference | Yes |
transactionStatus | string | Transaction status | Yes |
statusMessage | string | Transaction status message | Yes |
POST /user/transaction/makePayment
{
"status": "200",
"message": "Successful",
"data": {
"reference": "1625AGHTF64165rB8902",
"sessionId": "4573829305928473",
"phoneNo": "2347065099181",
"transactionReference": "02IVRAD62000B45947",
"transactionStatus": "0",
"statusMessage": "Transaction Successful"
}
}