Vai al contenuto principale
POST
Checkout

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Intestazioni

X-Cart-Token
string | null

Cookie

cx_ref
string | null
cx_cart
string | null

Corpo

application/json

Payload sent by the client to initiate checkout.

shipping_address
AddressSchema · object
obbligatorio
billing_address
AddressSchema · object | null
coupon_code
string | null
notes
string | null
locale
string | null
payment_method
string
predefinito:stripe
customer_email
string<email> | null
subscribe_recurring_id
string<uuid> | null
affiliate_code
string | null
business_invoice
BusinessInvoiceInput · object | null

B2B invoice details captured at checkout for THIS order (order-level snapshot). Independent from the account default, so guests and one-off company purchases work too. When present the order becomes a B2B receipt; an Albanian company sends tax_id (NIPT), a foreign one vat_number (VAT).

voucher_code
string | null
fbp
string | null
Maximum string length: 200
fbc
string | null
Maximum string length: 500

Risposta

Successful Response

data
CheckoutResponse · object | null

Response from POST /checkout — contains everything the frontend needs.

meta
PaginationMeta · object | null
error
string | null
error_code
string | null