curl --request POST \
--url https://api.staging.bnplx.io/payments/{payment_id}/capture \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"amount_to_capture": 5125,
"capture_metadata": {
"invoice_data": {
"delivery_date": "2024-09-02",
"due_date": "2024-09-02",
"invoice_date": "2024-09-02",
"merchant_invoice_ref": "INV-2018000039"
}
},
"metadata": {
"birth_date": "2001-10-19",
"buyer_type": "private_person",
"customer_locale": "en-US",
"device_token": "abcddef",
"gender": "M",
"order_dttm": "2028-10-01 10:10:10.222",
"partner_shop_id": "INTEGRATION_TE_DACH",
"settlement": "settlement1234",
"user_language_code": 208
},
"order_details": [
{
"amount": 5000,
"product_id": "001",
"product_name": "Apple iphone 15",
"quantity": 1,
"tax_percentage": 5,
"total_tax_amount": 125
}
]
}
'{
"allowed_payment_method_types": null,
"amount": 10000,
"amount_cancelled": null,
"amount_capturable": 0,
"amount_received": 10250,
"attempt_count": 1,
"authentication_type": "no_three_ds",
"billing": {
"address": {
"city": "San Fransico",
"country": "DE",
"first_name": "joseph",
"last_name": "Doe",
"line1": "Schönhauser Allee",
"line2": "Harrison Street",
"line3": "Harrison Street",
"state": "California",
"zip": "24000"
},
"email": "guest@example.com",
"phone": {
"country_code": "+49",
"number": "8056594427"
}
},
"birth_date": "2001-10-19",
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"cancellation_reason": null,
"capture_method": "manual_multiple",
"capture_on": null,
"captures": [
{
"amount": 10250,
"authorized_attempt_id": "pay_m7cthQvCluxCi5rfpu69_1",
"capture_id": "pay_m7cthQvCluxCi5rfpu69_1_1",
"capture_sequence": 1,
"connector": "svea",
"connector_capture_id": "476193",
"currency": "EUR",
"error_code": null,
"error_message": null,
"error_reason": null,
"reference_id": null,
"status": "charged"
}
],
"client_secret": "pay_m7cthQvCluxCi5rfpu69_secret_SxeEfmQp6j76ijKY6cT7",
"connector": "svea",
"connector_label": null,
"connector_mandate_id": null,
"connector_transaction_id": "202501313607",
"created": "2025-05-22T12:14:29.694Z",
"currency": "EUR",
"customer": {
"email": "guest@example.com",
"id": "cust_01",
"name": "john doe",
"phone": "177555923",
"phone_country_code": "+91"
},
"customer_id": "cust_01",
"description": "Its my first payment request",
"disputes": null,
"email": "guest@example.com",
"ephemeral_key": null,
"error_code": null,
"error_message": null,
"expires_on": "2025-05-22T12:29:29.694Z",
"external_3ds_authentication_attempted": false,
"frm_message": null,
"frm_metadata": null,
"gender": "male",
"locale": "en_US",
"mandate_data": null,
"mandate_id": null,
"manual_retry_allowed": false,
"merchant_connector_id": "mca_ffitabHi560DWp5QHuk1",
"merchant_id": "merchant_1735914184",
"merchant_order_reference_id": "asdbcdef",
"metadata": {
"birth_date": "2001-10-19",
"buyer_type": "private_person",
"company_name": "Your company GmbH",
"company_vat_id": null,
"customer_locale": "en-GB",
"device_token": "abcddef",
"gender": "M",
"invoice_url": "https://www.google.com",
"legal_form": "gmbh",
"legal_form_category": "einzelunternehmen",
"net_term": 30,
"order_dttm": "2021-10-01 10:10:10.222",
"product_ref": null,
"settlement": "settlement1234",
"user_language_code": 208
},
"name": "john doe",
"net_amount": 10250,
"next_action": null,
"off_session": null,
"order_details": [
{
"amount": 5000,
"brand": null,
"category": null,
"product_id": "i122",
"product_img_link": null,
"product_link": null,
"product_name": "Apple iphone 15",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 100,
"tax_percentage": 10,
"total_tax_amount": null
},
{
"amount": 2000,
"brand": null,
"category": null,
"product_id": "i124",
"product_img_link": null,
"product_link": null,
"product_name": "Apple airpods",
"product_tax_code": null,
"product_type": null,
"quantity": 2,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 10,
"total_tax_amount": null
},
{
"amount": 1000,
"brand": null,
"category": null,
"product_id": "i124",
"product_img_link": null,
"product_link": null,
"product_name": "Apple airpods",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 10,
"total_tax_amount": null
},
{
"amount": 500,
"brand": null,
"category": "shipping_costs",
"product_id": "i123",
"product_img_link": null,
"product_link": null,
"product_name": "Shipping",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 5,
"total_tax_amount": null
},
{
"amount": 500,
"brand": null,
"category": "voucher",
"product_id": "i123",
"product_img_link": null,
"product_link": null,
"product_name": "Voucher",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 5,
"total_tax_amount": null
}
],
"order_tax_amount": 250,
"payment_experience": null,
"payment_id": "pay_m7cthQvCluxCi5rfpu69",
"payment_method": "pay_later",
"payment_method_data": {
"billing": null,
"pay_later": {
"klarna_sdk": null
}
},
"payment_method_id": null,
"payment_method_status": null,
"payment_method_type": "invoice",
"payment_token": null,
"phone": "177555923",
"profile_id": "pro_WzNsrevpecY0FYP7Rd9v",
"refunds": null,
"return_url": "https://google.com/",
"setup_future_usage": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "DE",
"first_name": "joseph",
"last_name": "Doe",
"line1": "Schönhauser Allee",
"line2": "Harrison Street",
"line3": "Harrison Street",
"state": "California",
"zip": "24000"
},
"email": null,
"phone": {
"country_code": "+49",
"number": "8056594427"
}
},
"split_payments": null,
"ssn": "030883-925M",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"status": "succeeded",
"unified_code": null,
"unified_message": null,
"updated": "2025-05-22T12:17:35.527Z"
}Payments - Capture
To capture the funds for an uncaptured payment
curl --request POST \
--url https://api.staging.bnplx.io/payments/{payment_id}/capture \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"amount_to_capture": 5125,
"capture_metadata": {
"invoice_data": {
"delivery_date": "2024-09-02",
"due_date": "2024-09-02",
"invoice_date": "2024-09-02",
"merchant_invoice_ref": "INV-2018000039"
}
},
"metadata": {
"birth_date": "2001-10-19",
"buyer_type": "private_person",
"customer_locale": "en-US",
"device_token": "abcddef",
"gender": "M",
"order_dttm": "2028-10-01 10:10:10.222",
"partner_shop_id": "INTEGRATION_TE_DACH",
"settlement": "settlement1234",
"user_language_code": 208
},
"order_details": [
{
"amount": 5000,
"product_id": "001",
"product_name": "Apple iphone 15",
"quantity": 1,
"tax_percentage": 5,
"total_tax_amount": 125
}
]
}
'{
"allowed_payment_method_types": null,
"amount": 10000,
"amount_cancelled": null,
"amount_capturable": 0,
"amount_received": 10250,
"attempt_count": 1,
"authentication_type": "no_three_ds",
"billing": {
"address": {
"city": "San Fransico",
"country": "DE",
"first_name": "joseph",
"last_name": "Doe",
"line1": "Schönhauser Allee",
"line2": "Harrison Street",
"line3": "Harrison Street",
"state": "California",
"zip": "24000"
},
"email": "guest@example.com",
"phone": {
"country_code": "+49",
"number": "8056594427"
}
},
"birth_date": "2001-10-19",
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"cancellation_reason": null,
"capture_method": "manual_multiple",
"capture_on": null,
"captures": [
{
"amount": 10250,
"authorized_attempt_id": "pay_m7cthQvCluxCi5rfpu69_1",
"capture_id": "pay_m7cthQvCluxCi5rfpu69_1_1",
"capture_sequence": 1,
"connector": "svea",
"connector_capture_id": "476193",
"currency": "EUR",
"error_code": null,
"error_message": null,
"error_reason": null,
"reference_id": null,
"status": "charged"
}
],
"client_secret": "pay_m7cthQvCluxCi5rfpu69_secret_SxeEfmQp6j76ijKY6cT7",
"connector": "svea",
"connector_label": null,
"connector_mandate_id": null,
"connector_transaction_id": "202501313607",
"created": "2025-05-22T12:14:29.694Z",
"currency": "EUR",
"customer": {
"email": "guest@example.com",
"id": "cust_01",
"name": "john doe",
"phone": "177555923",
"phone_country_code": "+91"
},
"customer_id": "cust_01",
"description": "Its my first payment request",
"disputes": null,
"email": "guest@example.com",
"ephemeral_key": null,
"error_code": null,
"error_message": null,
"expires_on": "2025-05-22T12:29:29.694Z",
"external_3ds_authentication_attempted": false,
"frm_message": null,
"frm_metadata": null,
"gender": "male",
"locale": "en_US",
"mandate_data": null,
"mandate_id": null,
"manual_retry_allowed": false,
"merchant_connector_id": "mca_ffitabHi560DWp5QHuk1",
"merchant_id": "merchant_1735914184",
"merchant_order_reference_id": "asdbcdef",
"metadata": {
"birth_date": "2001-10-19",
"buyer_type": "private_person",
"company_name": "Your company GmbH",
"company_vat_id": null,
"customer_locale": "en-GB",
"device_token": "abcddef",
"gender": "M",
"invoice_url": "https://www.google.com",
"legal_form": "gmbh",
"legal_form_category": "einzelunternehmen",
"net_term": 30,
"order_dttm": "2021-10-01 10:10:10.222",
"product_ref": null,
"settlement": "settlement1234",
"user_language_code": 208
},
"name": "john doe",
"net_amount": 10250,
"next_action": null,
"off_session": null,
"order_details": [
{
"amount": 5000,
"brand": null,
"category": null,
"product_id": "i122",
"product_img_link": null,
"product_link": null,
"product_name": "Apple iphone 15",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 100,
"tax_percentage": 10,
"total_tax_amount": null
},
{
"amount": 2000,
"brand": null,
"category": null,
"product_id": "i124",
"product_img_link": null,
"product_link": null,
"product_name": "Apple airpods",
"product_tax_code": null,
"product_type": null,
"quantity": 2,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 10,
"total_tax_amount": null
},
{
"amount": 1000,
"brand": null,
"category": null,
"product_id": "i124",
"product_img_link": null,
"product_link": null,
"product_name": "Apple airpods",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 10,
"total_tax_amount": null
},
{
"amount": 500,
"brand": null,
"category": "shipping_costs",
"product_id": "i123",
"product_img_link": null,
"product_link": null,
"product_name": "Shipping",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 5,
"total_tax_amount": null
},
{
"amount": 500,
"brand": null,
"category": "voucher",
"product_id": "i123",
"product_img_link": null,
"product_link": null,
"product_name": "Voucher",
"product_tax_code": null,
"product_type": null,
"quantity": 1,
"requires_shipping": null,
"sub_category": null,
"tax_amount": 50,
"tax_percentage": 5,
"total_tax_amount": null
}
],
"order_tax_amount": 250,
"payment_experience": null,
"payment_id": "pay_m7cthQvCluxCi5rfpu69",
"payment_method": "pay_later",
"payment_method_data": {
"billing": null,
"pay_later": {
"klarna_sdk": null
}
},
"payment_method_id": null,
"payment_method_status": null,
"payment_method_type": "invoice",
"payment_token": null,
"phone": "177555923",
"profile_id": "pro_WzNsrevpecY0FYP7Rd9v",
"refunds": null,
"return_url": "https://google.com/",
"setup_future_usage": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "DE",
"first_name": "joseph",
"last_name": "Doe",
"line1": "Schönhauser Allee",
"line2": "Harrison Street",
"line3": "Harrison Street",
"state": "California",
"zip": "24000"
},
"email": null,
"phone": {
"country_code": "+49",
"number": "8056594427"
}
},
"split_payments": null,
"ssn": "030883-925M",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"status": "succeeded",
"unified_code": null,
"unified_message": null,
"updated": "2025-05-22T12:17:35.527Z"
}Authorizations
Body
Unique Identifier for the Capture. This ensures idempotency for multiple captures initiated against the same payment. If this is not passed by the merchant, this field shall be auto generated and provided in the API response. It is recommended to generate uuid(v4) as the capture_id.
30"cap_mbabizu24mvu3mela5njyhpit4"
Response
Payment captured
The status of the current payment that was made
succeeded, failed, cancelled, processing, requires_customer_action, requires_merchant_action, requires_payment_method, requires_confirmation, requires_capture, partially_captured, partially_captured_and_capturable The three letter ISO currency code in uppercase. Eg: 'USD' for the United States Dollar.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW, ZWL Indicates that you intend to make future payments with the payment methods used for this Payment. Providing this parameter will attach the payment method to the Customer, if present, after the Payment is confirmed and any required actions from the user are complete.
- On_session - Payment method saved only at hyperswitch when consent is provided by the user. CVV will asked during the returning user payment
- Off_session - Payment method saved at both hyperswitch and Processor when consent is provided by the user. No input is required during the returning user payment.
off_session, on_session Set to true to indicate that the customer is not in your checkout flow during this payment, and therefore is unable to authenticate. This parameter is intended for scenarios where you collect card details and charge them later. This parameter can only be used with confirm=true.
true
Default value if not passed is set to 'automatic' which results in Auth and Capture in one single API request. Pass 'manual' or 'manual_multiple' in case you want do a separate Auth and Capture by first authorizing and placing a hold on your customer's funds so that you can use the Payments/Capture endpoint later to capture the authorized amount. Pass 'manual' if you want to only capture the amount later once or 'manual_multiple' if you want to capture the funds multiple times later. Both 'manual' and 'manual_multiple' are only supported by a specific list of processors
automatic, manual, manual_multiple, scheduled, sequential_automatic Signed checkout token for secure checkout flow
"eyJkIjp7InMiOiJzaG9wXzEyMyIsInAiOiJwYXlfYWJjMTIzIiwiYyI6InBheV9hYmMxMjNfc2VjcmV0X3h5eiIsInIiOiJodHRwczovL2V4YW1wbGUuY29tL3JldHVybiIsIngiOiJodHRwczovL2V4YW1wbGUuY29tL2NhbmNlbCIsInQiOjE3MDUwMDAwMDB9LCJzaWciOiJhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5eiJ9"
Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
255"Payment for shoes purchase"
AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW, US Allowed Payment Method Types for a given PaymentIntent
Indicates the sub type of payment method. Eg: 'invoice' & 'direct_debit'.
direct_debit, installment_invoice, installment_direct_debit, invoice, subscription_invoice, subscription_direct_debit Merchant's identifier for the payment/invoice. This will be sent to the connector if the connector provides support to accept multiple reference ids. In case the connector supports only one reference id, Hyperswitch's Payment ID will be sent as reference.
255"Custom_Order_id_123"