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 | string (ProviderType) Enum: "" "UNSPECIFIED" "AMADEUS" "FARELOGIX" "SABRE" "AZUL" "GOL" "LATAM" "ELATAM" The airline's system. |
| 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. |
curl -X 'GET' \ 'https://api.dev.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'
{- "flexible_recommendations": true,
- "offers": [
- {
- "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 Specifies flight route as pipe-delimited string: origin|destination|outbound_date[+return_date].
Example: |
curl -X 'GET' \ 'https://api.dev.agent.guru/rs/v1/flights/offers/price?slice_tokens=token_1,token_2' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken'
{- "offer": {
- "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
}
}
}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 | Array of strings An array of selected token identifiers for the booking process. |
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"
}
], - "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,
- "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.dev.agent.guru/rs/v1/flights/bookings/{booking_id}' \ -H 'accept: application/json'
{- "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"
}
], - "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,
- "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.dev.agent.guru/rs/v1/flights/bookings/{booking_id}' \ -H 'accept: application/json'
{- "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"
}
], - "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,
- "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
}
}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 | string |
Array of objects (InputFormOfPayment) |
{- "booking_id": "string",
- "form_of_payments": [
- {
- "passenger_ids": [
- "string"
], - "fop_type": "UNSPECIFIED",
- "payment_card": {
- "holder": "string",
- "number": "string",
- "expire_date": "string",
- "cvv": "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,
- "tickets": [
- "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
|
| locator | string The airline's reference for the booking, also known as a "passenger name record" (PNR) or "record locator". |
curl -X 'GET' \ 'https://api.dev.agent.guru/rs/v1/flights/tickets?start_date=2023-09-01&end_date=2023-09-11' \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken'
{- "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
}
}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.dev.agent.guru/rs/v1/flights/tickets/5774995096800 \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken'
{- "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.dev.agent.guru/rs/v1/flights/tickets/5774995096800 \ -H 'accept: application/json' \ -H 'Authorization: Bearer mytoken'
{- "code": 0,
- "message": "string"
}