Frontend API Change Impact Guide

This guide summarizes what frontend consumers need to change after recent pricing/import updates.

Scope

Applies to:


1) Pricing API updates

1.1 Admin vs Customer write endpoints

Use separate endpoints for pricing-selection save:

Both return pricing response in the same shape as GET /v1/itinerary/:id/price-details.

1.2 Category values

Category fields are numeric enum values (not string labels):

1.3 Slab banding rule

Vehicle slab auto-selection uses adults + children (infants excluded):

1.4 defaultHotelCategory removed


2) Import Full Itinerary payload updates

Endpoint: POST /v1/itinerary/import-itinerary-full

2.1 Inventory references

Use IDs only:

Do not send old hotels[] / transfers[] create-resolve payloads.

2.2 Activities

activities[] are created and mapped day-wise.

Required fields per item:

Optional fields:

2.3 Hotel day-wise mapping

Explicit mapping supported via:

Validation:

Backward compatibility:

2.4 Transfer mapping


3) Inventory APIs response enrichments

3.1 Hotel inventory responses (import-related)

For check-inventory, search-inventory, and inventory responses, hotel objects now include:

POST /v1/hotel/check-inventory also returns:

3.2 Transfer inventory responses (import-related)

For check-by-name, search, and inventory responses, transfer objects now include:

POST /v1/transfer/check-by-name request is bulk:

{ "items": [{ "name": "Wagon R / Similar" }, { "name": "Innova / Similar" }] }

Response includes requestedName per item.


4) Existing GET APIs and break-risk

The following endpoints are not route-changed by these updates:

Potential response/data adjustments frontend should tolerate:


5) Frontend checklist