Skip to navigation

Create a checkout

Opens a checkout for the token’s company and prices the cart when it is priceable. A cart the purchase rules reject is still created, open, with the one problem that says why; a refusal creates nothing. The response carries the version every later write must send, and expires_at says when an open checkout closes on its own.

Authentication

X-Schematic-Api-Keystring

A temporary access token in the X-Schematic-Api-Key header. Your server mints it with POST /temporary-access-tokens on the secret-key API for a company, optionally for one of its users, and hands it to the page. The token fixes the company every request reads and writes.

Request

This endpoint expects an object.
add_on_idslist of objectsOptional
auto_topup_overrideslist of objectsOptional
billing_entity_idstring or nullOptional
coupon_external_idstring or nullOptional<=255 characters
credit_bundleslist of objectsOptional
currencyenum or nullOptional

ISO 4217 currency this cart is being built in. Prices are still selected by id; this records the intent, and a cart that prices in another currency is reported as a problem.

custom_field_valueslist of objectsOptional
intentenum or nullOptional

What the checkout does to the subscription: change it to the cart’s contents, or cancel it. Defaults to change.

Allowed values:
new_plan_idstringOptional
new_price_idstringOptional
opt_in_acceptedboolean or nullOptional
pay_in_advancelist of objectsOptional
payment_method_idstring or nullOptional<=255 characters
promo_codestring or nullOptional<=255 characters
skip_trialbooleanOptional

Response

Created
dataobject
paramsobject
Input parameters

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error