Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
To execute a S7 Agent API operations, you submit an HTTPS request to the QPX S7 Agent API endpoint.
Request
Applications must send an HTTPS POST request.
All requests to S7 Agent API must include the following:
- Version of API (the "X-API-Version" key in headers) – check Environment table for a value below
- Basic authorization string (the "Authorization" key in headers) — credentials that you received from our technical support. Check out Quick Start for how to get it
- Operation name (the "SOAPAction" key in headers) — check Operation table for a value below
- Type of content (the "Content-Type" key in headers) — always "text/xml"
Note |
---|
S7 Agent API doesn't support compressed request and/or response in GZIP format |
S7 agent API required encrypted HTTP requests via HTTPS only. Check out Quick Start for how to get SSL certificate.
For validating your requests that they conform to API's schemas use WSDLs. Links provided in Environment table.
Version of API
You can use other any released versions if your requests conform that syntax.
If you didn't pass Version of API in request it will be execute the default one. But we recommend that you always specify version in all you request to avoid unexpected responses form another versions of API.
Operation names
# | Operation | SOAPAction value (actual for v0.35) |
---|---|---|
1 | agentPayment | "http://api.s7.ru/AgentPayment" |
2 | baggageCharges | "http://api.s7.ru/BaggageCharges" |
3 | book | "http://api.s7.ru/Book" |
4 | cancelBooking | "http://api.s7.ru/CancelBooking" |
5 | changeBook | "http://api.s7.ru/ChangeBook" |
6 | demandTickets | "http://api.s7.ru/DemandTickets" |
7 | findRules | "http://api.s7.ru/FindRules" |
8 | read | "http://api.s7.ru/Read" |
9 | reprice | "http://api.s7.ru/Reprice" |
10 | retrieveTicket | "http://api.s7.ru/RetrieveTicket" |
11 | searchFlights | "http://api.s7.ru/SearchFlights" |
12 | seatMap | "http://api.s7.ru/SeatMap" |
13 | servicePrice | "http://api.s7.ru/ServicePrice" |
14 | voidTicket | "http://api.s7.ru/VoidTicket" |
Response
Identifying requested version of API
Successful results
Unsuccessful results
Common questions
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Table of contents:
Table of Contents |
---|
Environment
Excerpt | ||
---|---|---|
|
Note |
---|