orders/{orderId}/cancel endpoint can be used to cancel an order or order items in your order.orderItemIds array empty in the body of the request.orderItemIds array in the body of the request.curl --location --request POST 'https://api.dev.ordermesh.io/v1/orders//cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
"cancelReason": "Cancel reason string",
"orderItems": [
{
"id": "123456789",
"quantity": 3
}
],
"triggerFlow": true
}'{
"message": "Order cancelled successfully"
}