Make a new Insurance credit request for a customer
POST/v1/insurance-credit-requests
Submit a request for insurance credits to be granted a customer based on a purchase made by the customer
Request
- application/json
Body
Details about the transaction
The unique identifier for the transaction on your system
Transaction narration
customer objectrequired
Unique identifier of the customer on your system
The customer's email address
The amount paid by the customer. This would be the sum of the item original amount and markup amount added.
The original price of the product or service purchased by the customer.
Responses
- 201
- 422
created
- application/json
- Schema
- Example (from schema)
Schema
data object
The number of insurance credits issued for the transaction
markup_config object
The markup setting as is agreed and configured on your account as at the time of the transaction
The percentage by which all original prices would be marked up
The maximum markup that should be allowed irrespective of the rate.
{
"data": {
"credits_issued": 10.5,
"total_amount_paid": 20200,
"item_original_price": 20000,
"markup_amount": 200,
"markup_config": {
"rate": "1%",
"max_cap": 1000
},
"currency": "NGN"
}
}
Unprocessable Content