POST
/
checkout-router
/
curl --request POST \
  --url https://stage.tonder.io/api/v1/checkout-router/ \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 1200,
  "business_id": 89,
  "card": {
    "card_number": "9230-0892-4469-1474",
    "cardholder_name": "3b5d70a9-01b9-4001-8328-9b10168bac25",
    "cvv": "69f4d206-ceb6-4be8-82d8-7a39dceb9f87",
    "expiration_month": "5c6bef6c-9642-4403-9ce6-215b0d3f85b0",
    "expiration_year": "645a3174-340a-4849-ba5c-c4333d2967c9",
    "skyflow_id": "702faf3c-26f9-41c1-a287-cec20aa43929"
  },
  "description": "transaction",
  "device_session_id": "VXJLx0H4Fxyz09Ssfbbv0QE8JXDjnKiW",
  "email_client": "pruebas@sdk.com",
  "id_product": "no_id",
  "id_ship": "0",
  "instance_id_ship": "0",
  "last_name": "Doe",
  "name": "Jhon",
  "order_id": 5730,
  "payment_id": 5744,
  "phone_number": "6181234567",
  "quantity_product": 1,
  "return_url": "http://tonder.io",
  "source": "sdk",
  "title_ship": "shipping",
  "token_id": "<string>"
}'
{
  "actions": [
    {
      "method": "GET",
      "name": "verify_transaction_status",
      "url": "/api/v1/stripe/business/89/payments/5744/transactions/11044"
    },
    {
      "method": "POST",
      "name": "refund_transaction",
      "url": "/api/v1/stripe/business/89/payments/ch_3OZyPSK5zRUzLwaW0CyXUIVQ/refunds"
    }
  ],
  "message": "Success",
  "next_action": {},
  "payment_id": 5744,
  "provider": "stripe",
  "psp_response": {
    "amount": 120000,
    "amount_captured": 120000,
    "amount_refunded": 123,
    "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": true,
    "failure_balance_transaction": "null",
    "failure_code": "null",
    "failure_message": "null",
    "fraud_details": {},
    "id": "ch_3OZyPSK5zRUzLwaW0CyXUIVQ",
    "invoice": "null",
    "livemode": true,
    "metadata": {},
    "object": "charge",
    "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": true
        },
        "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": true,
    "review": "null",
    "shipping": {
      "city": {
        "name": "N/a"
      },
      "number": "N/a",
      "state": {
        "country": {
          "name": "N/a"
        },
        "name": "N/a"
      },
      "street": "N/a",
      "suburb": "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"
  },
  "status": "200",
  "transaction_id": 11044,
  "transaction_status": "Success"
}

The Authorization needs to be in the following format:

Authorization: Token <YOUR_API_KEY>

Body

application/json
amount
integer
required

The total monetary value of the transaction.

business_id
integer
required

The identifier for the business.

card
object
required

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

description
string
required

A description of the transaction.

device_session_id
string
required

The identifier for the device session.

email_client
string
required

The email address of the client.

id_product
string
required

The identifier for the product.

id_ship
string
required

The identifier for the shipping information.

instance_id_ship
string
required

The instance identifier for the shipping information.

last_name
string
required

The last name of the client.

name
string
required

The first name of the client.

order_id
integer
required

An identifier or reference number for the order.

payment_id
integer
required

The identifier for the payment.

phone_number
string
required

The phone number of the client.

quantity_product
integer
required

The quantity of the product in the transaction.

return_url
string
required

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

source
string
required

The source of the transaction.

title_ship
string
required

The title or type of shipping.

token_id
string

A token identifier associated with the transaction.

Response

201 - application/json
actions
object[]

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

message
string

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

next_action
object

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

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

psp_response
object

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

status
string

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

transaction_id
integer

The unique identifier for the transaction.

transaction_status
string

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