🚀 New: Theme Control Plane API — build, customize, and deploy themes programmatically. Learn more →
curl --request POST \
--url https://api.shoppex.io/dev/v1/checkout/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"name": "<string>",
"quantity": 2
},
"amount": 1.01,
"currency": "<string>",
"customer_email": "[email protected]",
"success_url": "<string>",
"cancel_url": "<string>",
"metadata": {},
"gateway": "<string>",
"gateways": [
"<string>"
],
"crypto_gateway": "<string>",
"white_label": true,
"confirmations": 2,
"customer_id": "<string>"
}
'{
"data": {
"id": "<string>",
"url": "<string>",
"status": "<string>",
"amount": 123,
"currency": "<string>",
"customer_email": "<string>",
"success_url": "<string>",
"cancel_url": "<string>",
"created_at": 123,
"expires_at": "<string>",
"checkout_url": "<string>",
"session_id": "<string>"
}
}Stripe-style alias for POST /dev/v1/payments. Accepts amount, success_url, cancel_url, customer_email, and a single product descriptor; returns a session shape with id, url, and status. Internally delegates to the payments endpoint, so PSP orchestration, idempotency, scopes, and webhook behavior are identical. For multi-item checkouts, build the cart on your side and call this endpoint with the aggregated amount.
curl --request POST \
--url https://api.shoppex.io/dev/v1/checkout/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"name": "<string>",
"quantity": 2
},
"amount": 1.01,
"currency": "<string>",
"customer_email": "[email protected]",
"success_url": "<string>",
"cancel_url": "<string>",
"metadata": {},
"gateway": "<string>",
"gateways": [
"<string>"
],
"crypto_gateway": "<string>",
"white_label": true,
"confirmations": 2,
"customer_id": "<string>"
}
'{
"data": {
"id": "<string>",
"url": "<string>",
"status": "<string>",
"amount": 123,
"currency": "<string>",
"customer_email": "<string>",
"success_url": "<string>",
"cancel_url": "<string>",
"created_at": 123,
"expires_at": "<string>",
"checkout_url": "<string>",
"session_id": "<string>"
}
}Use your Shoppex API key in the Authorization header.
Show child attributes
x >= 0.013x >= 1Successful response
Show child attributes