Appearance
cancelOrder 
Definition 
Cancel an order
Signature 
ts
export async function cancelOrder(
  orderId: string,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<OrderState> 
Parameters 
| Name | Type | Description | 
|---|---|---|
| orderId | string | Id of an order | 
| contextInstance | ShopwareApiInstance | - ShopwareApiInstance | 
Return type 
ts
Promise<OrderState>
Usage example 
WARNING
Example is generated automatically. Sometimes it's required to be adjusted to your needs.