Create Offer EMI
/api/affordability/v1/offer/validateUse this API for validating applied offers.
Bearer token. Get token →Header Parameters
| Field | Details |
|---|---|
Request-Timestampstringdate-time | ISO 8601 UTC timestamp of the request. Used for idempotency and audit. |
Request-IDstring | Use a global unique identifier [GUID] for the request. Constraints Minimum length: 1 characterMaximum length: 50 characters |
Request Bodyrequired
| Field | Details |
|---|---|
payment_methodstringrequired | Type of payment method you want to use to accept a payment. Accepted values:<ul><li> |
order_amountobjectrequired2 nested fields | An object that contains order amount. |
payment_amountobjectrequired2 nested fields | An object that contains the payment amount details after the offer has been applied. Note: Ensure you pass the |
payment_optionobjectrequired4 nested fields | An object that contains the details of the payment options. You can use either |
offer_dataobjectrequired1 nested field | An object that contains details related to the offer. Required for CREDIT_EMI, DEBIT_EMI, CARDLESS_EMI, and UPI payment methods. |
customer_detailsobject1 nested field | An object that contains details related to the customer. |
Response
| Field | Details |
|---|---|
codestring | |
messagestring |
Status Codes
200 | 200 |
400 | 400 |
curl -X POST "https://api.pluralpay.in/api/affordability/v1/offer/validate" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"payment_method": "CREDIT_EMI",
"order_amount": {
"value": 219900,
"currency": "INR"
},
"payment_amount": {
"value": 219900,
"currency": "INR"
},
"payment_option": {
"card_details": {
"card_number": "4000000040001000",
"registered_mobile_number": "9914152866"
}
},
"offer_data": {
"offer_details": {
"id": "6",
"name": "HDFC CC",
"display_name": "HDFC BANK",
"issuer_type": "CC_BANK",
"priority": 1,
"tenure": {
"tenure_id": "6",
"name": "24 Months",
"tenure_type": "MONTH",
"tenure_value": 24,
"issuer_offer_parameters": [
{
"program_type": "BANK_EMI",
"offer_id": "3498",
"offer_parameter_id": "199796"
},
{
"program_type": "MERCHANT_BANK_OFFER",
"offer_id": "3678",
"offer_parameter_id": "203706"
}
],
"details": [
{
"product_code": "xyz",
"product_display_name": "Redmi Note 13 5G",
"brand_name": "Xiaomi",
"product_amount": {
"currency": "INR",
"value": 219900
},
"interest_amount": {
"currency": "INR",
"value": 38508
},
"interest_rate": 16,
"downpayment_amount": {
"currency": "INR",
"value": 200000
},
"after_downpayment_reduced_product_amount": {
"currency": "INR",
"value": 200000
},
"bundle_id": "BUNDLE_002_OE3"
}
],
"auth_amount": {
"currency": "INR",
"value": 219900
},
"loan_amount": {
"currency": "INR",
"value": 219900
},
"net_payment_amount": {
"currency": "INR",
"value": 258408
},
"monthly_emi_amount": {
"currency": "INR",
"value": 10767
},
"total_emi_amount": {
"currency": "INR",
"value": 258408
},
"interest_amount": {
"currency": "INR",
"value": 38508
},
"interest_rate_percentage": 16,
"split_emi_display_name": "Apple Live",
"downpayment_details": {
"downpayment_amount": {
"currency": "INR",
"value": 200000
}
},
"emi_type": "STANDARD"
}
}
}
}'{
"code": "ELIGIBLE",
"message": "Offer is Eligible"
}