Payment Notifications
This endpoint is used to notify Casava when the policyholder has completed their payment.
Authorizations
Header parameters
api_keyanyRequired
Body
paymentReferencestringRequiredExample:
unique payment reference from the channel used to identify policy holder payment
ref123
policyHolderNumberstringOptionalExample:
policy holder system generated unique identifier
12345678
amountnumberRequiredExample:
payment amount
50
currencystringOptionalExample:
payment amount currency
NGN
paymentDatestringOptionalExample:
transaction payment date
2021-10-23
paymentEffectiveDatestringOptionalExample:
settlement payment date for reconcillation purpose
2021-10-23
paymentChannelstringOptionalExample:
channel used to complete payment
MOBILE
policyNumberstringOptionalExample:
unique reference used to identify a policy with a policy holder
12345623
Responses
200
successful operation
application/json
400
Validation error processing payment notification
application/json
post
POST /api/channel-service/v1/paymentNotifications HTTP/1.1
Host: channel.sandbox.casava.co
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 205
{
"paymentReference": "ref123",
"policyHolderNumber": "12345678",
"amount": 50,
"currency": "NGN",
"paymentDate": "2021-10-23",
"paymentEffectiveDate": "2021-10-23",
"paymentChannel": "MOBILE",
"policyNumber": "12345623"
}
{
"paymentReference": "ref123",
"processingReference": "ref123",
"policyHolderNumber": "12345678",
"amount": 50,
"status": "success"
}
Sample Request
{
"paymentReference": "ref123",
"policyHolderNumber": "080292929215",
"amount": 50,
"currency": "NGN",
"paymentDate": "2021-10-23",
"paymentEffectiveDate": "2021-10-23",
"paymentChannel": "MOBILE",
"policyNumber": "12222070620220118800055"
}
Sample Response
{
"statusCode": 200,
"message": "successful operation",
"data": {
"paymentReference": "ref123",
"policyHolderNumber": "080209934213519",
"amount": 50,
"status": "pending",
"processingReference": "ref123"
}
}
Last updated