Utils

This section is intended to organize the endpoints of brokers and products that were previously in separate sections.

Furthermore, these endpoints are scheduled for deprecation in the coming months, as they will be replaced by a new suite of endpoints designed to support complete menu management with enhanced performance and reliability.

Corridor schedules by store ID

Use the Utils resource to manage the Schedules configured in your stores.

The following table describes the different contents of the Schedules Utils resource:

ResourceDescription
GET /corridor/store/{storeId}Returns the collection of corridors for the store
GET /corridor/schedule/{corridorId}/store/{storeId}Returns the corridor schedules configured for the store
POST /corridor/schedule/{corridorId}/store/{storeId}Create corridor schedules for the store
PUT /corridor/schedule/{corridorId}/store/{storeId}Update corridor schedules for the store
DELETE /corridor/schedule/{corridorId}/store/{storeId}/{corridorProductScheduleId}Delete corridor schedules for the store
GET /corridor/integration/{integrationId}Returns the collection of corridors for the store
GET /corridor/schedule/{corridorId}/integration/{integrationId}Returns the corridor schedules configured for the store
POST /corridor/schedule/{corridorId}/integration/{integrationId}Create corridor schedules for the store
PUT /corridor/schedule/{corridorId}/integration/{integrationId}Update corridor schedules for the store
DELETE /corridor/schedule/{corridorId}/integration/{integrationId}/{corridorProductScheduleId}Use this endpoint to delete corridor schedules configured for the store.
GET /product/corridor/{corridorId}/store/{storeId}Returns the collection of products for the corridor and store
GET /product/schedule/{productId}/corridor/{corridorId}/store/{storeId}Returns the product schedules configured for the corridor and store
POST /product/schedule/{productId}/corridor/{corridorId}/store/{storeId}Create product schedules for the corridor and store
PUT /product/schedule/{productId}/corridor/{corridorId}/store/{storeId}Update product schedules for the corridor and store
DELETE /product/schedule/{productId}/corridor/{corridorId}/store/{storeId}/{corridorProductScheduleId}Use this endpoint to delete product schedules configured for the corridor and store.
GET /sku/corridor/{corridorId}/integration/{integrationId}Returns the collection of products for the corridor and store
GET /sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}Returns the product schedules configured for the corridor and store
POST /sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}Create product schedules for the corridor and store
PUT /sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}Update product schedules for the corridor and store
DELETE /sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}/{corridorProductScheduleId}Use this endpoint to delete product schedules configured for the corridor and store.

Products Status

Use Utils to check the status of the products in your store.

The following table shows the content of the stores hours:

ResourceDescription
GET /menu/integration/{integrationId}Return the list of products and toppings with status and their availability
GET /store/schedule/{storeId}Returns all regular store hours
GET /store/schedule/{storeId}/holidayReturns all holiday hours
GET /store/schedule/{storeId}/specialReturns all the hours of the store's special days
POST /store/schedule/{storeId}Create a time slot on a regular schedule day of the store
POST /store/schedule/{storeId}/holiday/{holidayDayId}Create a time slot on a holiday
POST /store/schedule/{storeId}/specialCreate a special day for the store
POST /store/schedule/{storeId}/special/{specialDayId}Create a time slot on a store's special day
PUT /store/schedule/{storeId}/{storeScheduleId}Update a time slot
DELETE /store/schedule/{storeId}/{storeScheduleId}Delete a time slot
DELETE /store/schedule/{storeId}/special/{specialDayId}Delete a special day

GET corridor/store/{storeId}

Use this endpoint to retrieve the collections of corridors configured for your store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/corridor/store/{storeId}

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/store/999

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

[ { "id": 123, "name": "Bebidas Calientes", "description": "Corredor Bebidas Calientes", "storeId": 999 }, { "id": 321, "name": "Bebidas Frias", "description": "Corredor Bebidas Frias", "storeId": 999 } ]

This table describes the objects contained in the response example:

Response ObjectObject Description
id
integer
Identifier of the corridor.
name
string
Name of the corridor.
description
string
Description of the corridor .
storeId
integer
Identifier of the store that contains the corridor. (The parent store identifier in case of child store request)

GET corridor/schedule/{corridorId}/store/{storeId}

