Collection status call-back
To get notified on successful collections, expose an endpoint to collect the following variables via call back:
Field description
#
Field
Description
Type
1
event
Name of the event
string
2
amountCollected
Value successfully collected in minor
number
3
transactionId
Unique identifier for the transaction
string
4
channel
The channel the transaction occurred
string
5
customerFirstName
Customer first name
string
6
customerLastName
Customer last name
string
7
customerEmail
Customer email
string
8
customerPhoneNumber
Customer phone number
string
9
CurrentPayment
The amount debited from the customer
string
10
loanRef
Unique identifier for the loan
string
11
loanAccountNumber
Account Number of the loan
string
Collection status call-back :
{
"event": "mida.transaction",
"data": {
"collectedAmount": 3000000,
"transactionId": "14cbaa3c-1a7e-4baf-b214-2c4284e10fdf",
"channel": "card",
"customerFirstName": "Samuel",
"customerLastName": "Peters",
"customerEmail": "samuel.peters@example.com",
"customerPhoneNumber": "08353244533",
"currentPayment": "NGN 3,000,000",
"loanAccountNumber": "336364353",
"loanRef": "dvdba3c-1a7e-4baf-b214-dvdve353v44"
}
}Last updated