POST
/v2/order/cancelCancel a booking
Cancel with the provider. Force-cancel is not available to customers.
Bearer tokenAuthority: B2C_ORDER_CANCELhttps://booking.aerolink.dev
A fresh cancel body is built with only orderId set. force is left false, so the admin path is unreachable. External (imported) orders are rejected. Ownership is checked first.
cURL
bash
curl -X POST https://booking.aerolink.dev/v2/order/cancel \
-H "Authorization: Bearer eyJ..." \
-H "Content-Type: application/json" \
-d '{"orderId":"66f0..."}'Request
JSON
{
"orderId": "66f0..."
}Body fields
orderIdstringrequired
Must be non-blank
orderIdstring required | Must be non-blank |
Response
200
{
"message": "Success",
"data": {
"id": "66f0...",
"refNo": "TRP-000123",
"pnr": "ABC123",
"status": "CANCELLED",
"price": { "currencyCode": "BDT", "total": 46300 }
}
}Errors
404Entity Not Found / Order not found
Order missing, blank, owned by another customer, or parent lookup fails
401 / 403UNAUTHORIZED
Missing token or missing B2C_ORDER_CANCEL
| HTTP | message | When |
|---|---|---|
| 404 | Entity Not Found / Order not found | Order missing, blank, owned by another customer, or parent lookup fails |
| 401 / 403 | UNAUTHORIZED | Missing token or missing B2C_ORDER_CANCEL |