Step 1 - Endpoint
Now that we have the /search/create migrated over, and we have a SessionToken we can now migrate the /search/poll endpoint.
The endpoint for polling flight live prices has changed from /pricing/v1.0/{SessionToken} to /v3/flights/live/search/poll/{SessionToken}.
We will also need to change the http method which has now changed from GET to POST.
info
What are the variables
- {base-url} : https://partners.api.skyscanner.net/apiservices
- {sessionToken} : session token returned from
/search/create
For example:
| v1.0 (before) | v3 (after) |
|---|---|
GET /pricing/v1.0/{SessionToken} | POST /v3/flights/live/search/poll/{SessionToken} |
Collection in postman
You can see examples of the new endpoints with this postman collection: