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.You can only call this method when authenticated as a Wix app or Wix user identity.
function createOrder(order: Order): Promise<Order>;
Order info.
import { orders } from "@wix/ecom";
async function createOrder(order) {
const response = await orders.createOrder(order);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.