Use this endpoint to obtain corridor schedules configured for the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/corridor/schedule/{corridorId}/store/{storeId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/321/store/999

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/321/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "corridor_id": 321, "store_id": 999, "schedule_details": [ { "id": 1, "days": "mon,tue,wed,thu,fri,sat,sun,hol", "starts_time": "08:00:00", "ends_time": "20:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where corridor must be available.
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

POST corridor/schedule/{corridorId}/store/{storeId}

Use this endpoint to create schedules for your corridors in the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/corridor/schedule/{corridorId}/store/{storeId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/store/999

This is an example of the request:

{ "schedule_details": [ { "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " },\n" + " {\n" + " \"days\": \"hol\",\n" + " \"starts_time\": \"13:00:00\",\n" + " \"ends_time\": \"22:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given corridor.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "corridor_id": 123, "store_id": 999, "schedule_details": [ { "id": 2, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "id": 3, "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where corridor must be available.
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

PUT corridor/schedule/{corridorId}/store/{storeId}

Use this endpoint to update schedules for your corridors in the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}api/rest-ops-utils/corridor/schedule/{corridorId}/store/{storeId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

PUT https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/store/999

This is an example of the request:

{ "schedule_details": [ { "id": 2, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("PUT"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"id\": 2,\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"10:00:00\",\n" + " \"ends_time\": \"16:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given corridor.
schedule_details.id
integer
requiredIdentifier of the corridor schedule.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "corridor_id": 123, "store_id": 999, "schedule_details": [ { "id": 2, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where corridor must be available.
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

DELETE corridor/schedule/{corridorId}/store/{storeId}/{corridorProductScheduleId}

Use this endpoint to delete schedules for your corridors in the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}api/rest-ops-utils/corridor/schedule/{corridorId}/store/{storeId}/{corridorProductScheduleId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {corridorProductScheduleId}: This is the identifier of the corridor schedule.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

PUT https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/store/999/2541

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/store/999/2541"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("DELETE"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "corridor_id": 123, "store_id": 999, "schedule_details": [ { "id": 2, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of corridor schedules that are still available
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

GET corridor/integration/{integrationId}

Use this endpoint to retrieve the collections of corridors configured for your store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/corridor/integration/{integrationId}

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/integration/888

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

[ { "id": 123, "name": "Bebidas Calientes", "description": "Corredor Bebidas Calientes", "integrationId": "888" }, { "id": 321, "name": "Bebidas Frias", "description": "Corredor Bebidas Frias", "integrationId": "888" } ]

This table describes the objects contained in the response example:

Response ObjectObject Description
id
integer
Identifier of the corridor.
name
string
Name of the corridor.
description
string
Description of the corridor .
integrationId
string
Identifier of the store that contains the corridor. (The parent store identifier in case of child store request)

GET corridor/schedule/{corridorId}/integration/{integrationId}

Use this endpoint to obtain corridor schedules configured for the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/corridor/schedule/{corridorId}/integration/{integrationId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/321/integration/888

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/321/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "corridor_id": 321, "integration_id": "888", "schedule_details": [ { "id": 1, "days": "mon,tue,wed,thu,fri,sat,sun,hol", "starts_time": "08:00:00", "ends_time": "20:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
integration_id
string
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where corridor must be available.
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

POST corridor/schedule/{corridorId}/integration/{integrationId}

Use this endpoint to create schedules for your corridors in the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/corridor/schedule/{corridorId}/integration/{integrationId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/integration/888

This is an example of the request:

{ "schedule_details": [ { "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " },\n" + " {\n" + " \"days\": \"hol\",\n" + " \"starts_time\": \"13:00:00\",\n" + " \"ends_time\": \"22:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given corridor.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "corridor_id": 123, "integration_id": "888", "schedule_details": [ { "id": 2, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "id": 3, "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
integration_id
string
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where corridor must be available.
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

PUT corridor/schedule/{corridorId}/store/{storeId}

Use this endpoint to update schedules for your corridors in the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}api/rest-ops-utils/corridor/schedule/{corridorId}/integration/{integrationId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

PUT https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/integration/888

This is an example of the request:

{ "schedule_details": [ { "id": 2, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/123/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("PUT"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"id\": 2,\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"10:00:00\",\n" + " \"ends_time\": \"16:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given corridor.
schedule_details.id
integer
requiredIdentifier of the corridor schedule.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "corridor_id": 123, "integration_id": "888", "schedule_details": [ { "id": 2, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
integration_id
integer
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where corridor must be available.
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

DELETE corridor/schedule/{corridorId}/integration/{integrationId}/{corridorProductScheduleId}

Use this endpoint to delete corridor schedules configured for the store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/corridor/schedule/{corridorId}/integration/{integrationId}/{corridorProductScheduleId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {corridorProductScheduleId}: This is the identifier of the corridor schedule.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

DELETE https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/321/integration/888/254

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/corridor/schedule/321/integration/888/254"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("DELETE"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "corridor_id": 321, "integration_id": "888", "schedule_details": [ { "id": 1, "days": "mon,tue,wed,thu,fri,sat,sun,hol", "starts_time": "08:00:00", "ends_time": "20:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
corridor_id
integer
Identifier of the corridor.
integration_id
string
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of corridor schedules that are still available.
schedule_details.id
integer
Identifier of the corridor schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the corridor begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the corridor becomes unavailable for users. 24 hour format HH:mm:ss

GET product/corridor/{corridorId}/store/{storeId}

Use this endpoint to retrieve the collections of products configured for the given corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/product/corridor/{corridorId}/store/{storeId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/product/corridor/123/store/999

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/product/corridor/123/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

[ { "product_id": 789, "name": "Americano Caliente 16 oz", "description": "16 oz. Espresso con agua caliente.", "corridor_id": 123, "store_id": 999 }, { "product_id": 987, "name": "Americano Caliente 20 oz", "description": "20 oz. Espresso con agua caliente.", "corridor_id": 123, "store_id": 999 } ]

This table describes the objects contained in the response example:

Response ObjectObject Description
product_id
integer
Identifier of the product.
name
string
Name of the product.
description
string
Description of the product .
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store that contains the corridor. (The parent store identifier in case of child store request)

GET product/schedule/{productId}/corridor/{corridorId}/store/{storeId}

Use this endpoint to obtain product schedules configured for the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/product/schedule/{productId}/corridor/{corridorId}/store/{storeId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.
  • {productId}: This is the identifier of the product.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/{productId}/corridor/{corridorId}/store/{storeId}

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/789/corridor/123/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "product_id": 789, "corridor_id": 123, "store_id": 999, "schedule_details": [ { "id": 4, "days": "mon,tue,wed,thu,fri,sat,sun,hol", "starts_time": "08:00:00", "ends_time": "23:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
product_id
integer
Identifier of the product.
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where product must be available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

POST product/schedule/{productId}/corridor/{corridorId}/store/{storeId}

Use this endpoint to create schedules for your products in the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}api/rest-ops-utils/product/schedule/{productId}/corridor/{corridorId}/store/{storeId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.
  • {productId}: This is the identifier of the product.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/789/corridor/123/store/999

This is an example of the request:

{ "schedule_details": [ { "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/789/corridor/123/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " },\n" + " {\n" + " \"days\": \"hol\",\n" + " \"starts_time\": \"13:00:00\",\n" + " \"ends_time\": \"22:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given product.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "product_id": 789, "corridor_id": 123, "store_id": 999, "schedule_details": [ { "id": 5, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "id": 6, "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
product_id
integer
Identifier of the product.
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where product must be available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

PUT product/schedule/{productId}/corridor/{corridorId}/store/{storeId}

Use this endpoint to update schedules for your products in the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}api/rest-ops-utils/product/schedule/{productId}/corridor/{corridorId}/store/{storeId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

PUT https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/789/corridor/123/store/999

This is an example of the request:

{ "schedule_details": [ { "id": 5, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/789/corridor/123/store/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("PUT"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"id\": 5,\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"10:00:00\",\n" + " \"ends_time\": \"16:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given product.
schedule_details.id
integer
requiredIdentifier of the product schedule.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "product_id": 789, "corridor_id": 123, "store_id": 999, "schedule_details": [ { "id": 5, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
product_id
integer
Identifier of the product.
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where product must be available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

DELETE product/schedule/{productId}/corridor/{corridorId}/store/{storeId}/{corridorProductScheduleId}

Use this endpoint to delete product schedules configured for the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/product/schedule/{productId}/corridor/{corridorId}/store/{storeId}/{corridorProductScheduleId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {corridorProductScheduleId}: This is the identifier of the product schedule.
  • {storeId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.
  • {productId}: This is the identifier of the product.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

DELETE https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/{productId}/corridor/{corridorId}/store/{storeId}/{corridorProductScheduleId}

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/product/schedule/789/corridor/123/store/999/254"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("DELETE"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "product_id": 789, "corridor_id": 123, "store_id": 999, "schedule_details": [ { "id": 4, "days": "mon,tue,wed,thu,fri,sat,sun,hol", "starts_time": "08:00:00", "ends_time": "23:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
product_id
integer
Identifier of the product.
corridor_id
integer
Identifier of the corridor.
store_id
integer
Identifier of the store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules that are still available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

GET sku/corridor/{corridorId}/integration/{integrationId}

Use this endpoint to retrieve the collections of products configured for the given corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/sku/corridor/{corridorId}/integration/{integrationId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/sku/corridor/123/integration/888

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/sku/corridor/123/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

[ { "sku": 789, "name": "Americano Caliente 16 oz", "description": "16 oz. Espresso con agua caliente.", "corridor_id": 123, "integration_id": "888" }, { "sku": 987, "name": "Americano Caliente 20 oz", "description": "20 oz. Espresso con agua caliente.", "corridor_id": 123, "integration_id": "888" } ]

This table describes the objects contained in the response example:

Response ObjectObject Description
sku
integer
Identifier of the product.
name
string
Name of the product.
description
string
Description of the product .
corridor_id
integer
Identifier of the corridor.
integration_id
string
Identifier of the store that contains the corridor. (The parent store identifier in case of child store request)

GET sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}

Use this endpoint to obtain product schedules configured for the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.
  • {sku}: This is the identifier of your product.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/987/corridor/123/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "sku": 987, "corridor_id": 123, "integration_id": "888", "schedule_details": [ { "id": 4, "days": "mon,tue,wed,thu,fri,sat,sun,hol", "starts_time": "08:00:00", "ends_time": "23:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
sku
integer
Identifier of your product.
corridor_id
integer
Identifier of the corridor.
integration_id
integer
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where product must be available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

POST sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}

Use this endpoint to create schedules for your products in the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}api/rest-ops-utils/sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.
  • {sku}: This is the identifier of your product.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/987/corridor/123/integration/888

This is an example of the request:

{ "schedule_details": [ { "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/987/corridor/123/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " },\n" + " {\n" + " \"days\": \"hol\",\n" + " \"starts_time\": \"13:00:00\",\n" + " \"ends_time\": \"22:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given product.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "sku": 987, "corridor_id": 123, "integration_id": "888", "schedule_details": [ { "id": 5, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "08:00:00", "ends_time": "20:00:00" }, { "id": 6, "days": "hol", "starts_time": "13:00:00", "ends_time": "22:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
sku
integer
Identifier of your product.
corridor_id
integer
Identifier of the corridor.
integration_id
integer
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where product must be available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

PUT sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}

Use this endpoint to update schedules for your products in the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}api/rest-ops-utils/sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.
  • {sku}: This is the identifier of your product.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

PUT https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/987/corridor/123/integration/888

This is an example of the request:

{ "schedule_details": [ { "id": 5, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/987/corridor/123/integration/888"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("PUT"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"schedule_details\": [\n" + " {\n" + " \"id\": 5,\n" + " \"days\": \"mon,tue,wed,thu,fri,sat,sun\",\n" + " \"starts_time\": \"10:00:00\",\n" + " \"ends_time\": \"16:00:00\"\n" + " }\n" + " ]\n" + "}"; try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
schedule_details
array of objects
requiredList of the schedules for the given product.
schedule_details.id
integer
requiredIdentifier of the product schedule.
schedule_details.days
string
requiredDays of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
strings
requiredA specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
strings
requiredA specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

Sample Response

This is an example of the response:

{ "sku": 987, "corridor_id": 123, "integration_id": "888", "schedule_details": [ { "id": 5, "days": "mon,tue,wed,thu,fri,sat,sun", "starts_time": "10:00:00", "ends_time": "16:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
sku
integer
Identifier of your product.
corridor_id
integer
Identifier of the corridor.
integration_id
integer
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules where product must be available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

DELETE sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}/{corridorProductScheduleId}

Use this endpoint to delete product schedules configured for the corridor and store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}/{corridorProductScheduleId}

  • {COUNTRY_DOMAIN}: Your Rappi Country Domain. See the list of Country Domains.
  • {corridorProductScheduleId}: This is the identifier of the product schedule.
  • {integrationId}: This is the identifier of your store.
  • {corridorId}: This is the identifier of the corridor.
  • {sku}: This is the identifier of your product.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

DELETE https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/{sku}/corridor/{corridorId}/integration/{integrationId}/{corridorProductScheduleId}

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/sku/schedule/987/corridor/123/integration/888/254"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("DELETE"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Sample Response

This is an example of the response:

{ "sku": 987, "corridor_id": 123, "integration_id": "888", "schedule_details": [ { "id": 4, "days": "mon,tue,wed,thu,fri,sat,sun,hol", "starts_time": "08:00:00", "ends_time": "23:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
sku
integer
Identifier of your product.
corridor_id
integer
Identifier of the corridor.
integration_id
integer
Identifier of your store. (The parent store identifier in case of child store request)
schedule_details
array of objects
List of the schedules that are still available.
schedule_details.id
integer
Identifier of the product schedule.
schedule_details.days
string
Days of the schedule. Days of the week: "mon,tue,wed,thu,fri,sat,sun", Holidays: "hol".
schedule_details.starts_time
string
A specific time where the product begins to be available for users. 24 hour format HH:mm:ss
schedule_details.ends_time
string
A specific time where the product becomes unavailable for users. 24 hour format HH:mm:ss

GET menu/integration/{integrationId}

Use this endpoint to get list of products and toppings with status and their availability.

Endpoint URL

Use this URL to call the endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/menu/integration/{integrationId}

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/menu/integration/910001

This is an example of the response:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/menu/integration/910001"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

{ "corridors": [ { "id": "2090062012", "name": "Alimentos", "description": "", "storeId": "900113661", "integrationId": "900113662" } ], "products": [ { "id": "2136363834", "sku": "0003339", "name": "Combo Ant. De Lomo", "description": "Combo ant. de lomo", "active": true, "isAvailable": true, "corridorId": "2090062012" } ], "toppingsCategories": [ { "id": "1247309613", "sku": null, "description": "Otros", "productId": "2136363834", "toppings": [ { "id": "341611638", "sku": "0000105", "description": "Anticucho de lomo fino", "activated": true }, { "id": "341611639", "sku": "0003341", "description": "Cusqueña doble malta", "activated": true }, { "id": "341611640", "sku": "0002991", "description": "Aji diablo", "activated": true } ] } ] }

This table describes the attributes that the JSON of your request requires:

Response ObjectObject Description
corridors
array of objects
Corridor list from products.
corridors.id
string
Corridor id.
corridors.name
string
Corridor name.
corridors.description
string
Corridor description.
corridors.storeId
string
Store Id from corridor.
corridors.integrationId
string
Integration id from store from corridor.
products
array of objects
Product List.
products.id
string
Product Id.
products.sku
string
Product SKU.
products.name
string
Product name.
products.description
string
Product description.
products.active
string
Product status.
products.isAvailable
string
Product availability.
products.corridorId
string
Corridor id from product.
toppingsCategories
array of objects
Category list.
toppingsCategories.id
string
Category id.
toppingsCategories.description
string
Category description.
toppingsCategories.productId
string
Product Id from category.
toppingsCategories.toppings
array of objects
Topping list.
toppingsCategories.toppings.id
string
Topping id.
toppingsCategories.toppings.sku
string
Topping SKU.
toppingsCategories.toppings.description
string
Topping description.
toppingsCategories.toppings.activated
string
Topping status.

Sample Response "Invalid credentials 401"

This is an example of the response "Invalid credentials 401":

{ "message": "Not a valid token" }

This table describes the objects contained in the response example:

ObjectDescription
message
string
Descriptive error message

Sample Response "App Client not found 404"

This is an example of the response "App Client not found 404":

{ "message": "Not found appClient of client id {clientId}" }

This table describes the objects contained in the response example:

ObjectDescription
message
string
Descriptive error message

Sample Response "integration Id not found Bad Request 400"

This is an example of the response "integration Id not found Bad Request 400":

{ "message": "IntegrationId {integrationId} not found" }

This table describes the objects contained in the response example:

ObjectDescription
message
string
Descriptive error message

GET store/schedule/{storeId}

Use this endpoint to get all your store's regular hours

Endpoint URL

Use this URL to call the endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

{ "storeScheduleDays": [ { "day": "mon", "storeSchedules": [ { "id": 1171828, "startsTime": "07:00:00", "endsTime": "09:00:00" } ] }, { "day": "tue", "storeSchedules": [ { "id": 21126084, "startsTime": "00:00:00", "endsTime": "05:00:00" } ] }, { "day": "sun", "storeSchedules": [ { "id": 1171833, "startsTime": "00:00:00", "endsTime": "13:00:00" } ] } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
day
string
Day identifier.
storeSchedules
list
Time Slots List.
storeSchedules.id
integer
Time slot ID.
startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
endsTime
string
End of time slot in 24-hour format HH:mm:ss.

GET store/schedule/{storeId}/holiday

Use this endpoint to get all the hours for holidays

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}/holiday

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/holiday

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/holiday"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

{ "storeSpecialScheduleDays": [ { "id": 270, "name": "Festivo", "month": 2, "day": 22, "cityId": null, "storeSchedules": [] }, { "id": 10342, "name": "Festivo", "month": 3, "day": 15, "cityId": null, "storeSchedules": [ { "id": 2334763, "startsTime": "00:00:00", "endsTime": "10:00:00" } ] } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
storeSpecialScheduleDays
list
Holidays List.
storeSpecialScheduleDays.id
integer
Holiday ID.
storeSpecialScheduleDays.name
string
Holiday's name.
storeSpecialScheduleDays.month
integer
Holiday's month.
storeSpecialScheduleDays.day
integer
Holiday's number.
storeSpecialScheduleDays.cityId
integer
City ID (Optional).
storeSpecialScheduleDays.storeSchedules
list
Time Slots List.
storeSpecialScheduleDays.storeSchedules.id
integer
Time slot ID.
storeSpecialScheduleDays.storeSchedules.startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
storeSpecialScheduleDays.storeSchedules.endsTime
string
End of time slot in 24-hour format HH:mm:ss.

GET store/schedule/{storeId}/special

Use this endpoint to get all the hours for your store's special days.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}/special

Sample Request

This is an example of an API request using this endpoint:

GET https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/special

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/special"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Response

This is an example of the response:

{ "storeSpecialScheduleDays": [ { "id": 270, "name": "Cumpleaños de Daniel", "month": 6, "day": 20, "cityId": null, "storeSchedules": [] }, { "id": 10342, "name": "Aniversario", "month": 3, "day": 15, "cityId": null, "storeSchedules": [ { "id": 2334761, "startsTime": "00:00:00", "endsTime": "10:00:00" } ] } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
storeSpecialScheduleDays
list
Special days list.
storeSpecialScheduleDays.id
integer
Special day's ID.
storeSpecialScheduleDays.name
string
Special day's name.
storeSpecialScheduleDays.month
integer
Special day's month.
storeSpecialScheduleDays.day
integer
Special day's number.
storeSpecialScheduleDays.cityId
integer
City ID (Optional).
storeSpecialScheduleDays.storeSchedules
list
Time Slots List.
storeSpecialScheduleDays.storeSchedules.id
integer
Time slot ID.
storeSpecialScheduleDays.storeSchedules.startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
storeSpecialScheduleDays.storeSchedules.endsTime
string
End of time slot in 24-hour format HH:mm:ss.

POST store/schedule/{storeId}

Use this endpoint to create a new time slot for your store

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}

Sample Request

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999

This is an example of the request:

{ "day": "mon", "starts_time": "08:00:00", "ends_time": "09:00:00" }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = " {\n" + " \"day\": \"mon\",\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " }\n" try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
day
string
requiredSchedule day. "mon, tue, wed, thu, fri, sat, sun"
starts_time
string
requiredStart of the time slot in 24-hour format HH:mm:ss.
ends_time
string
requiredEnd of time slot in 24-hour format HH:mm:ss.

Sample Response

This is an example of the response:

{ "day": "mon", "storeSchedules": [ { "id": 21126292, "starts_time": "08:00:00", "ends_time": "09:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
day
string
Day identifier.
storeSchedules
list
Time Slots List.
storeSchedules.id
integer
Time slot ID.
startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
endsTime
string
End of time slot in 24-hour format HH:mm:ss.

POST store/schedule/{storeId}/holiday/{holidayDayId}

Use this endpoint to create a new time slot for your store on a holiday

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}/holiday/{holidayDayId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: It is the store's identifier in Rappi.
  • {holidayDayId}: It is the holiday's identifier in Rappi.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/holiday/{holidayDayId}

This is an example of the request:

[ { "startsTime": "10:00:00", "endsTime": "12:00:00" } ]
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/holiday/{holidayDayId}"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "[\n" + " {\n" + " \"day\": \"mon\",\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " }\n" "]\n" try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
starts_time
string
requiredStart of the time slot in 24-hour format HH:mm:ss.
ends_time
string
requiredEnd of time slot in 24-hour format HH:mm:ss.

Note

It is possible to create multiple time slots at the same time on a holiday

Sample Response

This is an example of the response:

[ { "id": 21126293, "startsTime": "10:00:00", "endsTime": "12:00:00" }, { "id": 21126294, "startsTime": "13:00:00", "endsTime": "15:00:00" } ]

This table describes the objects contained in the response example:

Response ObjectObject Description
id
integer
Time slot ID.
startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
endsTime
string
End of time slot in 24-hour format HH:mm:ss.

POST store/schedule/{storeId}/special

Use this endpoint to create a special day for your store

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}/special

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/{storeId}/special

This is an example of the request:

{ "day": 10, "month": 10, "name": "Dia especial", "schedules": [ { "startsTime": "09:00:00", "endsTime": "12:00:00" }, { "startsTime": "15:00:00", "endsTime": "16:00:00" } ] }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/{storeId}/special"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"day\": \"10\",\n" + " \"month\": \"10\",\n" + " \"name\": \"Dia especial\",\n" + " \"schedules\": [ \n" + " {\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " }\n" + " ]\n" "}\n" try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
day
integer
requiredSpecial day's number.
month
integer
requiredSpecial day's month.
name
string
requiredSpecial day's name.
schedules
list
requiredTime Slots List.
schedules.starts_time
string
requiredStart of the time slot in 24-hour format HH:mm:ss.
schedules.ends_time
string
requiredEnd of time slot in 24-hour format HH:mm:ss.

Sample Response

This is an example of the response:

{ "name": "Dia especial", "month": 11, "day": 10, "storeSchedules": [ { "id": 21126295, "startsTime": "09:00:00", "endsTime": "12:00:00" }, { "id": 21126296, "startsTime": "15:00:00", "endsTime": "16:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectObject Description
name
string
Special day's name..
month
integer
Special day's month.
day
integer
Special day's number.
storeSchedules
list
Time Slots List.
storeSchedules.id
integer
Time slot ID
storeSchedules.startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
storeSchedules.endsTime
string
End of time slot in 24-hour format HH:mm:ss.

POST store/schedule/{storeId}/special/{specialDayId}

Use this endpoint to create a new time slot for your store on a special day

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}/special/{specialDayId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: It is the store's identifier in Rappi.
  • {specialDayId}: It is the special day's identifier in Rappi.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

POST https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/{storeId}/special/{specialDayId}

This is an example of the request:

[ { "startsTime": "08:00:00", "endsTime": "20:00:00" } ]
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/{storeId}/special/{specialDayId}"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "[\n" + " {\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + " }\n" "]\n" try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementDescription
starts_time
string
requiredStart of the time slot in 24-hour format HH:mm:ss.
ends_time
string
requiredEnd of time slot in 24-hour format HH:mm:ss.

Sample Response

This is an example of the response:

[ { "id": 21126293, "startsTime": "08:00:00", "endsTime": "20:00:00" } ]

This table describes the objects contained in the response example:

Response ObjectObject Description
id
integer
Time slot ID.
startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
endsTime
string
End of time slot in 24-hour format HH:mm:ss.

PUT store/schedule/{storeId}/{storeScheduleId}

Use this endpoint to update a time slot for your store

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}/{storeScheduleId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: It is the store's identifier in Rappi.
  • {storeScheduleId}: It is the time slot's identifier.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Request body requirementsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

PUT https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/{storeId}/{storeScheduleId}

This is an example of the request:

{ "startsTime": "07:00:00", "endsTime": "08:00:00" }
URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/{storeId}/{storeScheduleId}"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("PUT"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); connection.setDoOutput(true); String jsonInputString = "{\n" + " \"starts_time\": \"08:00:00\",\n" + " \"ends_time\": \"20:00:00\"\n" + "}\n" try (OutputStream os = connection.getOutputStream()) { byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); } try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());



This table describes the attributes that the JSON of your request requires:

AttributesRequirementObject Description
starts_time
string
requiredStart of the time slot in 24-hour format HH:mm:ss.
ends_time
string
requiredEnd of time slot in 24-hour format HH:mm:ss.

Sample Response

This is an example of the response:

{ "day": "mon", "storeSchedules": [ { "id": 1171828, "startsTime": "07:00:00", "endsTime": "08:00:00" } ] }

This table describes the objects contained in the response example:

Response ObjectDescription
day
string
Day identifier.
storeSchedules
list
Time Slots List.
startsTime
string
Start of the time slot in 24-hour format HH:mm:ss.
endsTime
string
End of time slot in 24-hour format HH:mm:ss.

DELETE store/schedule/{storeId}/{storeScheduleId}

Use this endpoint to delete a time slot from your store.

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/store/schedule/{storeId}/{storeScheduleId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: It is the store's identifier in Rappi.
  • {storeScheduleId}: It is the time slot's identifier.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

DELETE https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/{storeId}/{storeScheduleId}

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/5432"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("DELETE"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());




DELETE store/schedule/{storeId}/special/{specialDayId}

Use this endpoint to remove a special day from your store

Endpoint URL

Use this URL to make a request with this endpoint:

https://{COUNTRY_DOMAIN}/api/rest-ops-utils/DELETE store/schedule/{storeId}/special/{specialDayId}

  • {COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
  • {storeId}: It is the store's identifier in Rappi.
  • {specialDayId}: Special day's ID.

Endpoint Properties

This resource has the following properties:

Response formatsJSON
Authentication requirementsToken

Parameters

This endpoint does not permit additional parameters.

Status Codes

These are the possible status codes of the response for this endpoint:

Sample Request

This is an example of an API request using this endpoint:

DELETE https://microservices.dev.rappi.com/api/rest-ops-utils/DELETE store/schedule/{storeId}/special/{specialDayId}

This is an example of the request:

URL url = new URL("https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/special/5678"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("DELETE"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("x-authorization", "Bearer YOUR_TOKEN"); try (BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) { StringBuilder response = new StringBuilder(); String responseLine; while ((responseLine = br.readLine()) != null) { response.append(responseLine.trim()); } System.out.println("Response body: " + response.toString()); } System.out.println("Response Code : " + connection.getResponseCode());
var https = require("https"); var options = { method: "DELETE", hostname: "microservices.dev.rappi.com", path: "/api/rest-ops-utils/store/schedule/999/special/5678", headers: { "Content-Type": "application/json", "x-authorization": "Bearer YOUR_TOKEN", }, }; var req = https.request(options, function (res) { var chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function (chunk) { var body = Buffer.concat(chunks); console.log(body.toString()); }); res.on("error", function (error) { console.error(error); }); }); req.end();
import requests url = "https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/special/5678" payload = {} headers = { 'Content-Type': 'application/json', 'x-authorization': 'Bearer YOUR_TOKEN' } response = requests.request("DELETE", url, headers=headers, data=payload) print(response.text.encode('utf8'))
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://microservices.dev.rappi.com/api/rest-ops-utils/store/schedule/999/special/5678" method := "DELETE" client := &http.Client{} req, err := http.NewRequest(method, url, nil) if err != nil { fmt.Println(err) } req.Header.Add("Content-Type", "application/json") req.Header.Add("x-authorization", "Bearer YOUR_TOKEN") res, err := client.Do(req) defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) fmt.Println(string(body)) }