{"info":{"_postman_id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","name":"Experience Engine API","description":"<html><head></head><body><h5 id=\"🇬🇧-english\">🇬🇧 ENGLISH</h5>\n<p>The goal of this API is to allow partners to send reservations and customers data (and updates) to the Experience Hotel system and to retrieve changes from experience hotel.<br>In order to access the API, you will need a client-token and one or more hotel-token</p>\n<p>The Experience CRM relies on being synchronized with the hotel PMS. We send communications to guests before their arrival, during their stay, and after. Thus, it is essential that we are kept up to date with cancellations, new reservations and modifications.<br>The optimal scenario is to be updated after each change, whether it is a booking change, or a customer property change(like a new last name, or new phone number for example).</p>\n<p>To summarize, what is expected on this API is</p>\n<ol>\n<li>Complete booking data after each of these booking events : Creation, Modification, Change of status(valid/option/cancelled)</li>\n<li>Complete customer information after each customer data change.</li>\n</ol>\n<h2 id=\"authorization\"><strong>Authorization</strong></h2>\n<p>The Bearer Token is composed of:</p>\n<ul>\n<li>Your partner token (provided by Experience).</li>\n<li>The hotel token (provided by Experience).</li>\n</ul>\n<p>Your <strong>partner token</strong> will be the same regardless of the hotel involved with your call. The <strong>hotel token</strong> will be different for each hotel.</p>\n<p>Format: <code>partner_token:hotel_token</code></p>\n<hr>\n<h5 id=\"🇫🇷-français\">🇫🇷 FRANÇAIS</h5>\n<p>L'objectif de cette API est de permettre aux partenaires d'envoyer des données sur les réservations et les clients (et des mises à jour) au système Experience Hotel et de récupérer les modifications depuis Experience Hotel.<br>Afin d'accéder à l'API, vous aurez besoin d'un client-token et d'un ou plusieurs hotel-token.</p>\n<p>Le CRM d'Experience repose sur la synchronisation avec le PMS de l'hôtel. Nous envoyons des communications aux clients avant leur arrivée, pendant leur séjour et après. Il est donc essentiel que nous soyons tenus au courant des annulations, des nouvelles réservations et des modifications.</p>\n<p>Le scénario optimal est d'être mis à jour après chaque modification, qu'il s'agisse d'un changement de réservation ou d'un changement d'information du client (comme un nouveau nom de famille ou un nouveau numéro de téléphone par exemple).</p>\n<p>En résumé, ce que l'on attend sur cette API :</p>\n<ol>\n<li>Des données de réservation complètes après chacun de ces événements de réservation : Création, modification, changement de statut (valide/option/annulé).</li>\n<li>Des informations complètes sur le client après chaque modification des données du client.</li>\n</ol>\n<h2 id=\"autorisation\">Autorisation</h2>\n<p>Le Bearer Token est composé de :</p>\n<ul>\n<li>Votre token partenaire (fourni par Experience).</li>\n<li>Le token de l'hôtel (fourni par Experience).</li>\n</ul>\n<p>Votre token partenaire sera le même quel que soit l'hôtel concerné par votre appel. Le token de l'hôtel sera différent pour chaque hôtel.</p>\n<p>Format : <code>partner_token:hotel_token</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"19613984","collectionId":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","publishedId":"UVkjwdSE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0E91A5"},"publishDate":"2023-09-26T09:53:07.000Z"},"item":[{"name":"Create and update bookings","id":"c5ef574d-75e8-4e60-9126-0a5eab6892db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"bookings\" : [\r\n\t\t{\r\n\t\t\t\"reference\": \"test\",\r\n\t\t\t\"status\": \"valid\",\r\n\t\t\t\"creation\": \"2021-06-01 15:22:00\",\r\n\t\t\t\"arrival\": \"2021-09-17\",\r\n\t\t\t\"departure\": \"2021-09-20\",\r\n            \"arrival_time\": \"14:50:00\",\r\n\t\t\t\"ratecode\": \"PAKG\",\r\n\t\t\t\"sourcecode\": \"XP API\",\r\n\t\t\t\"segmentcode\": \"OTA\",\r\n            \"adult_count\": \"2\",\r\n            \"extra_attributes\": {\r\n                \"Payment\":\"pending\",\r\n                \"linkId\":\"126\",\r\n                \"xp-company\":\"Air France\"\r\n            },\r\n\t\t\t\"rooms\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"type\": \"DBL\",\r\n\t\t\t\t\t\"name\": \"Double\",\r\n\t\t\t\t\t\"number\": 16\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"totalamount\": \"460\",\r\n\t\t\t\"currency\": \"EUR\",\r\n\t\t\t\"customer\": {\r\n\t\t\t\t\"reference\": \"12456789\",\r\n\t\t\t\t\"title\": \"Mr\",\r\n\t\t\t\t\"firstname\": \"John\",\r\n\t\t\t\t\"lastname\": \"Doe\",\r\n                \"email\": \"testemail@test.com\",\r\n\t\t\t\t\"phone\": \"+336464848\",\r\n\t\t\t\t\"birthdate\": \"1972-08-27\",\r\n\t\t\t\t\"country\": \"AU\",\r\n\t\t\t\t\"language\": \"en\",\r\n                \"address_street_number_and_name\": \"122 Grand Street\",\r\n                \"address_postal_code\":\"75001\",\r\n                \"address_state\":\"Ile de France\",\r\n                \"address_city\": \"Paris\",\r\n                \"nationality\":\"FR\",\r\n                \"identity_document_number\":\"1234567890\",\r\n                \"extra_attributes\": {\r\n                    \"vip\":\"1\"\r\n                }\r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://interface.experience-hotel.com/api/xp-store-bookings/bookings","description":"<h2 id=\"booking-update\">Booking update</h2>\n<p>In the case of a booking update, it is essential to return ALL the attributes of the booking &amp; customer objects. If some attributes are not included in an update <strong>they will be set to NULL or deleted.</strong></p>\n<h2 id=\"fields\">Fields</h2>\n<p>*Mandatory fields</p>\n<h3 id=\"booking\">Booking</h3>\n<table><tbody><tr><th>Field</th><th>Type</th><th>Description</th></tr><tr><th>reference\\\\\\\\\\*</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Unique reference of the booking</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>status\\\\\\\\\\*</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Status of the booking. valid, option, cancelled</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>creation</th><td><div>string ($ISO 8601)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Date the booking was created (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>arrival\\\\\\\\\\*</th><td><div>string ($ISO 8601)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Date the client will arrive at the hotel</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>departure\\\\\\\\\\*</th><td><div>string ($ISO 8601)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Date the client will leave the hotel</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>arrival_time</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Format H:i:s<br />(Hour:Minutes:Secondes<br />\"14:50:00\")</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>ratecode</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>ratecode of the booking (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>sourcecode</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>source of the booking (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>segmentcode</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>code used for the segmentation of the booking (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>totalamount</th><td><div>number ($float)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Price of the booking including taxe (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>currency</th><td><div>string ($ISO 4217)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>currency use for the price (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>arrival_time</th><td><div>string ($time hh:mm:ss)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Arriving time of the client (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>adult_count</th><td><div>number</div><div><div><div><div></div></div></div><div></div></div></td><td><div>number of adult (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>child_count</th><td><div>number</div><div><div><div><div></div></div></div><div></div></div></td><td><div>number of children (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>infant_count</th><td><div>number</div><div><div><div><div></div></div></div><div></div></div></td><td><div>number of infant (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>extra_attributes</th><td><div>Object</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Array of key/value to be associated to the booking (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>xp-company</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Company of the guest. <b>This field must be inside extra_attributes</b></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>rooms</th><td><div>array</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Rooms associated with the booking (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>customer</th><td><div>Object</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Customer associated with the booking</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h3 id=\"room\">ROOM</h3>\n<table><tbody><tr><th>Field</th><th>Type</th><th>Description</th></tr><tr><th>number</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Unique number of the room (can be empty)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>name</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Category name for the room, can be unique or not (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>type</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Category code of the room, can be unique or not (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h3 id=\"customer\">customer</h3>\n<table><tbody><tr><th>Field</th><th>Type</th><th>Description</th></tr><tr><th>reference\\\\\\\\\\*</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Unique identifier of the customer</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>title</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Title or civility of the customer (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>firstname</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Firstname of the customer (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>lastname</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Lastname of the customer (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>email</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Email of the customer. (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>phone</th><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Phone number (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>birthdate</th><td><div>string ($ISO 8601)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Birthdate of the customer (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>country</th><td><div>string ($ISO 3166-1 alpha-2)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Country of the customer (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>language</th><td><div>string ($ISO 639-1)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Language of the customer. If not present, the language can be deduce from the country (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>address_street_number_and_name</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Customer's address street and number</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>address_postal_code</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Customer's address postal code (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>address_state</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Customer's address state (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>address_city</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Customer's address city (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>nationality</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string ($ISO 3166-1 alpha-2)</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Nationality of the customer (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>identity_document_number</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Number of the identity document (ID, passport)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><th>extra_attributes</th><td><div>Object</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Array of key/value to be associated to the customer (optional)</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"lkjfqmnfqznefqeqrezohrqeihroirqzhoobysoysggto:6546rgd46d81f6s688s1f68168f1f6s81fse68"}]},"isInherited":true,"source":{"_postman_id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","name":"Experience Engine API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","xp-store-bookings","bookings"],"host":["interface","experience-hotel","com"],"query":[],"variable":[]}},"response":[{"id":"13afc285-99e1-4073-8df0-22bf19c60834","name":"Create and update bookings","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"bookings\" : [\r\n\t\t{\r\n\t\t\t\"reference\": \"test\",\r\n\t\t\t\"status\": \"valid\",\r\n\t\t\t\"creation\": \"2021-06-01 15:22:00\",\r\n\t\t\t\"arrival\": \"2021-09-17\",\r\n\t\t\t\"departure\": \"2021-09-20\",\r\n            \"arrival_time\": \"14:50:00\",\r\n\t\t\t\"ratecode\": \"PAKG\",\r\n\t\t\t\"sourcecode\": \"XP API\",\r\n\t\t\t\"segmentcode\": \"OTA\",\r\n            \"adult_count\": \"2\",\r\n            \"extra_attributes\": {\r\n                \"Payment\":\"pending\",\r\n                \"linkId\":\"126\",\r\n                \"xp-company\":\"Air France\"\r\n            },\r\n\t\t\t\"rooms\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"type\": \"DBL\",\r\n\t\t\t\t\t\"name\": \"Double\",\r\n\t\t\t\t\t\"number\": 16\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"totalamount\": \"460\",\r\n\t\t\t\"currency\": \"EUR\",\r\n\t\t\t\"customer\": {\r\n\t\t\t\t\"reference\": \"12456789\",\r\n\t\t\t\t\"title\": \"Mr\",\r\n\t\t\t\t\"firstname\": \"John\",\r\n\t\t\t\t\"lastname\": \"Doe\",\r\n                \"email\": \"testemail@test.com\",\r\n\t\t\t\t\"phone\": \"+336464848\",\r\n\t\t\t\t\"birthdate\": \"1972-08-27\",\r\n\t\t\t\t\"country\": \"AU\",\r\n\t\t\t\t\"language\": \"en\",\r\n                \"address_street_number_and_name\": \"122 Grand Street\",\r\n                \"address_postal_code\":\"75001\",\r\n                \"address_state\":\"Ile de France\",\r\n                \"address_city\": \"Paris\",\r\n                \"nationality\":\"FR\",\r\n                \"identity_document_number\":\"1234567890\",\r\n                \"extra_attributes\": {\r\n                    \"vip\":\"1\"\r\n                }\r\n                \r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://interface.experience-hotel.com/api/xp-store-bookings/bookings"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Fri, 15 Oct 2021 13:36:48 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"6000"},{"key":"X-RateLimit-Remaining","value":"5997"},{"key":"Vary","value":"Authorization,Accept-Encoding"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=fdAG7uKe0PvK0nukPIXx9ECK6tx5t275tddaTn10crXPG3XZ1QnHkyUZWym3QaUpZWsGKCXCtj6S3vnbHIisfaos%2FaYmhGwLXrttHCBE%2BSvPsblgSy%2Frf%2BpNdPJcppicYttq0V1Z98Jt%2BzoeYGqOruHX\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"69e970382b743ad7-CDG"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"1 bookings updated"}],"_postman_id":"c5ef574d-75e8-4e60-9126-0a5eab6892db"},{"name":"Update existing customers","id":"a6a26a49-3bb6-458d-afe7-96b57135913b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"customers\": [\r\n\t\t{\r\n\t\t\t\"reference\": \"123456\",\r\n\t\t\t\"title\": \"Mr\",\r\n\t\t\t\"firstname\": \"John\",\r\n\t\t\t\"lastname\": \"Doe\",\r\n\t\t\t\"email\": \"testemail@test.com\",\r\n\t\t\t\"phone\": \"+336464848\",\r\n\t\t\t\"birthdate\": \"1982-04-23\",\r\n\t\t\t\"country\": \"FR\",\r\n\t\t\t\"language\": \"EN\",\r\n            \"address_street_number_and_name\": \"122 Grand Street\",\r\n            \"address_postal_code\":\"75001\",\r\n            \"address_state\":\"Ile de France\",\r\n            \"address_city\": \"Paris\",\r\n            \"nationality\":\"FR\",\r\n            \"identity_document_number\":\"1234567890\",\r\n            \"extra_attributes\": {\r\n                \"vip\":\"1\"\r\n            }\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://interface.experience-hotel.com/api/xp-store-bookings/customers","description":"<h2 id=\"fields\">Fields</h2>\n<p>*Mandatory fields</p>\n<h3 id=\"customer\">customer</h3>\n<table><tbody><tr><th>Field</th><th>Type</th><th>Description</th></tr><tr><th>reference\\\\*</th><td>string</td><td>Unique identifier of the customer</td></tr><tr><th>title</th><td>string</td><td>Title or civility of the customer (optional)</td></tr><tr><th>firstname</th><td>string</td><td>Firstname of the customer (optional)</td></tr><tr><th>lastname</th><td>string</td><td>Lastname of the customer (optional)</td></tr><tr><th>email</th><td>string</td><td>Email of the customer. (optional)</td></tr><tr><th>phone</th><td>string</td><td>Phone number (optional)</td></tr><tr><th>birthdate</th><td>string ($ISO 8601)</td><td>Birthdate of the customer (optional)</td></tr><tr><th>country</th><td>string ($ISO 3166-1 alpha-2)</td><td>Country of the customer (optional)</td></tr><tr><th>language</th><td>string ($ISO 639-1)</td><td>Language of the customer. If not present, the language can be deduce from the country (optional)</td></tr><tr><td>address_street_number_and_name</td><td>string</td><td>Customer's address street and number (optional)</td></tr><tr><td>address_postal_code</td><td>string</td><td>Customer's address postal code (optional)</td></tr><tr><td>address_state</td><td>string</td><td>Customer's address state (optional)</td></tr><tr><td>address_city</td><td>string</td><td>Customer's address city (optional)</td></tr><tr><td>nationality</td><td>string ($ISO 3166-1 alpha-2)</td><td>Nationality of the customer (optional)</td></tr><tr><td>identity_document_number</td><td>string</td><td>Number of the identity document (ID, passport)</td></tr><tr><th>extra_attributes</th><td>Object</td><td>Array of key/value to be associated to the customer (optional)</td></tr></tbody></table>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"lkjfqmnfqznefqeqrezohrqeihroirqzhoobysoysggto:6546rgd46d81f6s688s1f68168f1f6s81fse68"}]},"isInherited":true,"source":{"_postman_id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","name":"Experience Engine API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","xp-store-bookings","customers"],"host":["interface","experience-hotel","com"],"query":[],"variable":[]}},"response":[{"id":"cd35f12d-bcd2-402d-ba95-a5b3720f3b95","name":"customers","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"customers\": [\r\n\t\t{\r\n\t\t\t\"reference\": \"123456\",\r\n\t\t\t\"title\": \"Mr\",\r\n\t\t\t\"firstname\": \"John\",\r\n\t\t\t\"lastname\": \"Doe\",\r\n\t\t\t\"email\": \"testemail@test.com\",\r\n\t\t\t\"phone\": \"+336464848\",\r\n\t\t\t\"birthdate\": \"1982-04-23\",\r\n\t\t\t\"country\": \"FR\",\r\n\t\t\t\"language\": \"EN\",\r\n            \"address_street_number_and_name\": \"122 Grand Street\",\r\n            \"address_postal_code\":\"75001\",\r\n            \"address_state\":\"Ile de France\",\r\n            \"address_city\": \"Paris\",\r\n            \"nationality\":\"FR\",\r\n            \"identity_document_number\":\"1234567890\",\r\n            \"extra_attributes\": {\r\n                \"vip\":\"1\"\r\n            }\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://interface.experience-hotel.com/api/xp-store-bookings/customers"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Thu, 16 Sep 2021 23:06:09 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"6000"},{"key":"X-RateLimit-Remaining","value":"5998"},{"key":"Vary","value":"Authorization,Accept-Encoding"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0L6c7Jw%2BkrdIzqNm%2FLQTlTvjuVjZ%2FHCFfR8oatyuEIFgMlG%2FQWnLiIfKDlFlEjbqtxleISQo%2BUV%2ByHVIJExT4PblanhBddnR8L0dh3scUeJ0YFOC%2FAV16qKZScdXOU48aQ%2BTLng8E4IN4UJf%2FcDhpqQe\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"68fdbe5e2a4541e2-AMS"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"1 customers updated"}],"_postman_id":"a6a26a49-3bb6-458d-afe7-96b57135913b"},{"name":"2 way - events list","id":"b02b2fb0-ed8c-4595-b336-b17bf301454c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://interface.experience-hotel.com/api/xp-store-bookings/events/list/2022-03-29/2022-03-30","description":"<p>Experience CRM will get update on customers information based on their interactions. These 2 way methods allow you to be updated as soon as the event occurs.</p>\n<p>Return the list of booking event which contain the booking and customer changes from different events of Experience Hotel.<br />The two parameters in the url are the start-date and end-date.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"lkjfqmnfqznefqeqrezohrqeihroirqzhoobysoysggto:6546rgd46d81f6s688s1f68168f1f6s81fse68"}]},"isInherited":true,"source":{"_postman_id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","name":"Experience Engine API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","xp-store-bookings","events","list","2022-03-29","2022-03-30"],"host":["interface","experience-hotel","com"],"query":[],"variable":[]}},"response":[{"id":"0b688eb0-a613-4da3-8964-2534a8690ac2","name":"2 way - events list","originalRequest":{"method":"GET","header":[],"url":"https://interface.experience-hotel.com/api/xp-store-bookings/events/list/2022-03-29/2022-03-30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Feb 2022 10:07:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"6000"},{"key":"X-RateLimit-Remaining","value":"5999"},{"key":"Vary","value":"Authorization"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=bsNek7RgDpDqiKP4MbJPaoB7fC57UZcgskub8TbLdZgpQS%2F0%2BYWNpj4lExjzjuW2QTh%2BFtHuYkB1pAQ8ewIlUcT3QDZ%2BpWKYX%2BvDmGKkyz5ktMzCVAQz7bf0V0CV0FWLK0IpMAzmxo3eE6mFb%2F27o%2BCe\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6e06ee0e6812e0ee-IAD"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": {\n        \"event_ids\": [\n            2068416,\n            2760370,\n            2760372,\n            2760408,\n            2760447,\n            2760514,\n            2760526,\n            2760548,\n            2761263,\n            2761265,\n            2761280,\n            2761287,\n            2761318,\n            2761321\n        ],\n        \"server_timestamp\": 1645351667\n    }\n}"}],"_postman_id":"b02b2fb0-ed8c-4595-b336-b17bf301454c"},{"name":"2 way - events After ID","id":"538dce25-c762-4b7c-8669-0831f24e1d3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://interface.experience-hotel.com/api/xp-store-bookings/events/list-after-event-id/123456","description":"<p>Return the list of booking event that occured after a given ID. This way you can use the last ID retrieved.</p>\n<p>Parameter : event ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"lkjfqmnfqznefqeqrezohrqeihroirqzhoobysoysggto:6546rgd46d81f6s688s1f68168f1f6s81fse68"}]},"isInherited":true,"source":{"_postman_id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","name":"Experience Engine API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","xp-store-bookings","events","list-after-event-id","123456"],"host":["interface","experience-hotel","com"],"query":[],"variable":[]}},"response":[{"id":"ee2d6f7e-fbb2-476d-afe7-a8cee6fe747e","name":"2 way - events list","originalRequest":{"method":"GET","header":[],"url":"https://interface.experience-hotel.com/api/xp-store-bookings/events/list/2022-03-29/2022-03-30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Feb 2022 10:07:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"6000"},{"key":"X-RateLimit-Remaining","value":"5999"},{"key":"Vary","value":"Authorization"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=bsNek7RgDpDqiKP4MbJPaoB7fC57UZcgskub8TbLdZgpQS%2F0%2BYWNpj4lExjzjuW2QTh%2BFtHuYkB1pAQ8ewIlUcT3QDZ%2BpWKYX%2BvDmGKkyz5ktMzCVAQz7bf0V0CV0FWLK0IpMAzmxo3eE6mFb%2F27o%2BCe\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6e06ee0e6812e0ee-IAD"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": {\n        \"event_ids\": [\n            2068416,\n            2760370,\n            2760372,\n            2760408,\n            2760447,\n            2760514,\n            2760526,\n            2760548,\n            2761263,\n            2761265,\n            2761280,\n            2761287,\n            2761318,\n            2761321\n        ],\n        \"server_timestamp\": 1645351667\n    }\n}"}],"_postman_id":"538dce25-c762-4b7c-8669-0831f24e1d3a"},{"name":"2 way - event details","id":"61c8c179-53f5-4acf-82a7-8fc1b0b839a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://interface.experience-hotel.com/api/xp-store-bookings/events/details?event_ids[]=2068416&event_ids[]=2761321","description":"<p>Return the customers changes details.</p>\n<p>Event type availble :</p>\n<ul>\n<li>welcome_completed</li>\n<li>prestay_reported</li>\n<li>midstay_completed</li>\n<li>poststay_reported</li>\n<li>customer_updated</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"lkjfqmnfqznefqeqrezohrqeihroirqzhoobysoysggto:6546rgd46d81f6s688s1f68168f1f6s81fse68"}]},"isInherited":true,"source":{"_postman_id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","id":"86fe6f6a-370f-4e44-adbf-99fe36e0b4af","name":"Experience Engine API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","xp-store-bookings","events","details"],"host":["interface","experience-hotel","com"],"query":[{"key":"event_ids[]","value":"2068416"},{"key":"event_ids[]","value":"2761321"}],"variable":[]}},"response":[{"id":"dee05d2c-15f4-4902-bf6e-09eccd798f06","name":"2 way - event details","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://interface.experience-hotel.com/api/xp-store-bookings/events/details?event_ids[]=2068416&event_ids[]=2761321","protocol":"https","host":["interface","experience-hotel","com"],"path":["api","xp-store-bookings","events","details"],"query":[{"key":"event_ids[]","value":"2068416"},{"key":"event_ids[]","value":"2761321"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Feb 2022 10:40:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"6000"},{"key":"X-RateLimit-Remaining","value":"5999"},{"key":"Vary","value":"Authorization"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=rV8kHxMxYWYjp7FCyA14tMUIh78xCIV864rzLNaNl%2Bt9sIRNQVwWsLgS95pIh4wVz8OcnkunAdJwhqgpEep0br66jPtlPsgTvRJgluEw9arpHxvGgVhAoEZUcQBkF7Fbx6J5lwibfMUhqePYuAcPrXN1\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6e071e129b987003-IAD"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": {\n        \"events\": [\n            {\n                \"event_id\": 2068416,\n                \"event_type\": \"poststay_reported\",\n                \"customer_reference\": \"\",\n                \"booking_reference\": \"48\",\n                \"poststay_response\": [\n                    {\n                        \"group_id\": 3605,\n                        \"group_name\": \"Note générale\",\n                        \"question_id\": 10974,\n                        \"question_name\": \"general\",\n                        \"rating\": 5,\n                        \"rating_min\": 1,\n                        \"rating_max\": 5,\n                        \"text_pro\": null,\n                        \"text_con\": null\n                    },\n                    {\n                        \"group_id\": 3601,\n                        \"group_name\": \" Chambre et services\",\n                        \"question_id\": 10963,\n                        \"question_name\": \"roomquality\",\n                        \"rating\": 5,\n                        \"rating_min\": 1,\n                        \"rating_max\": 5,\n                        \"text_pro\": \"J'ai apprécié le matelas\",\n                        \"text_con\": \"La moquette laisse à désirer\"\n                    },\n                    {\n                        \"group_id\": 3602,\n                        \"group_name\": \" L'hôtel\",\n                        \"question_id\": 10965,\n                        \"question_name\": \"location\",\n                        \"rating\": 1,\n                        \"rating_min\": 1,\n                        \"rating_max\": 5,\n                        \"text_pro\": \"commentaire très positif\",\n                        \"text_con\": \"commentaire très négatif\"\n                    }\n                ]\n            },\n            {\n                \"event_id\": 2761321,\n                \"event_type\": \"customer_updated\",\n                \"customer_reference\": \"3232\",\n                \"booking_reference\": \"5540\",\n                \"lastname\": \"Muller\",\n                \"email\": \"demo@emailtest.com\",\n                \"mobile_phone\": \"+33610112233\",\n                \"country\": \"FR\",\n                \"language\": \"fr\"\n            },\n            {\n                \"event_id\": 2111827,\n                \"event_type\": \"midstay_completed\",\n                \"customer_reference\": \"040872\",\n                \"booking_reference\": \"055007\"\n            },\n            {\n                \"event_id\": 2111553,\n                \"event_type\": \"prestay_reported\",\n                \"customer_reference\": \"040652\",\n                \"booking_reference\": \"054582\",\n                \"title\": \"Mr\",\n                \"firstname\": \"John\",\n                \"lastname\": \"Van Doe\"\n            },\n            {\n                \"event_id\": 2565899,\n                \"event_type\": \"welcome_completed\",\n                \"customer_reference\": \"061880\",\n                \"booking_reference\": \"074545\",\n                \"title\": \"Mme\",\n                \"firstname\": \"xxxx\",\n                \"lastname\": \"xxxx\",\n                \"email\": \"xxxx\",\n                \"phone\": \"xxxx\",\n                \"mobile_phone\": \"xxxx\",\n                \"birthdate\": \"xxxx-xx-xx\",\n                \"nationality\": \"FR\"\n            }\n\n        ],\n        \"server_timestamp\": 1645353634\n    }\n}"}],"_postman_id":"61c8c179-53f5-4acf-82a7-8fc1b0b839a5"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"lkjfqmnfqznefqeqrezohrqeihroirqzhoobysoysggto:6546rgd46d81f6s688s1f68168f1f6s81fse68"}]}},"event":[{"listen":"prerequest","script":{"id":"47b58d77-593c-4a8b-bb6e-8b7d272dccdf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a306ead9-65ea-41a3-9378-1842f2159186","type":"text/javascript","exec":[""]}}],"variable":[{"key":"hotel-token","value":"6546rgd46d81f6s688s1f68168f1f6s81fse68"},{"key":"partner-token","value":"lkjfqmnfqznefqeqrezohrqeihroirqzhoobysoysggto","type":"string"}]}