Skip to content
On this page

createOrder

Definition

Creates an order for logged in and guest users

Signature

ts
export async function createOrder(
  params?: CreateOrderParams,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<Order> 

Parameters

NameTypeDescription
params
CreateOrderParams
CreateOrderParams
contextInstance
ShopwareApiInstance
ShopwareApiInstance

Return type

ts
Promise<Order>

Usage example

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

createOrder has loaded