{ "uuid": "5e45dbe7-6438-4de7-b81b-f6a0c700b551", "lastMigration": 29, "name": "hetras Booking API Version 0", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "96d8ceda-898e-4e64-a8b4-f53dfd53f98c", "documentation": "Get a list of offers for addon services for the specified guest stay details.", "method": "get", "endpoint": "api/booking/v0/addons", "responses": [ { "uuid": "036fd374-313b-471f-9526-4aa93f89255f", "body": "{\n \"addon_services\": [\n {\n \"breakdown\": [\n {\n \"business_day\": \"{{faker 'date.recent' 365}}\",\n \"currency\": \"\",\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"code\": \"\",\n \"description\": \"\",\n \"frequency\": \"\",\n \"name\": \"\",\n \"rate_mode\": \"{{oneOf (array 'PerRoom' 'PerPerson')}}\",\n \"total_stay\": {\n \"currency\": \"\",\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n }\n ],\n \"adults\": {{faker 'number.int' max=99999}},\n \"arrival_date\": \"{{faker 'date.recent' 365}}\",\n \"departure_date\": \"{{faker 'date.recent' 365}}\",\n \"hotel_id\": {{faker 'number.int' max=99999}},\n \"hotel_name\": \"\",\n \"rate_plan\": {\n \"code\": \"\",\n \"description\": \"\",\n \"name\": \"\"\n },\n \"room\": {\n \"description\": \"\",\n \"name\": \"\",\n \"room_number\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n },\n \"rooms\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "All addon offers for the requested stay details.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3eabe1fa-ebd1-46cf-8e82-bc0233ac0d40", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3cd0a450-5c97-4c11-8666-4532bd16f70c", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8872bcf1-7719-447c-b11a-12000cf652c7", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e19f2cec-73ef-473f-ba25-2b287480c6d2", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate. Either a mandatory parameter was missing or no offers for \r\n the requested stay details", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "518c2791-940e-4936-ab80-83deb97ca73c", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c9384d9a-4cd4-4136-9d3c-1fa7356f5ff2", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2e44c4c9-76d5-4272-a7a0-b3bcb36be8fd", "documentation": "Gets the availability and occupancy for a specific hotel and timespan.", "method": "get", "endpoint": "api/booking/v0/availability", "responses": [ { "uuid": "c2a31dda-83cd-4fef-8b3d-7ad624b7b2b4", "body": "{\n \"_count\": {{faker 'number.int' max=99999}},\n \"_links\": {},\n \"daily_availabilities\": [\n {\n \"business_day\": \"{{faker 'date.recent' 365}}\",\n \"house_level\": {\n \"_links\": {},\n \"available\": {{faker 'number.int' max=99999}},\n \"blocked\": {\n \"definite\": {{faker 'number.int' max=99999}},\n \"remaining\": {{faker 'number.int' max=99999}},\n \"tentative\": {{faker 'number.int' max=99999}}\n },\n \"day_use\": {{faker 'number.int' max=99999}},\n \"house_count\": {{faker 'number.int' max=99999}},\n \"maintenance\": {\n \"out_of_inventory\": {{faker 'number.int' max=99999}},\n \"out_of_order\": {{faker 'number.int' max=99999}},\n \"out_of_service\": {{faker 'number.int' max=99999}}\n },\n \"overbooking\": {{faker 'number.int' max=99999}},\n \"room_count\": {{faker 'number.int' max=99999}},\n \"sold\": {{faker 'number.int' max=99999}},\n \"to_sell\": {{faker 'number.int' max=99999}}\n },\n \"room_types\": [\n {\n \"_links\": {},\n \"available\": {{faker 'number.int' max=99999}},\n \"blocked\": {\n \"definite\": {{faker 'number.int' max=99999}},\n \"remaining\": {{faker 'number.int' max=99999}},\n \"tentative\": {{faker 'number.int' max=99999}}\n },\n \"code\": \"\",\n \"day_use\": {{faker 'number.int' max=99999}},\n \"default\": {{faker 'datatype.boolean'}},\n \"house_count\": {{faker 'number.int' max=99999}},\n \"maintenance\": {\n \"out_of_inventory\": {{faker 'number.int' max=99999}},\n \"out_of_order\": {{faker 'number.int' max=99999}},\n \"out_of_service\": {{faker 'number.int' max=99999}}\n },\n \"overbooking\": {{faker 'number.int' max=99999}},\n \"room_count\": {{faker 'number.int' max=99999}},\n \"sold\": {{faker 'number.int' max=99999}},\n \"to_sell\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n ],\n \"hotel\": {\n \"code\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Returns a list of availabilities per business day.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f79ea3c6-2e3a-44e5-890d-3eb50d6beb34", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request. Request parameters syntactically erroneous.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "100babb7-dfbc-44d7-804f-5e1852f995d7", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9b68599f-b066-4928-85bf-876568da523b", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "96da3df3-b00a-4261-853c-bb4ad78b9441", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6362a1d9-5b06-46c2-bc16-48660b189476", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "65a48c95-24ca-4342-a7cc-c42ec866c86f", "documentation": "Gets a list of blocks.", "method": "get", "endpoint": "api/booking/v0/blocks", "responses": [ { "uuid": "f6ec23a4-5469-4564-b212-717427f63fbf", "body": "{}", "latency": 0, "statusCode": 200, "label": "Returns a list of blocks matching the provided filter criteria.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "cc0cfd07-0ce6-49c4-8fa4-02e6e909b1f9", "body": "", "latency": 0, "statusCode": 204, "label": "There are no blocks matching your filter criteria.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "50b05b13-2543-4448-b159-af6630d06277", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request. Request parameters syntactically erroneous.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "38262826-302d-47b5-a724-b1169e107c2b", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d3b5b5c0-0155-4f8d-a506-8752ff452ea1", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "255e552c-f5c4-4ed9-bf37-e1dac2ba8570", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f63705cf-3cde-4d8a-a3cf-6aeda7605f7e", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "cce05492-f50f-4cce-80d8-5dfcddf647df", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "28155db6-48fa-4fac-b80c-5c70e3b7c5ca", "documentation": "Get total blocks count that match the given filter criteria.", "method": "get", "endpoint": "api/booking/v0/blocks/$count", "responses": [ { "uuid": "878cecbe-208b-4237-af4e-990910c4c141", "body": "{\n \"_count\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "The total blocks count for a given filter criteria.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "394280a4-2885-484e-860b-65cb86b584d3", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5c9694f6-2bbc-41eb-a5de-ff95583acf98", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "94195d13-a3aa-40c0-b75c-cc5224c404fb", "body": "", "latency": 0, "statusCode": 500, "label": "We couldn't return the representation due to an internal server error.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d64e0506-2c09-462b-b962-7b401ce0f419", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e65f9c34-d5cb-45c4-a2b7-ccba8c90e85e", "documentation": "Gets the details for a specific block.", "method": "get", "endpoint": "api/booking/v0/blocks/:blockCode", "responses": [ { "uuid": "a3bbe00b-81a4-4ca7-9371-83d7743912c0", "body": "{}", "latency": 0, "statusCode": 200, "label": "Returns you all details for the specific block.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "6168fc82-8072-4b8e-a689-9d4d672212d5", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request. Request parameters syntactically erroneous.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "303aa73c-106b-436c-9bd3-b7c94fc2f227", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a03f169f-7939-4325-bc2a-2c9ff4146984", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b57b6fb6-7417-418f-a738-608510ffac0d", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6c82c92e-d779-4202-b42e-0f18c51ca298", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e90a4e80-793b-4512-9caa-948c716f393a", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "79c69f35-7b38-46fe-8bae-76aeccb04ebd", "documentation": "Find bookings matching the given filter criteria.", "method": "get", "endpoint": "api/booking/v0/bookings", "responses": [ { "uuid": "d1f8c196-f5d6-4c40-b382-6b11b055f0d5", "body": "{\n \"_count\": {{faker 'number.int' max=99999}},\n \"_links\": {},\n \"bookings\": [\n {\n \"_links\": {},\n \"confirmation_id\": \"\",\n \"created\": \"{{faker 'date.recent' 365}}\",\n \"reservations\": [\n {\n \"_links\": {},\n \"adults\": {{faker 'number.int' max=99999}},\n \"arrival_date\": \"{{faker 'date.recent' 365}}\",\n \"balance\": {{faker 'number.float'}},\n \"block_code\": \"\",\n \"cancellation_id\": \"\",\n \"channel_code\": \"\",\n \"companies\": {\n \"company\": {\n \"company_id\": \"\"\n },\n \"travel_agent\": {\n \"company_id\": \"\"\n }\n },\n \"created\": \"{{faker 'date.recent' 365}}\",\n \"customers\": {\n \"contact\": {\n \"_links\": {},\n \"customer_id\": \"\",\n \"email\": \"\",\n \"first_name\": \"\",\n \"gender\": \"{{oneOf (array 'Unspecified' 'Male' 'Female')}}\",\n \"last_name\": \"\",\n \"mailing_address\": {\n \"address\": \"\",\n \"address_type\": \"{{oneOf (array 'Home' 'Business' 'Billing' 'Other')}}\",\n \"city\": \"\",\n \"country\": \"\",\n \"postal_code\": \"\"\n },\n \"nationality\": \"\",\n \"phone\": \"\",\n \"primary\": {{faker 'datatype.boolean'}},\n \"subscribed_consents\": [\n \"\"\n ],\n \"title\": \"\"\n },\n \"guests\": [\n {\n \"_links\": {},\n \"customer_id\": \"\",\n \"email\": \"\",\n \"first_name\": \"\",\n \"gender\": \"{{oneOf (array 'Unspecified' 'Male' 'Female')}}\",\n \"last_name\": \"\",\n \"mailing_address\": {\n \"address\": \"\",\n \"address_type\": \"{{oneOf (array 'Home' 'Business' 'Billing' 'Other')}}\",\n \"city\": \"\",\n \"country\": \"\",\n \"postal_code\": \"\"\n },\n \"nationality\": \"\",\n \"phone\": \"\",\n \"primary\": {{faker 'datatype.boolean'}},\n \"subscribed_consents\": [\n \"\"\n ],\n \"title\": \"\"\n }\n ]\n },\n \"departure_date\": \"{{faker 'date.recent' 365}}\",\n \"external_id\": \"\",\n \"hotel\": {\n \"code\": \"\",\n \"id\": {{faker 'number.int' max=99999}}\n },\n \"labels\": [\n \"\"\n ],\n \"market_code\": \"\",\n \"rate_plan\": {\n \"code\": \"\",\n \"description\": \"\",\n \"name\": \"\"\n },\n \"reservation_number\": {{faker 'number.int' max=99999}},\n \"reservation_status\": \"{{oneOf (array 'Tentative' 'Waitlisted' 'OnRequest' 'NonGuaranteed' 'Guaranteed' 'InHouse' 'CheckedOut' 'NoShow' 'Denied' 'Cancelled' 'Released' 'Walked' 'Expired' 'WalkIn' 'Registered')}}\",\n \"room\": {\n \"number\": \"\",\n \"room_type\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n },\n \"rooms\": {{faker 'number.int' max=99999}},\n \"subchannel_code\": \"\",\n \"updated\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"updated\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A list of reservations for the requested hotel identifier.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "2acd78bb-821e-4b6b-a96e-93ee6b34c36e", "body": "", "latency": 0, "statusCode": 204, "label": "There are no bookings matching your filter criteria.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f0c603fb-2216-4e53-ab18-656104e5cfa5", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a316d5eb-3e96-4bb2-ae5c-6a0097a01dbe", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9c50ea67-6f58-47cd-859b-89a7a4ee8402", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c3e9e866-42e7-4a64-8a37-85bbc35c5429", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "944dcac3-c066-472b-b195-279984f036b8", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "cfaa3892-a672-4f15-abac-ba83d544f89c", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d7d0037a-dbc9-493c-9a34-f54710b7e997", "documentation": "Create a new booking.", "method": "post", "endpoint": "api/booking/v0/bookings", "responses": [ { "uuid": "ec04101e-fe56-436d-aab1-d4f4a81618f7", "body": "{\n \"_warnings\": [\n \"\"\n ],\n \"confirmation_id\": \"\",\n \"reservation_id\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 201, "label": "The creation of the booking was successful. You will get back the confirmation id and maybe warnings, if\r\n e.g. the prepayment could not be captured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "0f5bb80f-4976-4ae2-9967-386c24389aa6", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request. Request body erroneous.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "db25ab73-e013-4196-919a-9fdc216f0a1a", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "433be8a8-ce4c-4873-b641-da96816f0c28", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "db7c04eb-f66e-46c0-978b-d9d7da5195ba", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4ef5f8ef-8b00-460c-8720-185d76339b17", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "88c898c0-37c1-4892-ab0a-f711651e26ed", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a58af821-bebd-471f-8c41-b6a96ab30a1f", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2bcbd792-67ad-419c-a144-90fe28d2974d", "documentation": "Get total count of bookings matchung the given filter criteria.", "method": "get", "endpoint": "api/booking/v0/bookings/$count", "responses": [ { "uuid": "4c42ab89-156b-4c30-b9c0-75fc8d3b8cba", "body": "{\n \"_count\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "The total booking count for a given filter criteria.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "41e8d1a8-525f-45e3-a363-2505f0771022", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2d3e8caf-ffab-4287-8e30-c65e2b7971c6", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6fdd5c90-69e3-41e1-ae8a-5b440e44e22e", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2a847dbe-d452-4d57-a419-0dd8507a3d38", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7ba1da6c-b981-45de-89d6-af381c48b45b", "documentation": "Load all reservations for one booking by confirmation id.", "method": "get", "endpoint": "api/booking/v0/bookings/:confirmationId", "responses": [ { "uuid": "3d34f244-140e-4034-a392-38baea3fde2a", "body": "{\n \"reservations\": [\n {\n \"_warnings\": [\n \"\"\n ],\n \"addon_services\": [\n \"\"\n ],\n \"adults\": {{faker 'number.int' max=99999}},\n \"arrival_date\": \"{{faker 'date.recent' 365}}\",\n \"balance\": {{faker 'number.float'}},\n \"block\": {\n \"_links\": {},\n \"code\": \"\",\n \"name\": \"\"\n },\n \"cancellation_id\": \"\",\n \"cancellation_policies\": [\n {\n \"description\": \"\",\n \"fee\": {{faker 'number.float'}},\n \"fee_date\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"channel_code\": \"\",\n \"checkin_time\": \"{{faker 'date.recent' 365}}\",\n \"checkout_time\": \"{{faker 'date.recent' 365}}\",\n \"comment\": \"\",\n \"company\": {\n \"company_id\": \"\"\n },\n \"confirmation_id\": \"\",\n \"contact\": {\n \"_links\": {},\n \"customer_id\": \"\"\n },\n \"created\": \"{{faker 'date.recent' 365}}\",\n \"currency\": \"\",\n \"departure_date\": \"{{faker 'date.recent' 365}}\",\n \"external_id\": \"\",\n \"general_policies\": [\n {\n \"description\": \"\",\n \"name\": \"\"\n }\n ],\n \"guarantee\": {\n \"guarantee_type\": \"{{oneOf (array 'PM4Hold' 'PM6Hold' 'GuaranteeToCreditCard' 'GuaranteeToGuestAccount' 'GuaranteeByTravelAgent' 'GuaranteeByCompany' 'Deposit' 'Voucher' 'Prepayment' 'NonGuaranteed' 'Tentative' 'Waitlist')}}\",\n \"valid_token\": {{faker 'datatype.boolean'}}\n },\n \"guests\": [\n {\n \"_links\": {},\n \"customer_id\": \"\",\n \"email\": \"\",\n \"first_name\": \"\",\n \"gender\": \"{{oneOf (array 'Unspecified' 'Male' 'Female')}}\",\n \"last_name\": \"\",\n \"mailing_address\": {\n \"address\": \"\",\n \"address_type\": \"{{oneOf (array 'Home' 'Business' 'Billing' 'Other')}}\",\n \"city\": \"\",\n \"country\": \"\",\n \"postal_code\": \"\"\n },\n \"nationality\": \"\",\n \"phone\": \"\",\n \"primary\": {{faker 'datatype.boolean'}},\n \"subscribed_consents\": [\n \"\"\n ],\n \"title\": \"\"\n }\n ],\n \"hotel_id\": {{faker 'number.int' max=99999}},\n \"labels\": [\n \"\"\n ],\n \"market_code\": \"\",\n \"noshow_policy\": {\n \"description\": \"\",\n \"fee\": {{faker 'number.float'}}\n },\n \"payment_method\": \"{{oneOf (array 'None' 'Cash' 'CreditCard' 'WireTransfer' 'ChargeToCompany' 'Check' 'Voucher' 'DebitCard' 'Token' 'Miscellaneous' 'DigitalPayment')}}\",\n \"rate_plan\": {\n \"code\": \"\",\n \"description\": \"\",\n \"name\": \"\"\n },\n \"reservation_number\": {{faker 'number.int' max=99999}},\n \"reservation_status\": \"{{oneOf (array 'Tentative' 'Waitlisted' 'OnRequest' 'NonGuaranteed' 'Guaranteed' 'InHouse' 'CheckedOut' 'NoShow' 'Denied' 'Cancelled' 'Released' 'Walked' 'Expired' 'WalkIn' 'Registered')}}\",\n \"room\": {\n \"_links\": {},\n \"description\": \"\",\n \"name\": \"\",\n \"number\": \"\",\n \"room_type\": {\n \"_links\": {},\n \"code\": \"\",\n \"description\": \"\",\n \"name\": \"\"\n }\n },\n \"room_rates\": [\n {\n \"addon_services\": [\n {\n \"code\": \"\",\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"excluded_tax\": {{faker 'number.float'}},\n \"included_services\": [\n \"\"\n ],\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}},\n \"room_type\": \"\"\n }\n ],\n \"rooms\": {{faker 'number.int' max=99999}},\n \"services\": [\n {\n \"code\": \"\",\n \"description\": \"\",\n \"frequency\": \"\",\n \"is_addon\": {{faker 'datatype.boolean'}},\n \"name\": \"\"\n }\n ],\n \"subchannel_code\": \"\",\n \"total_stay\": {\n \"addon_services\": [\n {\n \"code\": \"\",\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"excluded_tax\": {{faker 'number.float'}},\n \"included_services\": [\n \"\"\n ],\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n },\n \"updated\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Returns a list of all reservations for that booking.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e21134a3-504f-4449-90f3-751110c18eaa", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "26d82625-77fa-474a-a552-40f92295c10a", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5b2e16ba-3a77-4b75-962c-d00265f40028", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c72894cc-8c96-433b-993b-5c74f8260fef", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1fce675d-9934-49bc-8242-c2a9f7f765b0", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d4db1b29-f416-470e-9992-1920877b4108", "documentation": "Load a specific reservation from a booking.", "method": "get", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber", "responses": [ { "uuid": "5079034d-a0b0-475f-9fe6-33241ef96521", "body": "{\n \"_warnings\": [\n \"\"\n ],\n \"addon_services\": [\n \"\"\n ],\n \"adults\": {{faker 'number.int' max=99999}},\n \"arrival_date\": \"{{faker 'date.recent' 365}}\",\n \"balance\": {{faker 'number.float'}},\n \"block\": {\n \"_links\": {},\n \"code\": \"\",\n \"name\": \"\"\n },\n \"cancellation_id\": \"\",\n \"cancellation_policies\": [\n {\n \"description\": \"\",\n \"fee\": {{faker 'number.float'}},\n \"fee_date\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"channel_code\": \"\",\n \"checkin_time\": \"{{faker 'date.recent' 365}}\",\n \"checkout_time\": \"{{faker 'date.recent' 365}}\",\n \"comment\": \"\",\n \"company\": {\n \"company_id\": \"\"\n },\n \"confirmation_id\": \"\",\n \"contact\": {\n \"_links\": {},\n \"customer_id\": \"\"\n },\n \"created\": \"{{faker 'date.recent' 365}}\",\n \"currency\": \"\",\n \"departure_date\": \"{{faker 'date.recent' 365}}\",\n \"external_id\": \"\",\n \"general_policies\": [\n {\n \"description\": \"\",\n \"name\": \"\"\n }\n ],\n \"guarantee\": {\n \"guarantee_type\": \"{{oneOf (array 'PM4Hold' 'PM6Hold' 'GuaranteeToCreditCard' 'GuaranteeToGuestAccount' 'GuaranteeByTravelAgent' 'GuaranteeByCompany' 'Deposit' 'Voucher' 'Prepayment' 'NonGuaranteed' 'Tentative' 'Waitlist')}}\",\n \"valid_token\": {{faker 'datatype.boolean'}}\n },\n \"guests\": [\n {\n \"_links\": {},\n \"customer_id\": \"\",\n \"email\": \"\",\n \"first_name\": \"\",\n \"gender\": \"{{oneOf (array 'Unspecified' 'Male' 'Female')}}\",\n \"last_name\": \"\",\n \"mailing_address\": {\n \"address\": \"\",\n \"address_type\": \"{{oneOf (array 'Home' 'Business' 'Billing' 'Other')}}\",\n \"city\": \"\",\n \"country\": \"\",\n \"postal_code\": \"\"\n },\n \"nationality\": \"\",\n \"phone\": \"\",\n \"primary\": {{faker 'datatype.boolean'}},\n \"subscribed_consents\": [\n \"\"\n ],\n \"title\": \"\"\n }\n ],\n \"hotel_id\": {{faker 'number.int' max=99999}},\n \"labels\": [\n \"\"\n ],\n \"market_code\": \"\",\n \"noshow_policy\": {\n \"description\": \"\",\n \"fee\": {{faker 'number.float'}}\n },\n \"payment_method\": \"{{oneOf (array 'None' 'Cash' 'CreditCard' 'WireTransfer' 'ChargeToCompany' 'Check' 'Voucher' 'DebitCard' 'Token' 'Miscellaneous' 'DigitalPayment')}}\",\n \"rate_plan\": {\n \"code\": \"\",\n \"description\": \"\",\n \"name\": \"\"\n },\n \"reservation_number\": {{faker 'number.int' max=99999}},\n \"reservation_status\": \"{{oneOf (array 'Tentative' 'Waitlisted' 'OnRequest' 'NonGuaranteed' 'Guaranteed' 'InHouse' 'CheckedOut' 'NoShow' 'Denied' 'Cancelled' 'Released' 'Walked' 'Expired' 'WalkIn' 'Registered')}}\",\n \"room\": {\n \"_links\": {},\n \"description\": \"\",\n \"name\": \"\",\n \"number\": \"\",\n \"room_type\": {\n \"_links\": {},\n \"code\": \"\",\n \"description\": \"\",\n \"name\": \"\"\n }\n },\n \"room_rates\": [\n {\n \"addon_services\": [\n {\n \"code\": \"\",\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"excluded_tax\": {{faker 'number.float'}},\n \"included_services\": [\n \"\"\n ],\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}},\n \"room_type\": \"\"\n }\n ],\n \"rooms\": {{faker 'number.int' max=99999}},\n \"services\": [\n {\n \"code\": \"\",\n \"description\": \"\",\n \"frequency\": \"\",\n \"is_addon\": {{faker 'datatype.boolean'}},\n \"name\": \"\"\n }\n ],\n \"subchannel_code\": \"\",\n \"total_stay\": {\n \"addon_services\": [\n {\n \"code\": \"\",\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"excluded_tax\": {{faker 'number.float'}},\n \"included_services\": [\n \"\"\n ],\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n },\n \"updated\": \"{{faker 'date.recent' 365}}\"\n}", "latency": 0, "statusCode": 200, "label": "Returns the details of the reservation specified.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "93bb87bf-7784-431c-ad05-7c094ec93457", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a431c7a9-acfd-487b-bc4e-4208b9ef9324", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "99feddaf-4373-4573-8807-e1e3cc09b8fd", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "08b99eea-1594-4d48-b4d4-905a36367b5b", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a7966489-30ba-4547-b4c6-9a243fd0db75", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b461ccc3-3f31-42b5-8068-5935a3ebc0f6", "documentation": "Partially updates a reservation.", "method": "patch", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber", "responses": [ { "uuid": "bafc29b0-c7d1-4b87-b059-460aeb01e554", "body": "{}", "latency": 0, "statusCode": 200, "label": "The update was successful. Reponse would contain a referer to the updated reservation.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b21c43cd-4d25-4863-bea1-845a4584f8d6", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request. Request body erroneous.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ea22f7fe-f3a2-4b8a-a17c-7109c20c7584", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d94412b1-f495-4412-9d9b-8181093c5823", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3f34b595-8f6d-4327-b0bf-df62aa3702d8", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ca7394b7-b020-4245-b9b0-bbd7190a5e7c", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6f7cb7c1-a7f8-4046-b83b-8800119034bd", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5c2f96e0-bcf5-40c0-bef4-14a9d8529480", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "010fce6a-504a-4440-82ab-55f2584d4e5f", "documentation": "Assign a room to a reservation.", "method": "post", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room", "responses": [ { "uuid": "fc745261-4889-4944-9764-c5ea73b1851e", "body": "{\n \"_warnings\": [\n \"\"\n ],\n \"room_number\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The room assignment was successful. The Reponse would contain the room number assigned.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "6b1cdd2c-f2b1-4904-9458-5f9181ee35c0", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request. Request body erroneous.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1896239b-974b-4d69-94fe-2140852491c4", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f7ccb15b-0bda-4761-98f5-7f77fcc29187", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d6c1b8fd-08da-4e20-b57e-fee9210d2d9d", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "30272bc0-e48f-4730-88fb-eba060b9a43d", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate. The reason could be no available rooms or a mismatch of room types etc.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "75e9cad0-1963-4d23-b0f7-b9b971cff4e7", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "fc12e81e-6c69-4108-8616-ee825b163479", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "735dc38f-f0cb-4360-9638-746d28b9e35e", "documentation": "Cancel one reservation.", "method": "post", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel", "responses": [ { "uuid": "3cbd0efe-b323-4392-8765-820dd890d5c4", "body": "{\n \"_warnings\": [\n \"\"\n ],\n \"balance\": {{faker 'number.float'}},\n \"cancellation_fee\": {{faker 'number.float'}},\n \"cancellation_id\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Returns the cancellation id and the cancellation fee that will be charged to the folio of the reservation.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e1c14d9c-e1af-464a-94e6-eb7ecc1b3210", "body": "", "latency": 0, "statusCode": 400, "label": "Bad request. Request body erroneous.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4a84d6c4-b27e-4468-ad56-abd58372673d", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "947e91a1-8e4f-4769-a58e-600bcf755094", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "021f2789-39de-45cb-aa72-25d86e77df99", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8bc1a56d-f615-48ff-a029-44211e6fc8a1", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3de4eba6-8dae-4ac3-8f34-d2696c1ff57f", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cbbd4566-debe-4485-9b33-a9f8b0f99fa5", "documentation": "Performs a check in operation for a reservation.", "method": "post", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in", "responses": [ { "uuid": "0635375c-9c2a-49d7-9b84-5b7b89a25d05", "body": "{\n \"_warnings\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "The check in was successful", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "300d231f-b78b-4ef9-9e71-2e47f9e08b48", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "096a07bb-2783-4493-8083-4071537d0832", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0a156f92-2263-45f6-9340-79e6e0499c55", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b235f1cc-eabc-4177-89c6-10fb65c351d1", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate. The reason could be wrong room or reservation status, wrong start date of reservation etc.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5236cafc-af59-4850-bf1a-a07d17afcbce", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ee8d3a48-5584-4ac6-954a-99d3fa7f37f3", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8cc4f21c-2dc7-46bc-b348-aec34c6f3ed0", "documentation": "Performs a check out operation for a reservation.", "method": "post", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out", "responses": [ { "uuid": "e10c4520-d6cb-4744-b3c1-e23b9a845d8a", "body": "{\n \"_warnings\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "The check out was successful", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "95b71ce2-1cb3-482d-83e1-c605622b4900", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "268ca2e5-7984-45e9-a3be-be683000ab87", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "63018b03-674e-4d39-a701-679903ed3325", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b4c3a2d1-c9b3-4d41-89ab-afd5985f46c3", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate. The reason could be wrong reservation status, such as it was already checked out.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9df4a243-bd1c-4c2f-89eb-0b541315f57b", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a4ce58a5-ea29-44a1-ad62-e50e91eabe1c", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0403651c-855f-43ad-9a3c-4840617df514", "documentation": "Post a payment token for a reservation.", "method": "put", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token", "responses": [ { "uuid": "2f46ff56-c6c4-4865-9f0c-7e39509e768e", "body": "{\n \"_warnings\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "The payment token was added successfully", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "62fe3981-ed12-4282-9b92-cb2cabc122cb", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "54dc6962-4666-46a7-9ec5-0d2ce468186d", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "716a3446-da52-4ab3-a2d4-877296a21421", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "50aeef83-a9f9-4177-9bd1-bc641e190292", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate. The reason could be wrong room or reservation status, wrong start date of reservation etc.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "889ad2d5-0566-4468-aff4-b82656bd6a3e", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2adff9e4-ba45-40bc-af81-4bf20867ac8d", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d17ef11d-236e-40ec-85af-97bf88c46f92", "documentation": "Performs a chip and pin credit card authorization for a reservation.", "method": "post", "endpoint": "api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize", "responses": [ { "uuid": "345e8d0c-999d-45e3-9044-86160fc4659f", "body": "{\n \"_warnings\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "The operation was successful", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "87ebeec5-7614-4f8a-ae00-19db7fb322b0", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "df527d15-127f-40a5-9895-ca53ac382d6f", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "fae16f5a-f390-40ff-80d4-efb206afc9d6", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "05c244a2-7571-458b-aac2-d46346f53fdd", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate. The reason could be wrong room or reservation status, wrong start date of reservation etc.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d91e1a18-1562-4015-a2d2-a88df221ba90", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c1c74749-fac7-402c-a841-8874bbed17b9", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "93dbaa6c-52ae-4f2d-994b-2c92a6554410", "documentation": "Get a list of daily rates given a hotel Id, a channel code and a date range.", "method": "get", "endpoint": "api/booking/v0/daily_rates", "responses": [ { "uuid": "6405d8ce-9e25-419d-9c3d-771e4ac5ba4a", "body": "{\n \"_count\": {{faker 'number.int' max=99999}},\n \"_links\": {},\n \"daily_rates\": [\n {\n \"business_day\": \"{{faker 'date.recent' 365}}\",\n \"offers\": [\n {\n \"cancellation_policy_code\": \"\",\n \"guarantee_type_code\": \"\",\n \"noshow_policy_code\": \"\",\n \"rateplan_code\": \"\",\n \"room_type_details\": [\n {\n \"available_rooms_count\": {{faker 'number.int' max=99999}},\n \"is_available\": {{faker 'datatype.boolean'}},\n \"rates\": [\n {\n \"adults\": {{faker 'number.int' max=99999}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"restrictions\": {\n \"closed\": {{faker 'datatype.boolean'}},\n \"closed_to_arrival\": {{faker 'datatype.boolean'}},\n \"closed_to_departure\": {{faker 'datatype.boolean'}},\n \"maximum_length_of_stay\": {{faker 'number.int' max=99999}},\n \"minimum_length_of_stay\": {{faker 'number.int' max=99999}},\n \"minimum_stay_through\": {{faker 'number.int' max=99999}}\n },\n \"room_type_code\": \"\",\n \"unavailable_reason\": \"\"\n }\n ]\n }\n ]\n }\n ],\n \"hotel\": {\n \"_links\": {},\n \"code\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n },\n \"policies\": {\n \"cancellation_policies\": [\n {\n \"_links\": {},\n \"code\": \"\"\n }\n ],\n \"guarantee_types\": [\n {\n \"accepted\": [\n \"{{oneOf (array 'PM4Hold' 'PM6Hold' 'GuaranteeByCompany' 'GuaranteeByTravelAgent' 'GuaranteeToGuestAccount' 'GuaranteeToCreditCard' 'Deposit' 'Prepayment' 'NonGuaranteed')}}\"\n ],\n \"code\": \"\"\n }\n ],\n \"noshow_policies\": [\n {\n \"_links\": {},\n \"code\": \"\"\n }\n ]\n },\n \"rateplans\": [\n {\n \"_links\": {},\n \"code\": \"\",\n \"currency\": \"\",\n \"name\": \"\"\n }\n ],\n \"room_types\": [\n {\n \"_links\": {},\n \"code\": \"\",\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Different rates for the requested stay details grouped by room type.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c343c29d-5716-4a54-b789-79e95fc82c44", "body": "", "latency": 0, "statusCode": 204, "label": "When there are no data to return.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "72d7d505-c942-4431-8dff-d283c01f4335", "body": "", "latency": 0, "statusCode": 400, "label": "The request failed to validate. One of the missing request parameters was missing or their value was wrong.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d7b7e472-24e2-49fa-9896-4f7024bbb76f", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5652c8c1-9093-4c7a-bdc0-07d01e45c1de", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1572a931-5bed-4ab0-b2e7-f78a57d732b6", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI. This code will not be returned when there are no data to return for (please see 204).", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "33f35c4f-3496-4070-885b-39903e532766", "body": "", "latency": 0, "statusCode": 409, "label": "When an error occurs which prevent the API to return a response and is normally cause by bad input.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d20cef51-447f-45a1-8ce2-0bd6562d0bbd", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b179d6d8-f86c-4010-a0a7-5ad8ffd37610", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9a907a99-4253-4b4f-869c-b7b2abf2b1dc", "documentation": "Get a list of room offers for the specified guest stay details.", "method": "get", "endpoint": "api/booking/v0/rates", "responses": [ { "uuid": "72a91331-f52b-40ff-ae87-7f53de5cc8f6", "body": "{\n \"arrival_date\": \"{{faker 'date.recent' 365}}\",\n \"departure_date\": \"{{faker 'date.recent' 365}}\",\n \"hotel_id\": {{faker 'number.int' max=99999}},\n \"hotel_name\": \"\",\n \"rate_plans\": [\n {\n \"code\": \"\",\n \"description\": \"\",\n \"name\": \"\"\n }\n ],\n \"room_offers\": [\n {\n \"offers\": [\n {\n \"_links\": {},\n \"adults\": {{faker 'number.int' max=99999}},\n \"available_rooms\": {{faker 'number.int' max=99999}},\n \"breakdown\": [\n {\n \"business_day\": \"{{faker 'date.recent' 365}}\",\n \"excluded_tax\": {{faker 'number.float'}},\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"cancellation_policies\": [\n {\n \"description\": \"\",\n \"fee\": {{faker 'number.float'}},\n \"fee_date\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"currency\": \"\",\n \"deposit_policies\": [\n {\n \"amount\": {{faker 'number.float'}},\n \"description\": \"\",\n \"due_date\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"general_policies\": [\n {\n \"description\": \"\",\n \"name\": \"\"\n }\n ],\n \"guarantee_types\": {\n \"accepted\": [\n \"{{oneOf (array 'PM4Hold' 'PM6Hold' 'GuaranteeToCreditCard' 'GuaranteeToGuestAccount' 'GuaranteeByTravelAgent' 'GuaranteeByCompany' 'Deposit' 'Voucher' 'Prepayment' 'NonGuaranteed' 'Tentative' 'Waitlist')}}\"\n ],\n \"minimum\": \"{{oneOf (array 'PM4Hold' 'PM6Hold' 'GuaranteeToCreditCard' 'GuaranteeToGuestAccount' 'GuaranteeByTravelAgent' 'GuaranteeByCompany' 'Deposit' 'Voucher' 'Prepayment' 'NonGuaranteed' 'Tentative' 'Waitlist')}}\"\n },\n \"included_services\": [\n \"\"\n ],\n \"noshow_policy\": {\n \"description\": \"\",\n \"fee\": {{faker 'number.float'}}\n },\n \"rate_plan_code\": \"\",\n \"total_stay\": {\n \"addon_services\": [\n {\n \"code\": \"\",\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n ],\n \"excluded_tax\": {{faker 'number.float'}},\n \"included_services\": [\n \"\"\n ],\n \"included_tax\": {{faker 'number.float'}},\n \"rate\": {{faker 'number.float'}}\n }\n }\n ],\n \"room_type\": \"\"\n }\n ],\n \"rooms\": [\n {\n \"description\": \"\",\n \"name\": \"\",\n \"room_number\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n }\n ],\n \"services\": [\n {\n \"code\": \"\",\n \"description\": \"\",\n \"frequency\": \"\",\n \"is_addon\": {{faker 'datatype.boolean'}},\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Different rates for the requested stay details grouped by room type.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "475f4219-4f0c-44d8-8b67-5aec0aaa6b08", "body": "", "latency": 0, "statusCode": 401, "label": "You provided wrong credentials, or you reached your API limit.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d23b7ef8-d554-40f7-9f37-355e43472f34", "body": "", "latency": 0, "statusCode": 403, "label": "The application does not have access to the requested resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "249b08a6-8a2c-44ca-88a5-ef529e0fe4d2", "body": "", "latency": 0, "statusCode": 404, "label": "Not Found. The server has not found anything matching the Request-URI. It is also used if there are no rates available for the specified guest stay details.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3c471bb8-e434-4b85-8748-e23176411e4d", "body": "", "latency": 0, "statusCode": 422, "label": "The request failed to validate. Either a mandatory parameter was missing or no offers for \r\n the requested stay details", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "26dcd3fc-d5c0-47b9-b36d-8dc2d6136888", "body": "", "latency": 0, "statusCode": 500, "label": "We caught an unexpected error on our side. Please report with providing the Hetras-Tracking-Id from the response headers and we will check the logfiles.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3d680b03-6440-4cb8-ae16-da0d81b0db17", "body": "", "latency": 0, "statusCode": 503, "label": "The server is currently unavailable. Please try later.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "96d8ceda-898e-4e64-a8b4-f53dfd53f98c" }, { "type": "route", "uuid": "2e44c4c9-76d5-4272-a7a0-b3bcb36be8fd" }, { "type": "route", "uuid": "65a48c95-24ca-4342-a7cc-c42ec866c86f" }, { "type": "route", "uuid": "28155db6-48fa-4fac-b80c-5c70e3b7c5ca" }, { "type": "route", "uuid": "e65f9c34-d5cb-45c4-a2b7-ccba8c90e85e" }, { "type": "route", "uuid": "79c69f35-7b38-46fe-8bae-76aeccb04ebd" }, { "type": "route", "uuid": "d7d0037a-dbc9-493c-9a34-f54710b7e997" }, { "type": "route", "uuid": "2bcbd792-67ad-419c-a144-90fe28d2974d" }, { "type": "route", "uuid": "7ba1da6c-b981-45de-89d6-af381c48b45b" }, { "type": "route", "uuid": "d4db1b29-f416-470e-9992-1920877b4108" }, { "type": "route", "uuid": "b461ccc3-3f31-42b5-8068-5935a3ebc0f6" }, { "type": "route", "uuid": "010fce6a-504a-4440-82ab-55f2584d4e5f" }, { "type": "route", "uuid": "735dc38f-f0cb-4360-9638-746d28b9e35e" }, { "type": "route", "uuid": "cbbd4566-debe-4485-9b33-a9f8b0f99fa5" }, { "type": "route", "uuid": "8cc4f21c-2dc7-46bc-b348-aec34c6f3ed0" }, { "type": "route", "uuid": "0403651c-855f-43ad-9a3c-4840617df514" }, { "type": "route", "uuid": "d17ef11d-236e-40ec-85af-97bf88c46f92" }, { "type": "route", "uuid": "93dbaa6c-52ae-4f2d-994b-2c92a6554410" }, { "type": "route", "uuid": "9a907a99-4253-4b4f-869c-b7b2abf2b1dc" } ] }