createCheckout( )
Creates a checkout.
The createCheckout()
function returns a Promise that resolves to the new checkout when it's created.
Notes:
- Checkout must include at least 1 item in the
options.lineItems
array. options.channelType
is required.- If
_id
foroptions.lineItems
is added, make sure that each_id
is unique. - If
options.checkoutInfo.customFields
are added, thenoptions.checkoutInfo.customFields.value
is required.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Stores - all permissions
Manage eCommerce - all permissions
Manage Orders
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
optionsCreateCheckoutOptions
Checkout creation options.
Returns
Return Type:Promise<Checkout>
Was this helpful?
Yes
No