Home > @infiniteobjects/shopify-service > ShopifyService > createOrder
Creates an order on Shopify
Signature:
createOrder(lineItems: IOrderLineItemData[], customer: IShopifyCustomer, inventoryBehaviour?: InventoryBehaviour, sendReceipt?: boolean): Promise<void>;
| Parameter | Type | Description |
|---|---|---|
| lineItems | IOrderLineItemData[] | |
| customer | IShopifyCustomer | |
| inventoryBehaviour | InventoryBehaviour | (Optional) |
| sendReceipt | boolean | (Optional) |
Returns:
Promise<void>