API Reference
Create Checkout Router
POST
/
checkout-router
/
Copy
curl --request POST \
--url https://stage.tonder.io/api/v1/checkout-router/ \
--header 'Content-Type: application/json' \
--data '{
"card": {
"cvv": "69f4d206-ceb6-4be8-82d8-7a39dceb9f87",
"skyflow_id": "702faf3c-26f9-41c1-a287-cec20aa43929",
"card_number": "9230-0892-4469-1474",
"cardholder_name": "3b5d70a9-01b9-4001-8328-9b10168bac25",
"expiration_year": "645a3174-340a-4849-ba5c-c4333d2967c9",
"expiration_month": "5c6bef6c-9642-4403-9ce6-215b0d3f85b0"
},
"name": "Jhon",
"last_name": "Doe",
"email_client": "pruebas@sdk.com",
"phone_number": "6181234567",
"return_url": "http://tonder.io",
"id_product": "no_id",
"quantity_product": 1,
"id_ship": "0",
"instance_id_ship": "0",
"amount": 1200,
"title_ship": "shipping",
"description": "transaction",
"device_session_id": "VXJLx0H4Fxyz09Ssfbbv0QE8JXDjnKiW",
"token_id": "",
"order_id": 5730,
"business_id": 89,
"payment_id": 5744,
"source": "sdk"
}'
Copy
{
"status": "200",
"message": "Success",
"psp_response": {
"id": "ch_3OZyPSK5zRUzLwaW0CyXUIVQ",
"object": "charge",
"amount": 120000,
"amount_captured": 120000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_3OZyPSK5zRUzLwaW0iZIaxjx",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
},
"calculated_statement_descriptor": "GOLFMANAGER.COM",
"captured": true,
"created": 1705595142,
"currency": "mxn",
"customer": "cus_PBoeaxFGw6mZFF",
"description": "transaction",
"destination": null,
"dispute": null,
"disputed": false,
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {},
"invoice": null,
"livemode": false,
"metadata": {},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 15,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3OZyPSK5zRUzLwaW0xfmGAjx",
"payment_method": "pm_1OZyPRK5zRUzLwaWC5WKIOJC",
"payment_method_details": {
"card": {
"amount_authorized": 120000,
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": null
},
"country": "US",
"exp_month": 11,
"exp_year": 2025,
"extended_authorization": {
"status": "disabled"
},
"fingerprint": "g8tpcAz042MueZFZ",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
},
"installments": null,
"last4": "4242",
"mandate": null,
"multicapture": {
"status": "unavailable"
},
"network": "visa",
"network_token": {
"used": false
},
"overcapture": {
"maximum_amount_capturable": 120000,
"status": "unavailable"
},
"three_d_secure": null,
"wallet": null
},
"type": "card"
},
"radar_options": {},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xREl5WTRLNXpSVXpMd2FXKIeipa0GMgbREzVbrVQ6LBZdZFnB8ZFMPXXaJlPrlgymIpkqBm3-pd3x-lnhgqwlKAC3AWrN3kEYGDep",
"refunded": false,
"review": null,
"shipping": {
"street": "N/a",
"number": "N/a",
"suburb": "N/a",
"city": {
"name": "N/a"
},
"state": {
"name": "N/a",
"country": {
"name": "N/a"
}
},
"zip_code": "N/a"
},
"source": null,
"source_transfer": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
},
"transaction_status": "Success",
"transaction_id": 11044,
"payment_id": 5744,
"provider": "stripe",
"next_action": {},
"actions": [
{
"name": "verify_transaction_status",
"url": "/api/v1/stripe/business/89/payments/5744/transactions/11044",
"method": "GET"
},
{
"name": "refund_transaction",
"url": "/api/v1/stripe/business/89/payments/ch_3OZyPSK5zRUzLwaW0CyXUIVQ/refunds",
"method": "POST"
}
]
}
The Authorization needs to be in the following format:
Authorization: Token <YOUR_API_KEY>
Body
application/json
Response
201
application/json
Successful response
The response is of type object
.
Copy
curl --request POST \
--url https://stage.tonder.io/api/v1/checkout-router/ \
--header 'Content-Type: application/json' \
--data '{
"card": {
"cvv": "69f4d206-ceb6-4be8-82d8-7a39dceb9f87",
"skyflow_id": "702faf3c-26f9-41c1-a287-cec20aa43929",
"card_number": "9230-0892-4469-1474",
"cardholder_name": "3b5d70a9-01b9-4001-8328-9b10168bac25",
"expiration_year": "645a3174-340a-4849-ba5c-c4333d2967c9",
"expiration_month": "5c6bef6c-9642-4403-9ce6-215b0d3f85b0"
},
"name": "Jhon",
"last_name": "Doe",
"email_client": "pruebas@sdk.com",
"phone_number": "6181234567",
"return_url": "http://tonder.io",
"id_product": "no_id",
"quantity_product": 1,
"id_ship": "0",
"instance_id_ship": "0",
"amount": 1200,
"title_ship": "shipping",
"description": "transaction",
"device_session_id": "VXJLx0H4Fxyz09Ssfbbv0QE8JXDjnKiW",
"token_id": "",
"order_id": 5730,
"business_id": 89,
"payment_id": 5744,
"source": "sdk"
}'
Copy
{
"status": "200",
"message": "Success",
"psp_response": {
"id": "ch_3OZyPSK5zRUzLwaW0CyXUIVQ",
"object": "charge",
"amount": 120000,
"amount_captured": 120000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_3OZyPSK5zRUzLwaW0iZIaxjx",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
},
"calculated_statement_descriptor": "GOLFMANAGER.COM",
"captured": true,
"created": 1705595142,
"currency": "mxn",
"customer": "cus_PBoeaxFGw6mZFF",
"description": "transaction",
"destination": null,
"dispute": null,
"disputed": false,
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {},
"invoice": null,
"livemode": false,
"metadata": {},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 15,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3OZyPSK5zRUzLwaW0xfmGAjx",
"payment_method": "pm_1OZyPRK5zRUzLwaWC5WKIOJC",
"payment_method_details": {
"card": {
"amount_authorized": 120000,
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": null
},
"country": "US",
"exp_month": 11,
"exp_year": 2025,
"extended_authorization": {
"status": "disabled"
},
"fingerprint": "g8tpcAz042MueZFZ",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
},
"installments": null,
"last4": "4242",
"mandate": null,
"multicapture": {
"status": "unavailable"
},
"network": "visa",
"network_token": {
"used": false
},
"overcapture": {
"maximum_amount_capturable": 120000,
"status": "unavailable"
},
"three_d_secure": null,
"wallet": null
},
"type": "card"
},
"radar_options": {},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xREl5WTRLNXpSVXpMd2FXKIeipa0GMgbREzVbrVQ6LBZdZFnB8ZFMPXXaJlPrlgymIpkqBm3-pd3x-lnhgqwlKAC3AWrN3kEYGDep",
"refunded": false,
"review": null,
"shipping": {
"street": "N/a",
"number": "N/a",
"suburb": "N/a",
"city": {
"name": "N/a"
},
"state": {
"name": "N/a",
"country": {
"name": "N/a"
}
},
"zip_code": "N/a"
},
"source": null,
"source_transfer": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
},
"transaction_status": "Success",
"transaction_id": 11044,
"payment_id": 5744,
"provider": "stripe",
"next_action": {},
"actions": [
{
"name": "verify_transaction_status",
"url": "/api/v1/stripe/business/89/payments/5744/transactions/11044",
"method": "GET"
},
{
"name": "refund_transaction",
"url": "/api/v1/stripe/business/89/payments/ch_3OZyPSK5zRUzLwaW0CyXUIVQ/refunds",
"method": "POST"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.