v1
latestOpenAPI 3.0.02026-07-26168846732.2 KBPayments
Payments - Submit Eligibility Data
Runs eligibility checks (blocklist, card testing guard) and calculates an external surcharge in a single call. Intended to be called by the SDK before the final confirm step.
- If eligibility is denied the response will contain sdk_next_action: deny and no surcharge details.
- If the merchant has no surcharge connector configured, surcharge_details will be null.
- Surcharge calculation is best-effort: if the external call fails the payment still proceeds with surcharge_details: null.
post/payments/{payment_id}/eligibility
Path parameters
payment_idstring required
The identifier for the payment
Request body
Example request
{
"client_secret": "pay_U42c409qyHwOkWo3vK60_secret_el9ksDkiB8hi6j9N78yo",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "24",
"card_exp_year": "24",
"card_cvc": "123",
"card_holder_name": "John Test",
"card_issuer": "chase",
"card_type": "CREDIT",
"card_issuing_country": "INDIA",
"card_issuing_country_code": "IN",
"bank_code": "JP_AMEX",
"nick_name": "John Test"
},
"billing": {
"address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"phone": {
"number": "9123456789",
"country_code": "+1"
}
}
},
"browser_info": {
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
},
"payment_token": "token_abc123xyz"
}Response
Eligibility and surcharge checks successful