API reference
/Trip
//
Suspend the given pnr.
This endpoint suspends the PNR, transitioning it into a read-only state. Once suspended, updates via OBT will be restricted. This API serves various use cases, such as price optimization and rebooking.
Security
Bearer
Reason for suspending the PNR. Determines which finalizeIntent variant is required when finalizing.
- PRICE_OPTIMIZATION: Unified price optimization reshop (air or hotel). Finalize with priceOptimization (PriceOptimizationMetadata).
- EXCHANGE: Ticket exchange initiated by agent. Finalize with manualVerificationIntent.
- GDS_EXCHANGE: GDS-driven ticket exchange. Finalize with manualVerificationIntent.
- AIR_PRICE_OPTIMIZATION: Deprecated. Legacy air-only reshop. Use PRICE_OPTIMIZATION instead. Finalize with airPriceOptimizationMetadata.
Enum:"AIR_PRICE_OPTIMIZATION""EXCHANGE""GDS_EXCHANGE""PRICE_OPTIMIZATION"
Example:"PRICE_OPTIMIZATION"
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/trips/{tripId}/pnrs/{pnrId}/suspend
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v3/trips/{tripId}/pnrs/{pnrId}/suspend
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/trips/6926658168/pnrs/6926658168/suspend \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"reason": "PRICE_OPTIMIZATION"
}'