Skip to main content
POST
/
checkout
/
sessions
/
{checkout_session}
/
token
cURL
curl --request POST \
  --url https://api-sandbox.y.uno/v1/checkout/sessions/{checkout_session}/token \
  --header 'Content-Type: application/json' \
  --header 'private-secret-key: <api-key>' \
  --header 'public-api-key: <api-key>' \
  --data '
{
  "account_id": "{{account_id}}",
  "card_data": {
    "number": "4111111111111111",
    "expiration_month": 12,
    "expiration_year": 29,
    "security_code": "123",
    "holder_name": "John Doe"
  },
  "payment_method": {
    "type": "CARD",
    "card": {
      "number": "4111111111111111",
      "expiration_month": 12,
      "expiration_year": 29,
      "security_code": "123",
      "holder_name": "John Doe"
    }
  }
}
'
{
  "token": "dab106a6-9067-4418-ae43-6045663531dc",
  "vaulted_token": null,
  "vault_on_success": false,
  "type": "CARD",
  "card_data": {
    "holder_name": "John Doe",
    "iin": "41111111",
    "lfd": "1111",
    "number_length": 16,
    "security_code_length": 3,
    "brand": "VISA",
    "type": "DEBIT",
    "category": "CLASSIC",
    "issuer_name": "CONOTOXIA SP Z O O",
    "issuer_code": null,
    "fingerprint": null,
    "country_code": "PL"
  },
  "customer": null,
  "installment": null,
  "country": "BR",
  "customer_session": null
}
Creates a one-time volatile token for secure payment processing within a checkout session.

Authorizations

public-api-key
string
header
default:<Your public-api-key>
required
private-secret-key
string
header
default:<Your private-secret-key>
required

Path Parameters

checkout_session
string
default:{{checkout_session}}
required

Checkout session identifier (UUID).

Body

application/json
payment_method
object
required

Response

201 - application/json

Created

token
string
Example:

"dab106a6-9067-4418-ae43-6045663531dc"

vaulted_token
any
vault_on_success
boolean
default:true
Example:

false

type
string
Example:

"CARD"

card_data
object
customer
any
installment
any
country
string
Example:

"BR"

customer_session
any