POST
/
checkout-router
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"
}'
{
  "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
card
object
required

Contains information related to the payment card used in the transaction.

name
string
required

The first name of the client.

Example:

"Jhon"

last_name
string
required

The last name of the client.

Example:

"Doe"

email_client
string
required

The email address of the client.

Example:

"pruebas@sdk.com"

phone_number
string
required

The phone number of the client.

Example:

"6181234567"

return_url
string
required

The URL to which the user will be redirected after completing the transaction.

Example:

"http://tonder.io"

id_product
string
required

The identifier for the product.

Example:

"no_id"

quantity_product
integer
required

The quantity of the product in the transaction.

Example:

1

id_ship
string
required

The identifier for the shipping information.

Example:

"0"

instance_id_ship
string
required

The instance identifier for the shipping information.

Example:

"0"

amount
integer
required

The total monetary value of the transaction.

Example:

1200

title_ship
string
required

The title or type of shipping.

Example:

"shipping"

description
string
required

A description of the transaction.

Example:

"transaction"

device_session_id
string
required

The identifier for the device session.

Example:

"VXJLx0H4Fxyz09Ssfbbv0QE8JXDjnKiW"

order_id
integer
required

An identifier or reference number for the order.

Example:

5730

business_id
integer
required

The identifier for the business.

Example:

89

payment_id
integer
required

The identifier for the payment.

Example:

5744

source
string
required

The source of the transaction.

Example:

"sdk"

token_id
string

A token identifier associated with the transaction.

Example:

""

Response

201
application/json
Successful response
status
string

The HTTP status code indicating the success or failure of the response.

Example:

"200"

message
string

A message providing additional information about the success or failure of the response.

Example:

"Success"

psp_response
object

The response from the payment service provider (PSP) containing detailed information about the payment transaction.

transaction_status
string

The status of the transaction, e.g., 'Success'.

Example:

"Success"

transaction_id
integer

The unique identifier for the transaction.

Example:

11044

payment_id
integer

The unique identifier for the payment associated with the transaction.

Example:

5744

provider
string

The payment provider used for the transaction, e.g., 'stripe'.

Example:

"stripe"

next_action
object

Details about the next action required for the transaction. If not applicable, an empty object is provided.

Example:
{}
actions
object[]

An array of actions that can be performed for the transaction, each represented by an object with 'name', 'url', and 'method' properties.

An array of actions associated with the transaction.

Example:
[
  {
    "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"
  }
]