POST/v2/order/reprice

Reprice a booking

Quote a booked order you own. Set update to true only when a changed fare should be stored.

Bearer tokenAuthority: B2C_ORDER_REPRICEhttps://api1.vacaychi.com/booking

The default is a quote. base, tax and total are the provider fare for each passenger type, not the customer nine-field total. update true stores a changed fare with the commercial terms frozen at booking and returns the customer order. An unchanged total is 417 NO_CHANGE_FOUND.

cURL

bash
curl -X POST https://api1.vacaychi.com/booking/v2/order/reprice \
  -H "Authorization: Bearer eyJ..." \
  -H "Content-Type: application/json" \
  -d '{"orderId":"66f0...","update":false}'

Request

JSON
{
  "orderId": "66f0...",
  "update": false
}

Body fields

orderIdstring
required

Must be non-blank and owned by the caller

updateboolean
optional

Default false. true persists a changed fare

Response

200
{
  "message": "Success",
  "data": [
    {
      "passengerType": "ADT",
      "base": 42000,
      "tax": 4300,
      "total": 46300,
      "fareBasisCode": ["YOWBD"]
    }
  ]
}

Business rules

  • Only ATPCO and NDC. Imported orders are refused. The quote is not the customer total.

Errors

404Entity Not Found

Order missing or owned by another customer

400Ticket must be booked status

The order is not BOOKED

400Method Not Implemented

The source is not ATPCO or NDC

417NO_CHANGE_FOUND

update is true and the provider total matches

401 / 403UNAUTHORIZED

Missing token or missing B2C_ORDER_REPRICE