Skip to content
Shopware

cancelOrder

cancelOrder ​

Definition ​

Cancel an order

Signature ​

ts
export async function cancelOrder(
  orderId: string,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<OrderState>

Parameters ​

NameTypeDescription
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.

Open in StackBlitz