Skip to main content

Cancel sub order

This request will remove a sub-order (order chunk). Whether the cancel action on a sub-order is available on the sub-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/:ledgerId \

Path parameters

orderId

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

ledgerId

The ledgerId of the sub order (order chunk). LedgerId can be found on each chunk (captured, refunded, uncaptured).