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": "<string>",
  "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": 123,
    "application": "<string>",
    "application_fee": "<string>",
    "application_fee_amount": "<string>",
    "balance_transaction": "txn_3OZyPSK5zRUzLwaW0iZIaxjx",
    "billing_details": {
      "address": {
        "city": "<string>",
        "country": "<string>",
        "line1": "<string>",
        "line2": "<string>",
        "postal_code": "<string>",
        "state": "<string>"
      },
      "email": "<string>",
      "name": "<string>",
      "phone": "<string>"
    },
    "calculated_statement_descriptor": "GOLFMANAGER.COM",
    "captured": true,
    "created": 1705595142,
    "currency": "mxn",
    "customer": "cus_PBoeaxFGw6mZFF",
    "description": "transaction",
    "destination": "<string>",
    "dispute": "<string>",
    "disputed": true,
    "failure_balance_transaction": "<string>",
    "failure_code": "<string>",
    "failure_message": "<string>",
    "fraud_details": {},
    "invoice": "<string>",
    "livemode": true,
    "metadata": {},
    "on_behalf_of": "<string>",
    "order": "<string>",
    "outcome": {
      "network_status": "approved_by_network",
      "reason": "<string>",
      "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": "<string>",
          "address_postal_code_check": "<string>",
          "cvc_check": "<string>"
        },
        "country": "US",
        "exp_month": 11,
        "exp_year": 2025,
        "extended_authorization": {
          "status": "disabled"
        },
        "fingerprint": "g8tpcAz042MueZFZ",
        "funding": "credit",
        "incremental_authorization": {
          "status": "unavailable"
        },
        "installments": "<string>",
        "last4": "4242",
        "mandate": "<string>",
        "multicapture": {
          "status": "unavailable"
        },
        "network": "visa",
        "network_token": {
          "used": true
        },
        "overcapture": {
          "maximum_amount_capturable": 120000,
          "status": "unavailable"
        },
        "three_d_secure": "<string>",
        "wallet": "<string>"
      },
      "type": "card"
    },
    "radar_options": {},
    "receipt_email": "<string>",
    "receipt_number": "<string>",
    "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xREl5WTRLNXpSVXpMd2FXKIeipa0GMgbREzVbrVQ6LBZdZFnB8ZFMPXXaJlPrlgymIpkqBm3-pd3x-lnhgqwlKAC3AWrN3kEYGDep",
    "refunded": true,
    "review": "<string>",
    "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": "<string>",
    "source_transfer": "<string>",
    "statement_descriptor": "<string>",
    "statement_descriptor_suffix": "<string>",
    "status": "succeeded",
    "transfer_data": "<string>",
    "transfer_group": "<string>"
  },
  "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.

last_name
string
required

The last name of the client.

email_client
string
required

The email address of the client.

phone_number
string
required

The phone number of the client.

return_url
string
required

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

id_product
string
required

The identifier for the product.

quantity_product
integer
required

The quantity of the product in the transaction.

id_ship
string
required

The identifier for the shipping information.

instance_id_ship
string
required

The instance identifier for the shipping information.

amount
integer
required

The total monetary value of the transaction.

title_ship
string
required

The title or type of shipping.

description
string
required

A description of the transaction.

device_session_id
string
required

The identifier for the device session.

token_id
string

A token identifier associated with the transaction.

order_id
integer
required

An identifier or reference number for the order.

business_id
integer
required

The identifier for the business.

payment_id
integer
required

The identifier for the payment.

source
string
required

The source of the transaction.

Response

201 - application/json
status
string

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

message
string

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

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'.

transaction_id
integer

The unique identifier for the transaction.

payment_id
integer

The unique identifier for the payment associated with the transaction.

provider
string

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

next_action
object

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

actions
object[]

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