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 'https://api.qa.ordermesh.io/order/v1/orders//cancel' \
--header 'Content-Type: application/json' \
--data '{
"cancelReason": "Cancel reason string",
"orderItems": [
{
"id": "123456789",
"quantity": 3
}
],
"triggerFlow": true
}'{
"message": "Order cancelled successfully"
}