Tools

API Testing

For the purpose of testing and development, we offer a testing environment on rcp-demo.ext.tripadvisor.com. You can use your partner key to issue test requests to create, list, update, and cancel email requests on rcp-demo.ext.tripadvisor.com. Example create call in rcp-demo:

Email requests created in the testing environment will not be processed and sent.

You can use any of your hotel IDs for hotels included in your TripConnect mapping or Review Express connectivity mapping on rcp-demo.ext.tripadvisor.com. If your TripConnect mapping or Review Express connectivity mapping is not ready, or if none of your hotel partners have opted in yet, you can use the testing environment using the sample location ID @@SCHRUTE_FARMS@@ as your sample mapped location.

Once you have configured your API and successfully created all calls in the test environment, please test the API call on our live site. This will result in the generation of an actual Review Express email.

Your mapping on the live site should include a testing location ID of @@SCHRUTE_FARMS@@. Please make a Create call against this location, using your own internal email address as the destination. For the fastest delivery of a test message, please set the check-out date to be one day before the current date.

Example create call in rcp-demo:

POST
https://rcp-demo.ext.tripadvisor.com/api/partner/1.0/email_requests
BODY
[
  {
    "recipient": "john@example.com",
    "location_id": "h89575",
    "checkout": "2013-12-31",
    "country": "US"
  },
  {
    "partner_request_id": "745C6BFF-F0C7-401F-A691-4407F78DC96C",
    "location_id": "h89575",
    "recipient": "mme.toutlemonde@example.fr",
    "checkin": "2013-11-07",
    "checkout": "2013-11-12",
    "language": "fr",
    "country": "FR"
  }
]