Creates a checkout.
The createCheckout() function returns a Promise that resolves to the new checkout when it's created.
Notes:
options.lineItems array.options.channelType is required._id for options.lineItems is added, make sure that each _id is unique.options.checkoutInfo.customFields are added, then options.checkoutInfo.customFields.value is required.This function requires elevated permissions and runs only on the backend and on dashboard pages.
Checkout creation options.
There are 4 errors with this status code.
There are 9 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.