Create a checkout session for the current customer
POST /cms/customer/payment/checkout
Initiates a payment for the current customer. No existing payment token is used. The user is required to interactively approve the purchase. The request can specify a cart, product, product item, or article to purchase. Handles shipping, VAT, and payment method selection.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Cart ID for existing cart
Product ID for direct purchase
Product item ID for direct purchase
Article ID or array of article IDs
Custom price for product
Quantity for product item
Payment currency
Payment method
Billing address
object
Shipping address
object
Shipping provider
VAT country
Customer IP address. Do not send this if the client is directly communicating with the API, such as from your mobile app.
2-letter ISO code of the country (only send when ip_address is filled)
Source (web, app, etc.)
Source page URL
Source button
Additional properties to save for this payment, such as UTM parameters, coupon code, affiliate info, etc.
object
Payment token ID for charge action
Custom price for article
Responses
Section titled “ Responses ”Payment created successfully
object
API representation of a payment
object
Payment ID
Total price
Payment status
Response message
Last update timestamp
Payment timestamp
User ID
Payment method
Cart items
object
API representation of an ecommerce product item
object
Item ID
Description
Product ID
Product name
Price
Currency
Available
Item order
Shippable
Weight
Installments
Once per user
Is upgrade
Upgrade type
Upgrade from
Upgrade exclude items
Upgrade price web
Upgrade price mobile
Settings
object
Has image
Additional label 1
Additional label 2
Additional label 3
Diameter
Length
Depth
Width
Recurrent
Recurrent price
Recurrent start
Recurrent schedule
SKU
Prices
object
Stock enabled
Stock available
Package quantity
Related items
object
Images
Files
Product details. Deprecated to avoid circular references. Use productId instead.
object
Translations
Example
{ "en": { "name": "Name", "subtitle": "Subtitle" }, "fr": { "name": "Nom", "subtitle": "Sous-titre" }}Action data to be executed when a product item is bought
object
Example
registerSubscriptionExample
365Example
subscriptionExample
[ { "function": "registerSubscription", "param": "365", "group": "subscription" }]Action data to be executed when a product item is bought as a renewal
object
Example
registerSubscriptionExample
365Example
subscriptionExample
[ { "function": "registerSubscription", "param": "365", "group": "subscription" }]Price matrix
object
Subtotal amount
Shipping amount
Tax amount
Discount amount
Total amount
Shipping status
Authorization
Address
object
Shipping address
object
Shipping price
Tax price
Payment provider response
object
Payment success status (for charge action)
Bad Request
Unauthorized
Forbidden