Skip to main content

Cancel order

This request will remove all uncaptured order lines on the order while order lines that have been captured or refunded will remain. This action can not be performed on orders that have been paid with advance invoice. Whether the cancel action is available on the order or not, can be determined by inspecting the availableActions array on the suborder chunk. This can be retrieved from the GET order response.

curl -X DELETE \
-H 'authorization: Bearer v4.public.eyJpc3MiOiJs...' \
https://api.sandbox.ledyer.com/v1/orders/:orderId \

Path parameters

orderId

The order ID string that was obtained when the order session was created.