createOrder( )
Creates an order.
The createOrder()
function returns a Promise that resolves when the order is created.
Notes:
- If an item is digital -
lineItems[i].itemType.preset: DIGITAL
- thenlineItems[i].digitalFile
must be provided. - If
lineItems[i].id
is passed, it must be either a valid GUID, or empty.
Admin Method
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Permission Scopes
For app development, you must have one of the following permission scopes:Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
orderOrderRequired
Order info.
Returns
Return Type:Promise<Order>
Was this helpful?
Yes
No