POST/v2/order/cancel

Cancel 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

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