Home > @shopware-pwa/shopware-6-client > cancelOrder

# cancelOrder() function

Cancel an order

Signature:

export declare function cancelOrder(orderId: string, contextInstance?: ShopwareApiInstance): Promise<OrderState>;

# Parameters

Parameter Type Description
orderId string
contextInstance ShopwareApiInstance

Returns:

Promise<OrderState>

# Exceptions

ClientApiError