Rapid Postman collections
Get access to Postman collections for the Rapid API below.
Rapid Postman collections
The Postman collections contain requests for Rapid.
Requests are grouped in relation to the Swagger material on the site.
- Geography
- Content
- Shop
- Recommendations
- Book
- Manage Booking
The collections have been written to be as self-contained as possible, they encapsulate authentication logic and the check-in/check-out self-update with each request.
Each collection also has some basic tests, which can be used in conjunction with the Postman collection runner feature. Click here for more.
Pre-requisites and system requirements
- An
api_key
andshared_secret
. - An up-to-date version of Postman.
Installation
Import the collections into Postman once you have downloaded them from below.
You will also need to ensure that the api_key
and shared_secret
variables have been set. See their site for more information.
Testing notes
Do not edit or change the “Edit Collection” section.
The variables and code must remain the same to ensure requests work as expected.
Configuration
You will need to setup some environment variables before you can use the collections, see here for more information on how Postman handles variables.
The following parameters can be defined, only two of which are required:
Key | Default | Required | Description |
---|---|---|---|
api_key | N/A | yes | An API key. |
shared_secret | N/A | yes | Your shared secret. |
eanapi_url | https://test.ean.com/ | no | Which host to target, you may wish to override it with "https://api.ean.com" |
property_id | 3609882 | no | The LCM/Expedia property_id to request in Content and Availability calls. |
region_id | 178248 | no | The region to request in Geography-related calls. |
iata_airport_code | ORD | no | The IATA airport code to request in Geography-related calls. |
iata_airport_metro_code | CHI | no | The IATA airport metro code to request in Geography-related calls. |
language | en-US | no | The localised language to request, a subset of the BCP47 format. |
occupancy | 2 | no | The number of people per room to request, format is numberOfAdults[-firstChildAge[,nextChildAge]]- "2-9,3" would represent two adults, a 9 year old, and a 3 year old. |
booking_email | john@example.com | no | The email used in Booking requests. |
hold_itinerary_creation | true | no | Whether the itinerary will be created in a held state. |
billing_terms | N/A | no* | The terms of how a resulting booking should be billed. |
partner_point_of_sale | N/A | no* | What point of sale to be used for Shop and Book. |
payment_terms | N/A | no* | What payment terms should be used when being paid for a resulting booking. |
platform_name | N/A | no* | What platform to use for Shop and Book. |
*Please note that the variables marked as not required with an asterix* are only required for api.ean.com and not test.ean.com.
Please be aware that the following parameters are auto-generated and will be set in your environment:
Key | Global | Description |
---|---|---|
authorizaton | yes | This authorization code is generated from your api_key and shared_secret and used as a request header. |
checkin | yes | The checkin date is auto-generated for Availability requests. It will always be 30 days from the day you make a request. |
checkout | yes | The checkout date is auto-generated for Availability requests. It will always be 32 days from the day you make a request. |
arrival | yes | The arrival time is auto-generated for cross-sell requests. It will always be 30 days from the time you make a request. |
affiliate_reference_id | no | The affiliate_reference_id is used in a Create Booking request and can be used to retrieve subsequent bookings. |
price_check_link | no | The price_check_link is set following an Availability, Cross-Sell, or Recommendation request, if the returned property has that link. It can be used to make a Price Check request. |
payment_options_link | no | The payment_options_link is set following an Availability, Cross-Sell, or Recommendation request, if the returned property has that link. It can be used to make a Payment Options request. |
deposit_policies_link | no | The deposit_policies_link is set following an Availability, Cross-Sell, or Recommendation request, if the returned property has that link. It can be used to make a Deposit Policies request. |
book_link | no | The book_link is set following a Price Check request, if the returned property has that link. It can be used to make a Booking request. |
retrieve_link | no | The retrieve_link is set following a Book request, if the returned itinerary has that link. It can be used to make a Retrieve request. |
resume_link | no | The resume_link is set following a Book request, if the returned itinerary has that link. It can be used to make a Resume request. |
cancel_link | no | The cancel_link is set following a Book request, if the returned itinerary has that link. It can be used to make a Cancel request. |
cancel_room_link | no | The cancel_room_link is set following a Book request, if the returned itinerary has that link. It can be used to make a Cancel Room request. |
change_room_link | no | The change_room_link is set following a Book request, if the returned itinerary has that link. It can be used to make a Change Room request. |
complete_payment_session_link | no | The complete_payment_session_link is set following a Book request, if the returned itinerary has that link. It can be used to make a Complete Payment Session request. |
pagination_link | no | The pagination_link is set following any request made to any paginated endpoint. It can be used to demonstrate how pagination works in the API. |
Recommended configuration
It is recommended that the variables are defined in an environment with only eanapi_url
, api_keyshared_secret
set.
Download template configuration
Rapid Postman collections
Before downloading the below collection(s), please ensure you read the above information.