Creates an order.
The createOrder()
function returns a Promise that resolves when the order is created.
Notes:
lineItems[i].itemType.preset: DIGITAL
- then lineItems[i].digitalFile
must be provided.lineItems[i].id
is passed, it must be either a valid GUID, or empty.This function requires elevated permissions and runs only on the backend and on dashboard pages.
Order info.