Get Payment Option API
/payment-optionVerifies a customer's UPI VPA details or checks reward points balance. Supports fetching UPI VPA details based on the payer's phone number, as well as checking reward points balance and card eligibility.
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_methodstring | Type of payment method to check eligibility for. Allowed values: UPIPOINTS |
payment_optionobjectrequired2 nested fields | An object that contains the payment option details.
Use |
order_detailsobject1 nested field | Order details for the points balance check. Required when using points_card_details. |
Response
| Field | Details |
|---|---|
payment_methodstring | The payment method checked. Allowed values: UPIPOINTS |
payment_option_metadataobject1 nested field | Metadata returned for the payment option. |
upi_payment_option_dataobject1 nested field | UPI-specific metadata. |
balanceobject2 nested fields | Card balance details. Returned for points payment method. |
redeemable_amountobject2 nested fields | Redeemable amount details. Returned for points payment method. |
redeemable_pointsinteger | Total redeemable points available on the card. |
is_eligibleboolean | Card eligibility status for pay by points. |
Status Codes
200 | Payment option eligibility or points balance response. |
400 | The request was malformed or missing required fields. |
401 | Authentication failed — missing, expired, or invalid Bearer token. |
422 | Unprocessable Entity — card not eligible or invalid request. |
500 | An unexpected error occurred on the server. |
curl -X POST "https://api.pluralpay.in/payment-option" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"payment_option": {
"upi_details": {
"payer": {
"fetch_vpa": true,
"phone_number": "9876543210"
}
}
},
"payment_method": "UPI"
}'{
"payment_method": "UPI",
"payment_option_metadata": {
"upi_payment_option_data": {
"fetched_vpa": "customer@okaxis"
}
}
}