Skip to main content
POST
/
v1
/
checkout
/
sessions
Create Checkout Session
curl --request POST \
  --url https://api-sandbox.y.uno/v1/checkout/sessions \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_id": "YOUR_ACCOUNT_ID",
  "merchant_order_id": "order-001",
  "payment_description": "Order #001",
  "country": "US",
  "customer_id": "CUSTOMER_UUID",
  "amount": {
    "currency": "USD",
    "value": 10000
  },
  "callback_url": "https://example.com/checkout/callback",
  "workflow": "SDK_CHECKOUT"
}
'
{
  "checkout_session": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "merchant_order_id": "<string>",
  "country": "<string>",
  "payment_description": "<string>",
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": {
    "currency": "<string>",
    "value": 123
  },
  "workflow": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Body

application/json
account_id
string<uuid>
required
merchant_order_id
string
required
Required string length: 3 - 255
payment_description
string
required
Required string length: 3 - 255
country
enum<string>
required

ISO 3166-1 alpha-2 country code

Available options:
AR,
BO,
BR,
CL,
CO,
CR,
EC,
SV,
GT,
HN,
MX,
NI,
PA,
PY,
PE,
US,
UY
customer_id
string<uuid>
callback_url
string<uri>
amount
object
workflow
enum<string>
default:SDK_CHECKOUT
Available options:
SDK_CHECKOUT,
CHECKOUT,
SDK_SEAMLESS
metadata
object[]
Maximum array length: 120

Response

Checkout session created

checkout_session
string<uuid>
merchant_order_id
string
country
string
payment_description
string
customer_id
string<uuid>
amount
object
workflow
string
created_at
string<date-time>