Use a saved theme

Create and activate your theme in Checkout Studio. Copy its identifier and send it as theme_id when creating the checkout.

POST/checkout/create.php
Terminal
curl "https://circus-pay.com/api/checkout/create.php" \
  -H "Authorization: Bearer $CIRCUSPAY_SECRET_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "amount": 2499,
  "currency": "EUR",
  "productName": "Ma commande",
  "orderId": "ORDER-DEMO-001",
  "successUrl": "https://example.com/payment/return",
  "cancelUrl": "https://example.com/payment/cancel",
  "theme_id": "ma-boutique"
}'

A design preserved for the link

The API checks that the theme is active and belongs to your account. Its configuration is stored with the link. Branding enforced for your account may take precedence.

Format and errors

ParameterDescription
theme_id1 to 40 characters: lowercase letters, digits and hyphens.
invalid_theme_idMalformed identifier.
theme_not_foundTheme missing, inactive or inaccessible to this account.
conflicting_theme_idThe supplied theme_id, themeId or template parameters conflict.
theme_unavailableThe theme cannot be loaded or stored for the link.