Skip to main content

Update TST

Update TST (Transitional Stored Ticket) pricing for PNR itinerary. This endpoint allows updating pricing information for corporate account bookings.


Endpoint

  • URL: /api/v1/flight/updatetst
  • Method: POST
  • Auth Required: Yes (Bearer Token/X-API-KEY)
  • Content-Type: application/json

Authentication

This endpoint requires a valid JWT Bearer token in the Authorization header:

Authorization: Bearer <access_token>

Obtain tokens via /api/v1/sign-in (POST) with your credentials.


Request Structure

FieldTypeRequiredDescription
systemstringYesBooking system code (e.g., VN, VJ, 1A)
bookingCodestringYesBooking code (PNR)
accountCodestringNoCorporate account code
priceOptionintegerNoRepricing option: 0 or null for default pricing, 1 for BSV fare, 2 for ECO fare

Sample Request:

{
"system": "VN",
"bookingCode": "ABC123",
"accountCode": "CORP001",
"priceOption": 0
}

Request Constraints & Business Rules

  • The booking must exist and be in a valid state for TST updates.
  • Corporate account code must be valid and active.
  • TST updates are typically used for corporate pricing arrangements.
  • Only certain booking statuses allow TST modifications.
  • Corporate account discounts and negotiated rates are applied during TST updates.
  • priceOption can be used to request a specific fare recalculation type when supported.
  • The system must support corporate account functionality.

Response Structure

FieldTypeNullableDescription
systemstringYesSystem name (e.g., VN, VJ, 1A)
statusbooleanNotrue if successful, false if failed
errorobjectYesError details (if any)
descriptionstringYesError description (if any)
trackingIdstringYesTracking ID for request logs
trackingTimestringYesTime for request tracking (ISO 8601 format)

Error Object

FieldTypeNullableDescription
idintegerNoError code ID
messagestringYesError message

Sample Response:

{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "abc-123",
"trackingTime": "2024-06-01T12:00:00Z"
}

Error Codes

This endpoint may return the following error codes:

For a complete list of error codes, see Error Codes.


Security & Validation

  • All input is validated for type and required fields.
  • Only authenticated users can access this endpoint.
  • Booking codes are verified against existing bookings.
  • Corporate account codes are validated against authorized accounts.
  • All TST updates are logged and traceable.
  • Access control ensures only authorized users can update TST pricing.

Validation Questions

  • What are the requirements for corporate account setup and validation?
  • How are negotiated rates applied during TST updates?
  • Are there restrictions on which bookings can have TST updates?
  • How does TST pricing differ from standard fare pricing?

For integration support, see Contact Support.