POST
/v2/cart/validate-fareRevalidate the fare
Ask the provider if the fare moved, immediately before booking.
Bearer tokenAuthority: B2C_CART_VALIDATEhttps://booking.aerolink.dev
priceChanged is derived from the upstream message FARE_CHANGE_UPSTREAM, not from comparing the two numbers. Both price and oldPrice carry the same markup, so a marked-up cart does not appear to have jumped when the fare has not moved.
cURL
bash
curl -X POST https://booking.aerolink.dev/v2/cart/validate-fare \
-H "Authorization: Bearer eyJ..." \
-H "Content-Type: application/json" \
-d '{"cartId":"66e1..."}'Request
JSON
{
"cartId": "66e1..."
}Body fields
cartIdstringrequired
Cart to revalidate
cartIdstring required | Cart to revalidate |
Response
200
{
"message": "Success",
"data": {
"id": "66e1...",
"searchId": "9f2c...",
"priceChanged": true,
"oldPrice": { "currencyCode": "BDT", "total": 46300 },
"price": { "currencyCode": "BDT", "total": 48800 },
"tripSummary": {},
"passengers": [],
"finalPaymentDate": "2026-10-10T23:59:59"
}
}Response fields
priceChangedbooleanTrue when the provider moved the fare
oldPriceB2cFareOnly present when priceChanged is true. The creation-time snapshot.
priceB2cFareThe current fare
priceChangedboolean | True when the provider moved the fare |
oldPriceB2cFare | Only present when priceChanged is true. The creation-time snapshot. |
priceB2cFare | The current fare |
Errors
404Entity Not Found
cartId missing/blank, cart absent, or owned by another customer
401 / 403UNAUTHORIZED
Missing token or missing B2C_CART_VALIDATE
| HTTP | message | When |
|---|---|---|
| 404 | Entity Not Found | cartId missing/blank, cart absent, or owned by another customer |
| 401 / 403 | UNAUTHORIZED | Missing token or missing B2C_CART_VALIDATE |