Download OpenAPI specification:
This is a collection of http methods based on the OpenAPI 3.0 specification to manage agencies airline tickets.
To test it you can download the Postman files for our API using the following links
- Download API Postman File
- Download Development Env Postman File
These files contain the necessary configurations and endpoints for testing and interacting with our API. If you have any questions or need further assistance, feel free to reach out!
To know more about us, access Agent Guru
This is the OAuth 2.0 password grant to access the API.
Use the endpoints to directly request an access token by using the application's credentials (Username and Password) and to renew an expired access_token using a refresh_token.
Use this endpoint to directly request an access token by using the application's credentials (Username and Password).
The access token lasts 1 hour.
| username | string Represents the unique identifier assigned to the client application that is making requests to the API. |
| password | string Represents the password associated with the username, used to authenticate the client application when making requests to the API. |
| group_id | integer (Optional) Group associated to the user. Created bookings will be registered to this specific group. |
{- "username": "string",
- "password": "string",
- "group_id": 0
}{- "access_token": "string",
- "token_type": "string",
- "refresh_token": "string",
- "expires_in": 0
}Use this endpoint to directly request a new access token by using the refresh token issued previously.
As a result of exchanging a refresh token, a new refresh token will be issued and the existing token will be invalidated.
This allows for automatic detection of token reuse if the token is leaked.
The refresh token is valid for a duration of 24 hours.
Each time a new refresh token is generated, the previously issued token will be invalidated.
| refresh_token | string Represents the refresh token issued in conjunction with the access token. |
{- "refresh_token": "string"
}{- "access_token": "string",
- "token_type": "string",
- "refresh_token": "string",
- "expires_in": 0
}The Airline Shopping Management API serves as a comprehensive solution for travel agencies to manage airline fares efficiently.
This API allows users to search for flights from different sources like GDSs and Direct Connect providers.
Obtain a list of fares during a specified date interval.
The maximum period is 330 days.
| route | string Specifies flight route as pipe-delimited string: origin,destination,outbound_date[+origin,destination,inbound_date].
Example: |
| provider_type | Array of strings (ProviderType) Items Enum: "" "UNSPECIFIED" "AMADEUS" "FARELOGIX" "SABRE" "AZUL" "GOL" "LATAM" "ELATAM" "IBERIA" "LUFTHANSA" "AIREUROPA" |
| airlines | Array of strings List of preferred airlines. |
| adts | integer <int32> Specifies the number of adults. |
| chds | integer <int32> Specifies the number of children. |
| infs | integer <int32> Specifies the number of infants. |
| cabin | string (Cabin) Enum: "UNSPECIFIED" "ECONOMY" "PREMIUM" "BUSINESS" "FIRST" Cabin class requested or booked for the flight.
|
| direct_flights_only | boolean If true, only direct flights will be included in the search. |
| cheapest_price_only | boolean If true, only direct flights will be included in the search. |
| with_bags_only | boolean If true, only flights with baggage are returned. |
| max_connections | integer <int32> Maximum number of connections allowed. |
| booking_id | string Identifier of an existing booking to reissue within the same PNR. |
curl -X 'GET' \ 'https://api.stg.agent.guru/rs/v1/flights/offers?route=SAO,GIG,2026-02-01+GIG,SAO,2026-02-10&adts=1&chds=1&infs=0&provider_type=AZUL' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "flexible_recommendations": true,
- "international": true,
- "offers": [
- {
- "search_id": "string",
- "journeys": [
- {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": null,
- "fare_basis": null,
- "cabin": null,
- "baggage": null,
- "fare_type": null,
- "fare_family": null
}, - "is_train": true,
- "stops": [
- null
], - "is_codeshare": true
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "fare_info": {
- "baggage": "UNSPECIFIED",
- "features": [
- {
- "type": null,
- "attribute": null,
- "penalty_amount": null,
- "penalty_amount_type": null,
- "penalty_currency": null
}
]
}, - "seats_remaining": 0,
- "has_codeshare": true,
- "provider_type": "",
- "slice_price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "fare": 0.1,
- "tax": 0.1,
- "currency": "string"
}
]
}
]
}
], - "original_currency": "string",
- "original_total_fare": 0.1,
- "currency": "string",
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total_agent_du": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "agent_du": 0.1
}
], - "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "validating_carrier": "string",
- "provider_type": "",
- "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}
}
]
}Obtain a list of fares during a specified date interval.
The maximum period is 330 days.
| slice_tokens | Array of strings Comma-separated list of slice tokens returned by |
| additional_offers | boolean Default: false When true, populates additional_offers in the response with alternative fare family combinations for the same flights. Only effective for flexible providers (GOL, AZUL, LATAM, ELATAM). |
curl -X 'GET' \ 'https://api.stg.agent.guru/rs/v1/flights/offers/price?slice_tokens=token_1,token_2' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "offer": {
- "search_id": "string",
- "journeys": [
- {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "is_train": true,
- "stops": [
- {
- "location_code": null,
- "arrival_date": null,
- "departure_date": null,
- "duration": null,
- "long_stop": null,
- "arrival_airport": null,
- "departure_airport": null,
- "sequence": null
}
], - "is_codeshare": true
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "fare_info": {
- "baggage": "UNSPECIFIED",
- "features": [
- {
- "type": "UNSPECIFIED",
- "attribute": "UNSPECIFIED",
- "penalty_amount": 0.1,
- "penalty_amount_type": "UNSPECIFIED",
- "penalty_currency": "string"
}
]
}, - "seats_remaining": 0,
- "has_codeshare": true,
- "provider_type": "",
- "slice_price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "fare": 0.1,
- "tax": 0.1,
- "currency": "string"
}
]
}
]
}
], - "original_currency": "string",
- "original_total_fare": 0.1,
- "currency": "string",
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total_agent_du": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "agent_du": 0.1
}
], - "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "validating_carrier": "string",
- "provider_type": "",
- "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}
}, - "additional_offers": [
- {
- "search_id": "string",
- "journeys": [
- {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": null,
- "fare_basis": null,
- "cabin": null,
- "baggage": null,
- "fare_type": null,
- "fare_family": null
}, - "is_train": true,
- "stops": [
- null
], - "is_codeshare": true
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "fare_info": {
- "baggage": "UNSPECIFIED",
- "features": [
- {
- "type": null,
- "attribute": null,
- "penalty_amount": null,
- "penalty_amount_type": null,
- "penalty_currency": null
}
]
}, - "seats_remaining": 0,
- "has_codeshare": true,
- "provider_type": "",
- "slice_price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "fare": 0.1,
- "tax": 0.1,
- "currency": "string"
}
]
}
]
}
], - "original_currency": "string",
- "original_total_fare": 0.1,
- "currency": "string",
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total_agent_du": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "agent_du": 0.1
}
], - "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "validating_carrier": "string",
- "provider_type": "",
- "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}
}
]
}The Airline Booking Management API serves as a comprehensive solution for travel agencies to manage airline fares efficiently.
This API allows users to book flights from different sources like GDSs and Direct Connect providers.
| selected_tokens required | Array of strings An array of selected token identifiers for the booking process. |
required | Array of objects (Passenger) A list of passengers included in the booking. |
{- "selected_tokens": [
- "string"
], - "passengers": [
- {
- "pax_type": "UNSPECIFIED",
- "phone_number": "string",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "UNSPECIFIED",
- "email": "string",
- "birth_date": "2019-08-24",
- "associated_infant_id": "string",
- "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "nationality": "string",
- "documents": [
- {
- "unique_identifier": "string",
- "type": "UNSPECIFIED",
- "issuing_country_code": "string",
- "created_at": "2019-08-24",
- "expires_at": "2019-08-24"
}
]
}
]
}{- "booking": {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "leg_status": "UNSPECIFIED",
- "stops": [
- {
- "location_code": "string",
- "arrival_date": "string",
- "departure_date": "string",
- "duration": 0,
- "long_stop": true,
- "arrival_airport": "string",
- "departure_airport": "string",
- "sequence": 0
}
], - "is_codeshare": true,
- "seats": [
- {
- "id": "string",
- "number": "string",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "seat_status": "UNSPECIFIED"
}
], - "bags": [
- {
- "id": "string",
- "baggage": "UNSPECIFIED",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "bag_status": "UNSPECIFIED",
- "ticket_number": "string"
}
], - "sequence": 0
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "has_codeshare": true,
- "balance_token": "string",
- "features": [
- {
- "type": "UNSPECIFIED",
- "attribute": "UNSPECIFIED",
- "penalty_amount": 0.1,
- "penalty_amount_type": "UNSPECIFIED",
- "penalty_currency": "string"
}
]
}
], - "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "validating_carrier": "string",
- "passengers": [
- {
- "pax_type": "UNSPECIFIED",
- "title": "string",
- "phone_number": "string",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "UNSPECIFIED",
- "email": "string",
- "birth_date": "2019-08-24",
- "middle_name": "string",
- "id": "string",
- "price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "tickets": [
- {
- "number": "string",
- "ticket_type": "UNSPECIFIED",
- "created_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "capabilities": {
- "cancel": true,
- "share": true,
- "refund": true
}
}
], - "associated_infant_id": "string",
- "capabilities": {
- "edit_tsa": true,
- "edit_contact": true,
- "edit_frequent_flyer": true,
- "editable_birthdate": true,
- "mandatory_document": true,
- "edit_passenger_info": true,
- "edit_document": true,
- "mandatory_birthdate": true,
- "mandatory_passenger_info": true
}, - "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "nationality": "string",
- "documents": [
- {
- "unique_identifier": "string",
- "type": "UNSPECIFIED",
- "issuing_country_code": "string",
- "created_at": "2019-08-24",
- "expires_at": "2019-08-24"
}
], - "balance_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "old_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "ancillaries": [
- {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "ticket_number": "string",
- "passenger_id": "string",
- "slice_id": "string",
- "leg_id": "string",
- "related_ticket_number": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "provider_fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string"
}, - "baggage": "UNSPECIFIED"
}
], - "passenger_profile_id": "string"
}
], - "provider": {
- "locator": "string",
- "warnings": [
- "string"
], - "provider_type": ""
}, - "booking_status": "UNSPECIFIED",
- "user": "string",
- "agency_id": 0,
- "id": "string",
- "issued_at": "2026-03-09T16:07:35Z",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "warnings": [
- {
- "description": "string",
- "type": "UNSPECIFIED",
- "actions": [
- "UNSPECIFIED"
]
}
], - "capabilities": {
- "cancel": true,
- "ticket": true,
- "split": true,
- "share": true,
- "history": true,
- "creditcard_fop": true,
- "multiple_creditcard_fop": true,
- "invoice_fop": true,
- "cancel_all_tickets": true,
- "eligible_documents": [
- "UNSPECIFIED"
], - "slice_change": true,
- "airports_change": true,
- "partial_issue": true,
- "buy_seat": true,
- "buy_baggage": true,
- "disable_city_pair_edition": true
}, - "price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "remarks": [
- {
- "remark_type": "RemarkType_UNSPECIFIED",
- "text": "string",
- "segment_number": "string"
}
], - "imported": true,
- "created_by": 0,
- "payments": [
- {
- "fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string",
- "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "payment_pax_details": [
- {
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agency_fee": 0.1,
- "passenger": {
- "first_name": "string",
- "last_name": "string",
- "id": "string"
}, - "ticket_number": "string",
- "ancillary_type": "UNSPECIFIED",
- "status": "UNSPECIFIED",
- "agent_du": 0.1,
- "penalty": 0.1,
- "extra": 0.1
}
], - "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "charged_amount": 0.1,
- "status": "UNSPECIFIED",
- "id": "string",
- "order_id": "string",
- "cancelled_at": "2026-03-09T16:07:35Z"
}
], - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "agency_info": {
- "id": 0,
- "name": "string"
}, - "original_group_id": 0,
- "group_id": 0,
- "group_info": {
- "id": 0,
- "name": "string"
}, - "offline": true
}
}Imports an existing booking from a provider using its locator (PNR).
When save is true, the booking is persisted in the database and becomes fully manageable through the API.
When save is false or omitted, the booking is fetched and returned but not saved — useful for previewing a booking before deciding to import it.
| locator required | string The airline's reference for the booking, also known as a "passenger name record" (PNR) or "record locator". |
| provider_type required | string (ProviderType) Enum: "" "UNSPECIFIED" "AMADEUS" "FARELOGIX" "SABRE" "AZUL" "GOL" "LATAM" "ELATAM" "IBERIA" "LUFTHANSA" "AIREUROPA" The airline's system. |
| save | boolean When true, the imported booking is persisted in the database and becomes fully manageable. |
| provider_id | string The provider's internal order identifier. |
{- "locator": "string",
- "provider_type": "",
- "save": true,
- "provider_id": "string"
}{- "booking": {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "leg_status": "UNSPECIFIED",
- "stops": [
- {
- "location_code": "string",
- "arrival_date": "string",
- "departure_date": "string",
- "duration": 0,
- "long_stop": true,
- "arrival_airport": "string",
- "departure_airport": "string",
- "sequence": 0
}
], - "is_codeshare": true,
- "seats": [
- {
- "id": "string",
- "number": "string",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "seat_status": "UNSPECIFIED"
}
], - "bags": [
- {
- "id": "string",
- "baggage": "UNSPECIFIED",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "bag_status": "UNSPECIFIED",
- "ticket_number": "string"
}
], - "sequence": 0
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "has_codeshare": true,
- "balance_token": "string",
- "features": [
- {
- "type": "UNSPECIFIED",
- "attribute": "UNSPECIFIED",
- "penalty_amount": 0.1,
- "penalty_amount_type": "UNSPECIFIED",
- "penalty_currency": "string"
}
]
}
], - "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "validating_carrier": "string",
- "passengers": [
- {
- "pax_type": "UNSPECIFIED",
- "title": "string",
- "phone_number": "string",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "UNSPECIFIED",
- "email": "string",
- "birth_date": "2019-08-24",
- "middle_name": "string",
- "id": "string",
- "price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "tickets": [
- {
- "number": "string",
- "ticket_type": "UNSPECIFIED",
- "created_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "capabilities": {
- "cancel": true,
- "share": true,
- "refund": true
}
}
], - "associated_infant_id": "string",
- "capabilities": {
- "edit_tsa": true,
- "edit_contact": true,
- "edit_frequent_flyer": true,
- "editable_birthdate": true,
- "mandatory_document": true,
- "edit_passenger_info": true,
- "edit_document": true,
- "mandatory_birthdate": true,
- "mandatory_passenger_info": true
}, - "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "nationality": "string",
- "documents": [
- {
- "unique_identifier": "string",
- "type": "UNSPECIFIED",
- "issuing_country_code": "string",
- "created_at": "2019-08-24",
- "expires_at": "2019-08-24"
}
], - "balance_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "old_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "ancillaries": [
- {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "ticket_number": "string",
- "passenger_id": "string",
- "slice_id": "string",
- "leg_id": "string",
- "related_ticket_number": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "provider_fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string"
}, - "baggage": "UNSPECIFIED"
}
], - "passenger_profile_id": "string"
}
], - "provider": {
- "locator": "string",
- "warnings": [
- "string"
], - "provider_type": ""
}, - "booking_status": "UNSPECIFIED",
- "user": "string",
- "agency_id": 0,
- "id": "string",
- "issued_at": "2026-03-09T16:07:35Z",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "warnings": [
- {
- "description": "string",
- "type": "UNSPECIFIED",
- "actions": [
- "UNSPECIFIED"
]
}
], - "capabilities": {
- "cancel": true,
- "ticket": true,
- "split": true,
- "share": true,
- "history": true,
- "creditcard_fop": true,
- "multiple_creditcard_fop": true,
- "invoice_fop": true,
- "cancel_all_tickets": true,
- "eligible_documents": [
- "UNSPECIFIED"
], - "slice_change": true,
- "airports_change": true,
- "partial_issue": true,
- "buy_seat": true,
- "buy_baggage": true,
- "disable_city_pair_edition": true
}, - "price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "remarks": [
- {
- "remark_type": "RemarkType_UNSPECIFIED",
- "text": "string",
- "segment_number": "string"
}
], - "imported": true,
- "created_by": 0,
- "payments": [
- {
- "fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string",
- "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "payment_pax_details": [
- {
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agency_fee": 0.1,
- "passenger": {
- "first_name": "string",
- "last_name": "string",
- "id": "string"
}, - "ticket_number": "string",
- "ancillary_type": "UNSPECIFIED",
- "status": "UNSPECIFIED",
- "agent_du": 0.1,
- "penalty": 0.1,
- "extra": 0.1
}
], - "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "charged_amount": 0.1,
- "status": "UNSPECIFIED",
- "id": "string",
- "order_id": "string",
- "cancelled_at": "2026-03-09T16:07:35Z"
}
], - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "agency_info": {
- "id": 0,
- "name": "string"
}, - "original_group_id": 0,
- "group_id": 0,
- "group_info": {
- "id": 0,
- "name": "string"
}, - "offline": true
}
}| id required | string The airline booking id.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
curl -X 'GET' \ 'https://api.stg.agent.guru/rs/v1/flights/bookings/{booking_id}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "booking": {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "leg_status": "UNSPECIFIED",
- "stops": [
- {
- "location_code": "string",
- "arrival_date": "string",
- "departure_date": "string",
- "duration": 0,
- "long_stop": true,
- "arrival_airport": "string",
- "departure_airport": "string",
- "sequence": 0
}
], - "is_codeshare": true,
- "seats": [
- {
- "id": "string",
- "number": "string",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "seat_status": "UNSPECIFIED"
}
], - "bags": [
- {
- "id": "string",
- "baggage": "UNSPECIFIED",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "bag_status": "UNSPECIFIED",
- "ticket_number": "string"
}
], - "sequence": 0
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "has_codeshare": true,
- "balance_token": "string",
- "features": [
- {
- "type": "UNSPECIFIED",
- "attribute": "UNSPECIFIED",
- "penalty_amount": 0.1,
- "penalty_amount_type": "UNSPECIFIED",
- "penalty_currency": "string"
}
]
}
], - "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "validating_carrier": "string",
- "passengers": [
- {
- "pax_type": "UNSPECIFIED",
- "title": "string",
- "phone_number": "string",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "UNSPECIFIED",
- "email": "string",
- "birth_date": "2019-08-24",
- "middle_name": "string",
- "id": "string",
- "price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "tickets": [
- {
- "number": "string",
- "ticket_type": "UNSPECIFIED",
- "created_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "capabilities": {
- "cancel": true,
- "share": true,
- "refund": true
}
}
], - "associated_infant_id": "string",
- "capabilities": {
- "edit_tsa": true,
- "edit_contact": true,
- "edit_frequent_flyer": true,
- "editable_birthdate": true,
- "mandatory_document": true,
- "edit_passenger_info": true,
- "edit_document": true,
- "mandatory_birthdate": true,
- "mandatory_passenger_info": true
}, - "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "nationality": "string",
- "documents": [
- {
- "unique_identifier": "string",
- "type": "UNSPECIFIED",
- "issuing_country_code": "string",
- "created_at": "2019-08-24",
- "expires_at": "2019-08-24"
}
], - "balance_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "old_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "ancillaries": [
- {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "ticket_number": "string",
- "passenger_id": "string",
- "slice_id": "string",
- "leg_id": "string",
- "related_ticket_number": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "provider_fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string"
}, - "baggage": "UNSPECIFIED"
}
], - "passenger_profile_id": "string"
}
], - "provider": {
- "locator": "string",
- "warnings": [
- "string"
], - "provider_type": ""
}, - "booking_status": "UNSPECIFIED",
- "user": "string",
- "agency_id": 0,
- "id": "string",
- "issued_at": "2026-03-09T16:07:35Z",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "warnings": [
- {
- "description": "string",
- "type": "UNSPECIFIED",
- "actions": [
- "UNSPECIFIED"
]
}
], - "capabilities": {
- "cancel": true,
- "ticket": true,
- "split": true,
- "share": true,
- "history": true,
- "creditcard_fop": true,
- "multiple_creditcard_fop": true,
- "invoice_fop": true,
- "cancel_all_tickets": true,
- "eligible_documents": [
- "UNSPECIFIED"
], - "slice_change": true,
- "airports_change": true,
- "partial_issue": true,
- "buy_seat": true,
- "buy_baggage": true,
- "disable_city_pair_edition": true
}, - "price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "remarks": [
- {
- "remark_type": "RemarkType_UNSPECIFIED",
- "text": "string",
- "segment_number": "string"
}
], - "imported": true,
- "created_by": 0,
- "payments": [
- {
- "fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string",
- "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "payment_pax_details": [
- {
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agency_fee": 0.1,
- "passenger": {
- "first_name": "string",
- "last_name": "string",
- "id": "string"
}, - "ticket_number": "string",
- "ancillary_type": "UNSPECIFIED",
- "status": "UNSPECIFIED",
- "agent_du": 0.1,
- "penalty": 0.1,
- "extra": 0.1
}
], - "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "charged_amount": 0.1,
- "status": "UNSPECIFIED",
- "id": "string",
- "order_id": "string",
- "cancelled_at": "2026-03-09T16:07:35Z"
}
], - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "agency_info": {
- "id": 0,
- "name": "string"
}, - "original_group_id": 0,
- "group_id": 0,
- "group_info": {
- "id": 0,
- "name": "string"
}, - "offline": true
}
}| id required | string The airline booking id.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
curl -X 'DELETE' \ 'https://api.stg.agent.guru/rs/v1/flights/bookings/{booking_id}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "code": 0,
- "message": "string"
}| id required | string The airline booking id.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
required | Array of objects (BookingPassengerInfo) Information about the passengers that need to be updated in the booking. |
{- "booking_passengers_info": [
- {
- "passenger_id": "string",
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birth_date": "2019-08-24",
- "gender_type": "UNSPECIFIED",
- "redress": "string",
- "nationality": "string",
- "email": "string",
- "phone": "string",
- "documents": [
- {
- "unique_identifier": "string",
- "type": "UNSPECIFIED",
- "issuing_country_code": "string",
- "created_at": "2019-08-24",
- "expires_at": "2019-08-24"
}
]
}
]
}{- "booking": {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "leg_status": "UNSPECIFIED",
- "stops": [
- {
- "location_code": "string",
- "arrival_date": "string",
- "departure_date": "string",
- "duration": 0,
- "long_stop": true,
- "arrival_airport": "string",
- "departure_airport": "string",
- "sequence": 0
}
], - "is_codeshare": true,
- "seats": [
- {
- "id": "string",
- "number": "string",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "seat_status": "UNSPECIFIED"
}
], - "bags": [
- {
- "id": "string",
- "baggage": "UNSPECIFIED",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "bag_status": "UNSPECIFIED",
- "ticket_number": "string"
}
], - "sequence": 0
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "has_codeshare": true,
- "balance_token": "string",
- "features": [
- {
- "type": "UNSPECIFIED",
- "attribute": "UNSPECIFIED",
- "penalty_amount": 0.1,
- "penalty_amount_type": "UNSPECIFIED",
- "penalty_currency": "string"
}
]
}
], - "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "validating_carrier": "string",
- "passengers": [
- {
- "pax_type": "UNSPECIFIED",
- "title": "string",
- "phone_number": "string",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "UNSPECIFIED",
- "email": "string",
- "birth_date": "2019-08-24",
- "middle_name": "string",
- "id": "string",
- "price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "tickets": [
- {
- "number": "string",
- "ticket_type": "UNSPECIFIED",
- "created_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "capabilities": {
- "cancel": true,
- "share": true,
- "refund": true
}
}
], - "associated_infant_id": "string",
- "capabilities": {
- "edit_tsa": true,
- "edit_contact": true,
- "edit_frequent_flyer": true,
- "editable_birthdate": true,
- "mandatory_document": true,
- "edit_passenger_info": true,
- "edit_document": true,
- "mandatory_birthdate": true,
- "mandatory_passenger_info": true
}, - "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "nationality": "string",
- "documents": [
- {
- "unique_identifier": "string",
- "type": "UNSPECIFIED",
- "issuing_country_code": "string",
- "created_at": "2019-08-24",
- "expires_at": "2019-08-24"
}
], - "balance_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "old_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "ancillaries": [
- {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "ticket_number": "string",
- "passenger_id": "string",
- "slice_id": "string",
- "leg_id": "string",
- "related_ticket_number": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "provider_fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string"
}, - "baggage": "UNSPECIFIED"
}
], - "passenger_profile_id": "string"
}
], - "provider": {
- "locator": "string",
- "warnings": [
- "string"
], - "provider_type": ""
}, - "booking_status": "UNSPECIFIED",
- "user": "string",
- "agency_id": 0,
- "id": "string",
- "issued_at": "2026-03-09T16:07:35Z",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "warnings": [
- {
- "description": "string",
- "type": "UNSPECIFIED",
- "actions": [
- "UNSPECIFIED"
]
}
], - "capabilities": {
- "cancel": true,
- "ticket": true,
- "split": true,
- "share": true,
- "history": true,
- "creditcard_fop": true,
- "multiple_creditcard_fop": true,
- "invoice_fop": true,
- "cancel_all_tickets": true,
- "eligible_documents": [
- "UNSPECIFIED"
], - "slice_change": true,
- "airports_change": true,
- "partial_issue": true,
- "buy_seat": true,
- "buy_baggage": true,
- "disable_city_pair_edition": true
}, - "price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "remarks": [
- {
- "remark_type": "RemarkType_UNSPECIFIED",
- "text": "string",
- "segment_number": "string"
}
], - "imported": true,
- "created_by": 0,
- "payments": [
- {
- "fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string",
- "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "payment_pax_details": [
- {
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agency_fee": 0.1,
- "passenger": {
- "first_name": "string",
- "last_name": "string",
- "id": "string"
}, - "ticket_number": "string",
- "ancillary_type": "UNSPECIFIED",
- "status": "UNSPECIFIED",
- "agent_du": 0.1,
- "penalty": 0.1,
- "extra": 0.1
}
], - "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "charged_amount": 0.1,
- "status": "UNSPECIFIED",
- "id": "string",
- "order_id": "string",
- "cancelled_at": "2026-03-09T16:07:35Z"
}
], - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "agency_info": {
- "id": 0,
- "name": "string"
}, - "original_group_id": 0,
- "group_id": 0,
- "group_info": {
- "id": 0,
- "name": "string"
}, - "offline": true
}
}Splits a booking by moving one or more passengers into a newly created child booking.
The original booking remains active with the remaining passengers.
The response contains both the original_booking_id and the child_booking_id, along with the provider locator (child_locator) for the new booking.
| id required | string The airline booking id.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
| passenger_ids required | Array of strings non-empty List of passenger identifiers to be moved into the new child booking. |
{- "passenger_ids": [
- "string"
]
}{- "original_booking_id": "string",
- "child_booking_id": "string",
- "child_locator": "string"
}Triggers a repricing for the given booking against the provider.
Use lowest_price to request the cheapest available fare.
Use informative to reprice without updating the booking record.
| id required | string The airline booking id.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
| lowest_price required | boolean If true, the service returns the lowest available price for the booking across available options. |
| informative required | boolean If true, the repricing is informative only and does not update the booking record. |
{- "lowest_price": true,
- "informative": true
}{- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "leg_status": "UNSPECIFIED",
- "stops": [
- {
- "location_code": "string",
- "arrival_date": "string",
- "departure_date": "string",
- "duration": 0,
- "long_stop": true,
- "arrival_airport": "string",
- "departure_airport": "string",
- "sequence": 0
}
], - "is_codeshare": true,
- "seats": [
- {
- "id": "string",
- "number": "string",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "seat_status": "UNSPECIFIED"
}
], - "bags": [
- {
- "id": "string",
- "baggage": "UNSPECIFIED",
- "status": "string",
- "passenger_id": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "bag_status": "UNSPECIFIED",
- "ticket_number": "string"
}
], - "sequence": 0
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "has_codeshare": true,
- "balance_token": "string",
- "features": [
- {
- "type": "UNSPECIFIED",
- "attribute": "UNSPECIFIED",
- "penalty_amount": 0.1,
- "penalty_amount_type": "UNSPECIFIED",
- "penalty_currency": "string"
}
]
}
], - "booking_price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "price_changed": true,
- "rebook": true,
- "extras_removed": true
}Updates the frequent flyer information for one or more passengers in a booking.
All passengers to be updated must be provided in a single request. Each entry requires the passenger_id, the airline IATA code, and the frequent flyer code.
| id required | string The airline booking id.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
required | Array of objects List of passengers with their frequent flyer information to update. |
{- "passengers": [
- {
- "passenger_id": "string",
- "airline": "string",
- "code": "string"
}
]
}{- "code": 0,
- "message": "string"
}Cancels all airline tickets associated with the given booking ID. The booking must belong to the authenticated agency.
| id required | string The airline booking id. |
curl -X 'DELETE' \ 'https://api.stg.agent.guru/rs/v1/flights/bookings/{booking_id}/tickets' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "code": 0,
- "message": "string"
}The Ancillaries API allows management of ancillary services for an existing booking.
Use these endpoints to retrieve seat maps, select seats, retrieve baggage options, and select baggage for passengers.
Returns the available baggage options for a specific slice of a booking, grouped by passenger.
Each baggage option contains a token per passenger that must be used in the POST /bookings/{id}/baggages request to select that option.
Important: The quantity in each baggage option represents the number of bags that will be added to the booking for that slice — it does not represent the total.
For example: if a booking already has 1 free bag included in the fare and you select an option with quantity 2 for the outbound slice only, that slice will have 3 bags total while the remaining slices will keep their original 1 bag.
Note: Not all providers support baggage selection, and availability may vary depending on the booking status (on hold or ticketed). Before calling this endpoint, check the capabilities.buy_baggage field in the booking response — if false, baggage selection is not available for that booking.
| id required | string The airline booking id. |
| slice_id required | string The slice identifier for which to retrieve baggage options. |
curl -X 'GET' \ 'https://api.stg.agent.guru/rs/v1/flights/bookings/{booking_id}/slices/{slice_id}/baggage-options' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "baggage_options": [
- {
- "passenger_id": "string",
- "baggage_options": [
- {
- "token": "string",
- "slice_id": "string",
- "quantity": 0,
- "weight": 0.1,
- "price": {
- "currency": "string",
- "amount": 0.1
}, - "pre_selected": true
}
]
}
]
}Selects baggage options for one or more passengers across multiple slices of a booking in a single request.
Each entry in the slices array contains a slice_id and the list of baggage_tokens to select for that slice. Each token is returned per passenger in the baggage options response at baggage_options[].baggage_options[].token, where each entry corresponds to one passenger via the passenger_id field.
Important: The quantity of each selected option represents the number of bags that will be added to the booking — not the total. For example: a booking with 1 free bag that receives a selection of quantity 2 for the outbound slice will result in 3 bags for that slice and 1 for the rest.
On hold bookings: Every baggage selection replaces all previously selected but not yet ticketed bags. The new request is treated as the definitive selection — previously chosen bags that are not included in the new request will be removed.
The payment field is required when the booking is already ticketed. When the booking is on hold, payment is not required and will be ignored if provided.
Note: Not all providers support baggage selection, and availability may vary depending on the booking status (on hold or ticketed). Before calling this endpoint, check the capabilities.buy_baggage field in the booking response — if false, baggage selection is not available for that booking.
| id required | string The airline booking id. |
required | Array of objects List of slices and their baggage selections. |
object (AncillaryPayment) |
{- "slices": [
- {
- "slice_id": "string",
- "baggage_tokens": [
- "string"
]
}
], - "payment": {
- "fop_type": "CREDITCARD",
- "passenger_ids": [
- "string"
], - "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "card_brand": "string"
}, - "installment_plan_token": "string"
}
}{- "success": true,
- "ancillaries": [
- {
- "booking_id": "string",
- "slice_id": "string",
- "passenger_id": "string",
- "quantity": 0,
- "weight": 0.1,
- "price": {
- "currency": "string",
- "amount": 0.1
}, - "ticket_number": "string",
- "bag_token": "string"
}
]
}Selects seats for one or more passengers across multiple legs of a booking in a single request.
Each entry in the legs array contains a leg_id and the list of seat_tokens to select for that leg. Each token is returned per passenger in the seat map response at seat_map.cabins[].rows[].sections[].elements[].available_services[].token, where each available_service entry corresponds to one passenger via the passenger_id field.
The payment field is required when the booking is already ticketed. When the booking is on hold, payment is not required and will be ignored if provided.
Note: Not all providers support seat selection, and availability may vary depending on the booking status (on hold or ticketed). Before calling this endpoint, check the capabilities.buy_seat field in the booking response — if false, seat selection is not available for that booking.
| id required | string The airline booking id. |
required | Array of objects List of legs and their seat selections. |
object (AncillaryPayment) |
{- "legs": [
- {
- "leg_id": "string",
- "seat_tokens": [
- "string"
]
}
], - "payment": {
- "fop_type": "CREDITCARD",
- "passenger_ids": [
- "string"
], - "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "card_brand": "string"
}, - "installment_plan_token": "string"
}
}{- "success": true,
- "seat_ancillaries": [
- {
- "booking_id": "string",
- "slice_id": "string",
- "leg_id": "string",
- "passenger_id": "string",
- "token": "string",
- "price": {
- "currency": "string",
- "amount": 0.1
}, - "ticket_number": "string"
}
]
}Returns the seat map for a specific leg of a booking.
The seat map includes all cabins, rows and individual seat elements with their availability status, disclosures (e.g. exit row, chargeable, bassinet) and available services with pricing per passenger.
Note: Not all providers support seat selection, and availability may vary depending on the booking status (on hold or ticketed). Before calling this endpoint, check the capabilities.buy_seat field in the booking response — if false, seat selection is not available for that booking.
| id required | string The airline booking id. |
| leg_id required | string The leg identifier for which to retrieve the seat map. |
curl -X 'GET' \ 'https://api.stg.agent.guru/rs/v1/flights/bookings/{booking_id}/legs/{leg_id}/seat-map' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "seat_map": {
- "service_id": "string",
- "slice_id": "string",
- "leg_id": "string",
- "equipment": "string",
- "cabins": [
- {
- "cabin": "string",
- "deck": 0,
- "rows": [
- {
- "id": 0,
- "sections": [
- {
- "id": 0,
- "elements": [
- {
- "type": null,
- "name": null,
- "designator": null,
- "disclosures": [ ],
- "available_services": [ ],
- "status": null
}
]
}
]
}
], - "wings": {
- "first_row_index": 0,
- "last_row_index": 0
}
}
]
}
}The Airline Ticket Management API serves as a comprehensive solution for travel agencies to manage airline ticket efficiently.
This API allows users to search for tickets in a given period, paginate the results if the it is bigger than 250 items and also request information for a single ticket.
| booking_id required | string non-empty The unique identifier of the booking to be ticketed. |
required | Array of objects (InputFormOfPayment) non-empty The list of forms of payment for this ticketing request. At least one form of payment is required. |
| new_slice_tokens | Array of strings List of new slice tokens obtained from the slices of the selected offer in POST /exchange/estimate. Each token corresponds to a slice (journeys[i].slices[j].balance_token) in the estimate response. |
| exchange_slice_tokens | Array of strings Tokens of the existing booking slices to exchange (remove) during same-booking reissuance. |
{- "booking_id": "string",
- "form_of_payments": [
- {
- "fop_type": "UNSPECIFIED",
- "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "card_brand": "UNSPECIFIED"
}, - "passenger_ids": [
- "string"
], - "plan_token": "string",
- "tickets": [
- "string"
]
}
], - "new_slice_tokens": [
- "string"
], - "exchange_slice_tokens": [
- "string"
]
}{- "tickets": [
- {
- "number": "string",
- "validating_carrier": "string",
- "ticket_type": "TICKET",
- "emd_type": "BAGGAGE",
- "related_ticket_number": "string",
- "flight_type": "DOMESTIC",
- "ticket_status": "TICKETED",
- "created_at": "string",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "original_ticket": "string",
- "locator": "string",
- "provider_type": "",
- "backoffice_code": "string",
- "created_by": {
- "fitst_name": "string",
- "last_name": "string",
- "email": "string"
}, - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "currency": "string",
- "exchange_rate": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "agent_du": 0.1,
- "agent_fee": 0.1,
- "consolid_fee": 0.1,
- "penalty": 0.1,
- "total": 0.1
}, - "passenger": {
- "pax_type": "ADT",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "FEMALE",
- "email": "string",
- "birth_date": "string",
- "phone_number": "string",
- "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "documents": [
- {
- "type": "CPF",
- "unique_identifier": "string",
- "issuing_country_code": "string",
- "created_at": "string",
- "expires_at": "string"
}
]
}, - "slices": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "duration": 0,
- "flight_number": 0,
- "aircraft": "string",
- "managed_by": "string",
- "operated_by": "string",
- "number_of_stops": 0,
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "seat": {
- "number": "string"
}
}
]
}
], - "form_of_payment": {
- "fop_type": "UNSPECIFIED",
- "extended_invoice": true,
- "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "approval_code": "string",
- "card_brand": "VISA"
}, - "installment_plan": {
- "installment": 0,
- "installment_amount": 0.1,
- "first_installment_amount": 0.1,
- "interest_amount": 0.1,
- "total": 0.1,
- "interest_rate": 0.1
}, - "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}
}
]
}Obtain a list of tickets issued during a specified date interval.
The maximum period is 7 days.
| start_date | string <date> Specifies the start date of the period to search for ticketStatus. |
| end_date | string <date> Specifies the end date of the period to search for tickets |
| page | integer <int32> Specifies the page number for pagination of the search results. |
| per_page | integer <int32> Specifies the number of results to return per page for pagination. |
| timezone | string The timezone field allows the application to present date and time information in a way that is relevant to the client’s geographical location.
|
| sort_by | string Specifies the number of results to return per page for pagination
|
| booking_id | string The internal booking identifier (UUID). |
| locator | string Deprecated Deprecated — use |
curl -X 'GET' \ 'https://api.stg.agent.guru/rs/v1/flights/tickets?start_date=2023-09-01&end_date=2023-09-11' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "tickets": [
- {
- "number": "string",
- "validating_carrier": "string",
- "ticket_type": "TICKET",
- "emd_type": "BAGGAGE",
- "related_ticket_number": "string",
- "flight_type": "DOMESTIC",
- "ticket_status": "TICKETED",
- "created_at": "string",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "original_ticket": "string",
- "locator": "string",
- "provider_type": "",
- "backoffice_code": "string",
- "created_by": {
- "fitst_name": "string",
- "last_name": "string",
- "email": "string"
}, - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "currency": "string",
- "exchange_rate": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "agent_du": 0.1,
- "agent_fee": 0.1,
- "consolid_fee": 0.1,
- "penalty": 0.1,
- "total": 0.1
}, - "passenger": {
- "pax_type": "ADT",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "FEMALE",
- "email": "string",
- "birth_date": "string",
- "phone_number": "string",
- "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "documents": [
- {
- "type": "CPF",
- "unique_identifier": "string",
- "issuing_country_code": "string",
- "created_at": "string",
- "expires_at": "string"
}
]
}, - "slices": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "duration": 0,
- "flight_number": 0,
- "aircraft": "string",
- "managed_by": "string",
- "operated_by": "string",
- "number_of_stops": 0,
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "seat": {
- "number": "string"
}
}
]
}
], - "form_of_payment": {
- "fop_type": "UNSPECIFIED",
- "extended_invoice": true,
- "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "approval_code": "string",
- "card_brand": "VISA"
}, - "installment_plan": {
- "installment": 0,
- "installment_amount": 0.1,
- "first_installment_amount": 0.1,
- "interest_amount": 0.1,
- "total": 0.1,
- "interest_rate": 0.1
}, - "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}
}
], - "meta": {
- "page": 0,
- "per_page": 0,
- "total_pages": 0,
- "total": 0
}
}This method return a single ticket filtered by its number.
| number required | string The airline ticket number.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
curl -X 'GET' \ 'https://api.stg.agent.guru/rs/v1/flights/tickets/5774995096800 \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "number": "string",
- "validating_carrier": "string",
- "ticket_type": "TICKET",
- "emd_type": "BAGGAGE",
- "related_ticket_number": "string",
- "flight_type": "DOMESTIC",
- "ticket_status": "TICKETED",
- "created_at": "string",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "original_ticket": "string",
- "locator": "string",
- "provider_type": "",
- "backoffice_code": "string",
- "created_by": {
- "fitst_name": "string",
- "last_name": "string",
- "email": "string"
}, - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "currency": "string",
- "exchange_rate": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "agent_du": 0.1,
- "agent_fee": 0.1,
- "consolid_fee": 0.1,
- "penalty": 0.1,
- "total": 0.1
}, - "passenger": {
- "pax_type": "ADT",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "FEMALE",
- "email": "string",
- "birth_date": "string",
- "phone_number": "string",
- "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "documents": [
- {
- "type": "CPF",
- "unique_identifier": "string",
- "issuing_country_code": "string",
- "created_at": "string",
- "expires_at": "string"
}
]
}, - "slices": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "duration": 0,
- "flight_number": 0,
- "aircraft": "string",
- "managed_by": "string",
- "operated_by": "string",
- "number_of_stops": 0,
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "seat": {
- "number": "string"
}
}
]
}
], - "form_of_payment": {
- "fop_type": "UNSPECIFIED",
- "extended_invoice": true,
- "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "approval_code": "string",
- "card_brand": "VISA"
}, - "installment_plan": {
- "installment": 0,
- "installment_amount": 0.1,
- "first_installment_amount": 0.1,
- "interest_amount": 0.1,
- "total": 0.1,
- "interest_rate": 0.1
}, - "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}
}This method cancel a single ticket filtered by its number.
| number required | string The airline ticket number.
This is classified as a string because the airline ticket number consists of 13 characters, with the initial characters potentially being zeros, which must not be omitted. |
curl -X 'DELETE' \ 'https://api.stg.agent.guru/rs/v1/flights/tickets/5774995096800 \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken' \ -H 'x-api-key: myapikey'
{- "code": 0,
- "message": "string"
}The Installments API provides available credit card installment plans for a set of flight offer tokens.
Use this endpoint before payment to display the installment options to the traveler, including per-installment amounts, interest rates, and total prices.
Retrieves available installment plans for a credit card given a set of flight offer tokens.
You must provide either a booking_id or a list of selected_tokens — one of them is required.
When booking_id is provided, the service fetches the booking and uses the tokens from its slices.
The creditcard_bin is always required. It represents the first 6 digits of the credit card number (BIN — Bank Identification Number), used to identify the card brand and available installment plans.
| creditcard_bin required | string The first 6 digits of the credit card number (BIN — Bank Identification Number). |
| booking_id | string The booking identifier (UUID or locator). |
| selected_tokens | Array of strings A list of flight slice tokens previously obtained from the offers search or price endpoints. |
| passenger_ids | Array of strings Restricts the installment plans to a subset of the booking's passengers. |
{- "card_brand": "VISA",
- "card_partner": "AZUL",
- "installment_plans": [
- {
- "installment": 12,
- "installment_amount": 100.5,
- "first_installment_amount": 105,
- "interest_amount": 5.5,
- "total": 1206,
- "plan_code": "PLAN_001",
- "plan_token": "pt_abc123",
- "interest_rate": 1.5
}
], - "discount": 50,
- "obfee": 10,
- "price_changed": false
}The Exchange API allows reissuance of airline tickets into a new booking.
Use the estimate endpoint first to simulate the cost breakdown before performing the actual reissuance.
Reissues one or more tickets, supporting both same booking reissuance (same PNR) and new booking reissuance (new PNR), depending on the provider and fare conditions.
Before calling this endpoint, use POST /exchange/estimate to simulate the cost and present the breakdown to the user.
New booking reissuance (new PNR):
The ticket form of payment (FOP_TYPE_TICKET) is required in form_of_payments to apply the credit from the original tickets toward the new booking. The original ticket numbers must be informed inside the FOP_TYPE_TICKET entry.
| booking_id required | string non-empty The unique identifier of the booking to be ticketed. |
required | Array of objects (InputFormOfPayment) non-empty The list of forms of payment for this ticketing request. At least one form of payment is required. |
| new_slice_tokens | Array of strings List of new slice tokens obtained from the slices of the selected offer in POST /exchange/estimate. Each token corresponds to a slice (journeys[i].slices[j].balance_token) in the estimate response. |
| exchange_slice_tokens | Array of strings Tokens of the existing booking slices to exchange (remove) during same-booking reissuance. |
{- "booking_id": "string",
- "form_of_payments": [
- {
- "fop_type": "UNSPECIFIED",
- "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "card_brand": "UNSPECIFIED"
}, - "passenger_ids": [
- "string"
], - "plan_token": "string",
- "tickets": [
- "string"
]
}
], - "new_slice_tokens": [
- "string"
], - "exchange_slice_tokens": [
- "string"
]
}{- "tickets": [
- {
- "number": "string",
- "validating_carrier": "string",
- "ticket_type": "TICKET",
- "emd_type": "BAGGAGE",
- "related_ticket_number": "string",
- "flight_type": "DOMESTIC",
- "ticket_status": "TICKETED",
- "created_at": "string",
- "cancelled_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "original_ticket": "string",
- "locator": "string",
- "provider_type": "",
- "backoffice_code": "string",
- "created_by": {
- "fitst_name": "string",
- "last_name": "string",
- "email": "string"
}, - "airlines_locators": [
- {
- "airline": "string",
- "airline_locator": "string"
}
], - "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "currency": "string",
- "exchange_rate": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "agent_du": 0.1,
- "agent_fee": 0.1,
- "consolid_fee": 0.1,
- "penalty": 0.1,
- "total": 0.1
}, - "passenger": {
- "pax_type": "ADT",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "FEMALE",
- "email": "string",
- "birth_date": "string",
- "phone_number": "string",
- "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "documents": [
- {
- "type": "CPF",
- "unique_identifier": "string",
- "issuing_country_code": "string",
- "created_at": "string",
- "expires_at": "string"
}
]
}, - "slices": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "duration": 0,
- "flight_number": 0,
- "aircraft": "string",
- "managed_by": "string",
- "operated_by": "string",
- "number_of_stops": 0,
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "seat": {
- "number": "string"
}
}
]
}
], - "form_of_payment": {
- "fop_type": "UNSPECIFIED",
- "extended_invoice": true,
- "total": 0.1,
- "payment_card": {
- "holder": "string",
- "number": "string",
- "approval_code": "string",
- "card_brand": "VISA"
}, - "installment_plan": {
- "installment": 0,
- "installment_amount": 0.1,
- "first_installment_amount": 0.1,
- "interest_amount": 0.1,
- "total": 0.1,
- "interest_rate": 0.1
}, - "payment_card_amount": 0.1,
- "invoice_amount": 0.1
}, - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}
}
]
}Simulates the reissuance of one or more tickets and returns a pricing estimate.
This endpoint supports both same booking reissuance (same PNR) and new booking reissuance (new PNR), depending on the provider and fare conditions.
The response contains a single offer for both same-booking (same PNR) and new-booking (new PNR) reissuance.
The offer contains the current price, the new price after reissuance, and the balance — representing either the amount due or the credit to the passenger.
This endpoint does not perform the actual reissuance. Use the estimate result to present the cost breakdown to the user before proceeding with POST /exchange.
The estimate has an expiration time returned in expires_at — after that, a new estimate must be requested.
| booking_id required | string The booking identifier containing the tickets to be reissued. |
| ticket_numbers | Array of strings By-tickets mode. List of ticket numbers to simulate reissuance for. |
| search_id | string Same-booking mode. Identifier of the search (from GET /offers) that produced the new slice tokens. |
| new_slice_tokens | Array of strings Same-booking mode. Tokens of the new slices to add to the booking. |
| exchange_slice_tokens | Array of strings Same-booking mode. Tokens of the existing booking slices to exchange (remove). |
{- "booking_id": "string",
- "ticket_numbers": [
- "string"
], - "search_id": "string",
- "new_slice_tokens": [
- "string"
], - "exchange_slice_tokens": [
- "string"
]
}{- "offer": {
- "id": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "validating_carrier": "string",
- "booking_price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "new_price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "balance_price": {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "original_currency": "string",
- "total_original_fare": 0.1,
- "total_fare": 0.1,
- "total_tax": 0.1,
- "total_agent_fee": 0.1,
- "total_consolid_fee": 0.1,
- "total": 0.1,
- "price_per_pax": [
- {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}
], - "capabilities": {
- "view_restrictions": true,
- "reprice": true,
- "reprice_lowest_price": true,
- "edit_consolid_fee": true,
- "edit_agent_fee": true
}, - "booking_price_status": "UNSPECIFIED",
- "warnings": [
- "string"
], - "agency_profit": {
- "amount_commission": 0.1,
- "percent_commission": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "percent_creditcard_fee": 0.1,
- "amount_creditcard_fee": 0.1,
- "total": 0.1
}, - "currency": "string",
- "total_agent_du": 0.1,
- "total_penalty": 0.1,
- "total_extras": 0.1
}, - "price_changed": true,
- "total_tickets_credit_amount": 0.1,
- "journeys": [
- {
- "slices": [
- {
- "id": "string",
- "origin": "string",
- "destination": "string",
- "departure_date": "string",
- "arrival_date": "string",
- "airline": "string",
- "duration": 0,
- "legs": [
- {
- "id": "string",
- "aircraft": "string",
- "destination": "string",
- "arrival_date": "string",
- "arrival_terminal": "string",
- "origin": "string",
- "departure_date": "string",
- "departure_terminal": "string",
- "duration": 0,
- "flight_number": 0,
- "managed_by": "string",
- "number_of_stops": 0,
- "operated_by": "string",
- "fare_info": {
- "fare_class": "string",
- "fare_basis": "string",
- "cabin": "UNSPECIFIED",
- "baggage": "UNSPECIFIED",
- "fare_type": "UNSPECIFIED",
- "fare_family": "string"
}, - "leg_status": "UNSPECIFIED",
- "stops": [
- {
- "location_code": null,
- "arrival_date": null,
- "departure_date": null,
- "duration": null,
- "long_stop": null,
- "arrival_airport": null,
- "departure_airport": null,
- "sequence": null
}
], - "is_codeshare": true,
- "seats": [
- {
- "id": null,
- "number": null,
- "status": null,
- "passenger_id": null,
- "price": null,
- "seat_status": null
}
], - "bags": [
- {
- "id": null,
- "baggage": null,
- "status": null,
- "passenger_id": null,
- "price": null,
- "bag_status": null,
- "ticket_number": null
}
], - "sequence": 0
}
], - "token": "string",
- "has_long_connections": true,
- "has_change_airports": true,
- "has_mixed_cabins": true,
- "has_codeshare": true,
- "balance_token": "string",
- "features": [
- {
- "type": "UNSPECIFIED",
- "attribute": "UNSPECIFIED",
- "penalty_amount": 0.1,
- "penalty_amount_type": "UNSPECIFIED",
- "penalty_currency": "string"
}
]
}
]
}
], - "passengers": [
- {
- "pax_type": "UNSPECIFIED",
- "title": "string",
- "phone_number": "string",
- "first_name": "string",
- "last_name": "string",
- "gender_type": "UNSPECIFIED",
- "email": "string",
- "birth_date": "2019-08-24",
- "middle_name": "string",
- "id": "string",
- "price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "tickets": [
- {
- "number": "string",
- "ticket_type": "UNSPECIFIED",
- "created_at": "2026-03-09T16:07:35Z",
- "conjunctive_number": "string",
- "capabilities": {
- "cancel": true,
- "share": true,
- "refund": true
}
}
], - "associated_infant_id": "string",
- "capabilities": {
- "edit_tsa": true,
- "edit_contact": true,
- "edit_frequent_flyer": true,
- "editable_birthdate": true,
- "mandatory_document": true,
- "edit_passenger_info": true,
- "edit_document": true,
- "mandatory_birthdate": true,
- "mandatory_passenger_info": true
}, - "frequent_flyers": [
- {
- "id": "string",
- "airline": "string",
- "code": "string"
}
], - "nationality": "string",
- "documents": [
- {
- "unique_identifier": "string",
- "type": "UNSPECIFIED",
- "issuing_country_code": "string",
- "created_at": "2019-08-24",
- "expires_at": "2019-08-24"
}
], - "balance_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "old_price": {
- "pax_type": "UNSPECIFIED",
- "quantity": 0,
- "fare": 0.1,
- "tax": 0.1,
- "consolid_fee": 0.1,
- "agent_fee": 0.1,
- "agent_du": 0.1,
- "currency": "string",
- "original_currency": "string",
- "original_fare": 0.1,
- "penalty": 0.1,
- "price_legs": [
- {
- "id": "string",
- "departure_date": "2019-08-24"
}
], - "total": 0.1,
- "active": true,
- "created_at": "2026-03-09T16:07:35Z",
- "expires_at": "2026-03-09T16:07:35Z",
- "extras": 0.1
}, - "ancillaries": [
- {
- "id": "string",
- "created_at": "2026-03-09T16:07:35Z",
- "type": "UNSPECIFIED",
- "ticket_number": "string",
- "passenger_id": "string",
- "slice_id": "string",
- "leg_id": "string",
- "related_ticket_number": "string",
- "price": {
- "original_currency": "string",
- "original_fare": 0.1,
- "fare": 0.1,
- "tax": 0.1,
- "total": 0.1,
- "currency": "string"
}, - "provider_fop": {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "string",
- "approval_code": "string",
- "card_brand": "UNSPECIFIED"
}, - "total": 0.1,
- "fee_amount": 0.1,
- "is_total_fee": true,
- "plan_token": "string"
}, - "baggage": "UNSPECIFIED"
}
], - "passenger_profile_id": "string"
}
]
}
}