Orders
The Orders resource enables you to interact with the orders of your stores.
The following table describes the different contents of the Orders resource:
GET orders
Use this endpoint to return a collection of all the new orders for the stores of the authenticating ally.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/orders
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
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://api.dev.rappi.com/restaurants/orders/v1/orders
this is an example of the request:
URL url = new URL("https://api.dev.rappi.com/restaurants/orders/v1/orders"); 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:
[ { "order_detail": { "order_id": "string", "delivery_operation_type": "string", "cooking_time": 0, "min_cooking_time": 0, "max_cooking_time": 0, "created_at": "string", "delivery_method": "string", "payment_method": "string", "billing_information": { "billing_type": "string", "name": "string", "address": "string", "phone": "string", "email": "string", "document_type": "string", "document_number": "string" }, "delivery_information": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "totals": { "total_products": 0, "total_discounts": 0, "total_products_with_discount": 0, "total_products_without_discount": 0, "total_other_discounts": 0, "total_order": 0, "total_to_pay": 0, "discount_by_support": 0, "totals_discount_by_partner": 0, "charges": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 }, "other_totals": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 } }, "items": [ { "sku": "string", "id": "string", "name": "string", "type": "string", "comments": "string", "unit_price_with_discount": 0, "unit_price_without_discount": 0, "price": 0, "percentage_discount": 0, "quantity": 0, "subitems": ["string"] } ], "delivery_discount": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 }, "discounts": [ { "value": 0, "description": "string", "tittle": "string", "product_id": 0, "type": "string", "raw_value": 0, "value_type": "string", "max_value": 0, "includes_toppings": true, "percentage_by_rappi": 0, "percentage_by_partners": 0, "amount_by_rappi": 0, "amount_by_partner": 0, "discount_product_units": 0, "discount_product_unit_value": 0, "sku": "string" } ] }, "customer": { "first_name": "string", "last_name": "string", "phone_number": "string", "user_type": "string", "email": "string", "document_type": "string", "document_number": "string" }, "store": { "internal_id": "string", "external_id": "string", "name": "string" } } ]
This table describes the objects contained in the response example:
| Response Object | Object Description |
|---|---|
order_detailarray of objects | Properties of the details of the order. |
order_detail.order_idstring | Order identifier. |
order_detail.develivey_operation_typestring | Identifier for the order type: turbo type or regular type. |
order_detail.coooking_timeinteger | Cooking time estimated for the preparation of the order. |
order_detail.min_cooking_timeinteger | Minimum cooking time in minutes set for this order. |
order_detail.max_cooking_timeinteger | Maximum cooking time in minutes set for this order. |
order_detail.created_atstring | Creation date of the order. |
order_detail.delivery_methodstring, enumerable | Delivery method set for this order. Options available: delivery,marketplace, pickup. |
order_detail.payment_methodstring, enumerable | Payment method set for this order. Options available: rappi_pay, cc, cash, paypal, edenred, webpay, masterpass, dc, pos_terminal, elo, sodexo, vale_r, ticket_r, alelo, visa_checkout,google_pay, apple_pay, rappicorp, PSE, PIX, unknown. (You have to consider, Rappi frequently includes new payment methods, so this list may vary through time and isn't needs to be validated.) |
order_detail.delivery_informationobject | Properties of the delivery information. |
order_detail.delivery_information.citystring | City of the delivery address. |
order_detail.delivery_information.complete_addressstring | Delivery address with all the fields |
order_detail.delivery_information.street_numberstring | Number of the street. |
order_detail.delivery_information.neighborhoodstring | Neighborhood of the address. |
order_detail.delivery_information.complementstring | Additional information of the address. |
order_detail.delivery_information.postal_codestring | Postal code of the address |
order_detail.delivery_information.street_namestring | Street name of the address. |
order_detail.billing_informationarray of objects | Properties of the billing information. |
order_detail.billing_information.addressstring | Delivery address set for this order. |
order_detail.billing_information.billing_typestring | Billing type set for this order. |
order_detail.billing_information.document_numberstring | Document number of the customer. |
order_detail.billing_information.document_typestring | Document type of the customer. |
order_detail.billing_information.emailstring | Email set to receive billing information. |
order_detail.billing_information.namestring | Name set for the billing information. |
order_detail.billing_information.phonestring | Phone number set for the billing information. |
order_detail.totalsarray of objects | Properties of the totals of the order. |
order_detail.totals.total_productsinteger | Total products without discounts. |
order_detail.totals.total_discountsinteger | Total products without discount in the order. |
order_detail.totals.total_orderinteger | The total amount that the restaurant receives. When the delivery method is marketplace this field includes tip and delivery fee.For other delivery methods, this field contains only the total value of all products. In all cases, this field includes the discounts assumed by the restaurant. |
order_detail.totals.total_to_payinteger | Total that the user pays in cash to the courier. Only applies when the delivery method is marketplace or pickup, and the payment method is cash. |
order_detail.totals.discount_by_supportinteger | Discount applied to the customer by the Rappi support team. |
order_detail.totals.chargesarray of objects | Properties of the order additional charges. |
order_detail.totals.charges.shippinginteger | Shipping charges total. |
order_detail.totals.charges.service_feeinteger | Rappi service fee charges |
order_detail.totals.other_totalsarray of objects | Other charges included in this order. |
order_detail.totals.other_totals.tipinteger | Tip for the courier. |
order_detail.totals.other_totals.total_rappi_payinteger | Total paid using Rappi Pay. |
order_detail.totals.othet_totals.total_rappi_creditsinteger | Total paid using Rappi Credits. |
order_detail.itemsarray of objects | Properties of the items the order contains. |
order_detail.items.skustring | SKU for the item in the order. The ally grants their own SKU to the item. |
order_detail.items.idstring | Identifier of the item in the order. |
order_detail.items.namestring | Name of the item in the order. |
order_detail.items.typestring, enumerable | Type of the item. Options available: product, or topping. |
order_detail.items.commentsarray | User comments for the items in the order. |
order_detail.items.priceinteger | Unit price for the item without the discount. |
order_detail.items.percentage_discountinteger | Discount percentage of the item in the order. |
order_detail.items.quantityinteger | Quantity specified for this item in the order. |
order_detail.items.subitemsarray of objects | Properties of subitems in the order. |
order_detail.items.subitems.skustring | SKU for the subitem in the menu. The ally grants their own SKU to the item. |
order_detail.items.subitems.idstring | The identifier that Rappi grants the item. |
order_detail.items.subitems.namestring | Name of the subitem in the order. |
order_detail.items.subitems.typestring, enumerable | Type of the subitem in the order. Options available: product, or topping. |
order_detail.items.subitems.priceinteger | Unit price for the subitem without the discount. |
order_detail.items.subitems.pencentage_discountinteger | Discount percentage of the subitem in the order. |
order_detail.items.subitems.quantityinteger | Quantity specified for this subitem in the order. |
order_detail.delivery_discountinteger | Properties of the discounts in the delivery of the order. |
order_detail.delivery_discount.total_percentage_discountinteger | Discount percentage in the delivery of the order. |
order_detail.delivery_discount.total_value_discountinteger | Total amount of the delivery discount. |
order_detail.customerarray of objects | Properties of the Rappi user that places the order. Only sent when delivery method is marketplace or if you request Rappi to receive this data. |
order_detail.customer.first_namestring | First name of the Rappi user that places the order. |
order_detail.customer.last_namestring | Last name of the Rappi user that places the order. |
order_detail.customer.phone_numberstring | Phone number of the Rappi user that places the order. |
order_detail.customer.document_numberstring | Document number of the Rappi user that places the order. |
order_detail.customer.user_typestring | If the user is VIP the value is USER_VIP. For other users this field is not sent. |
order_detail.storearray of objects | Properties of the store that prepares the order. |
order_detail.store.internal_idstring | Internal identifier that Rappi grants the store. |
order_detail.store.external_idstring | Integration identifier of the store. |
order_detail.store.namestring | Name of the store that prepares the order. |
order_detail.discounts.valueinteger | Discount value in currency. |
order_detail.discounts.descriptionstring | Descriptive message explaining the discount. |
order_detail.discounts.titlestring | Discount name. |
order_detail.discounts.product_idinteger | Product ID if the discount applies product. |
order_detail.discounts.skustring | SKU of the product if the discount applies product. |
order_detail.discounts.typestring | Indicates the discount type. |
order_detail.discounts.raw_valueinteger | The discount value can represent a percentage or a currency value depending on the type_value. |
order_detail.discounts.value_typestring, enumerable | The value type of the discount. Available options: value, percentage. |
order_detail.discounts.max_valueinteger | Maximum value in currency to be discounted. |
order_detail.discounts.includes_toppingsboolean | Indicates if the discount is subtracted from the product total with toppings or not. |
order_detail.discounts.percentage_by_rappiinteger | The percentage of the discount assumed by Rappi. |
order_detail.discounts.percentage_by_partnersinteger | The percentage of the discount assumed by the partner. |
order_detail.discounts.amount_by_rappiinteger | Value of the discount in currency assumed by Rappi. |
order_detail.discounts.amount_by_partnerinteger | Value of the discount in currency assumed by the partner. |
order_detail.discounts.discount_product_unitsinteger | Number of products to which the discount was applied. |
order_detail.discounts.discount_product_unit_valueinteger | Discount value per product unit. |
GET stores/{storeId}/orders
Use this endpoint to return a collection of all the new orders for the specific storeId of the authenticating ally.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/stores/{storeId}/orders
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
{storeId}: This is the identifier of the store.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
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://api.dev.rappi.com/restaurants/orders/v1/stores/205634/orders
this is an example of the request:
final Integer storeId = 205634; URL url = new URL("https://api.dev.rappi.com/restaurants/orders/v1/stores/%s/orders", storeId); 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:
[ { "order_detail": { "order_id": "string", "delivery_operation_type": "string", "cooking_time": 0, "min_cooking_time": 0, "max_cooking_time": 0, "created_at": "string", "delivery_method": "string", "payment_method": "string", "billing_information": { "billing_type": "string", "name": "string", "address": "string", "phone": "string", "email": "string", "document_type": "string", "document_number": "string" }, "delivery_information": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "totals": { "total_products": 0, "total_discounts": 0, "total_products_with_discount": 0, "total_products_without_discount": 0, "total_other_discounts": 0, "total_order": 0, "total_to_pay": 0, "discount_by_support": 0, "totals_discount_by_partner": 0, "charges": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 }, "other_totals": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 } }, "items": [ { "sku": "string", "id": "string", "name": "string", "type": "string", "comments": "string", "unit_price_with_discount": 0, "unit_price_without_discount": 0, "price": 0, "percentage_discount": 0, "quantity": 0, "subitems": ["string"] } ], "delivery_discount": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 }, "discounts": [ { "value": 0, "description": "string", "tittle": "string", "product_id": 0, "type": "string", "raw_value": 0, "value_type": "string", "max_value": 0, "includes_toppings": true, "percentage_by_rappi": 0, "percentage_by_partners": 0, "amount_by_rappi": 0, "amount_by_partner": 0, "discount_product_units": 0, "discount_product_unit_value": 0, "sku": "string" } ] }, "customer": { "first_name": "string", "last_name": "string", "phone_number": "string", "user_type": "string", "email": "string", "document_type": "string", "document_number": "string" }, "store": { "internal_id": "string", "external_id": "string", "name": "string" } } ]
This table describes the objects contained in the response example:
| Response Object | Object Description |
|---|---|
order_detailarray of objects | Properties of the details of the order. |
order_detail.order_idstring | Order identifier. |
order_detail.develivey_operation_typestring | Identifier for the order type: turbo type or regular type. |
order_detail.coooking_timeinteger | Cooking time estimated for the preparation of the order. |
order_detail.min_cooking_timeinteger | Minimum cooking time in minutes set for this order. |
order_detail.max_cooking_timeinteger | Maximum cooking time in minutes set for this order. |
order_detail.created_atstring | Creation date of the order. |
order_detail.delivery_methodstring, enumerable | Delivery method set for this order. Options available: delivery,marketplace, pickup. |
order_detail.payment_methodstring, enumerable | Payment method set for this order. Options available: rappi_pay, cc, cash, paypal, edenred, webpay, masterpass, dc, pos_terminal, elo, sodexo, vale_r, ticket_r, alelo, visa_checkout,google_pay, apple_pay, rappicorp, PSE, PIX, unknown. (You have to consider, Rappi frequently includes new payment methods, so this list may vary through time and isn't needs to be validated.) |
order_detail.delivery_informationobject | Properties of the delivery information. |
order_detail.delivery_information.citystring | City of the delivery address. |
order_detail.delivery_information.complete_addressstring | Delivery address with all the fields |
order_detail.delivery_information.street_numberstring | Number of the street. |
order_detail.delivery_information.neighborhoodstring | Neighborhood of the address. |
order_detail.delivery_information.complementstring | Additional information of the address. |
order_detail.delivery_information.postal_codestring | Postal code of the address |
order_detail.delivery_information.street_namestring | Street name of the address. |
order_detail.billing_informationarray of objects | Properties of the billing information. |
order_detail.billing_information.addressstring | Delivery address set for this order. |
order_detail.billing_information.billing_typestring | Billing type set for this order. |
order_detail.billing_information.document_numberstring | Document number of the customer. |
order_detail.billing_information.document_typestring | Document type of the customer. |
order_detail.billing_information.emailstring | Email set to receive billing information. |
order_detail.billing_information.namestring | Name set for the billing information. |
order_detail.billing_information.phonestring | Phone number set for the billing information. |
order_detail.totalsarray of objects | Properties of the totals of the order. |
order_detail.totals.total_productsinteger | Total products without discounts. |
order_detail.totals.total_discountsinteger | Total products without discount in the order. |
order_detail.totals.total_orderinteger | The total amount that the restaurant receives. When the delivery method is marketplace this field includes tip and delivery fee.For other delivery methods, this field contains only the total value of all products. In all cases, this field includes the discounts assumed by the restaurant. |
order_detail.totals.total_to_payinteger | Total that the user pays in cash to the courier. Only applies when the delivery method is marketplace or pickup, and the payment method is cash. |
order_detail.totals.discount_by_supportinteger | Discount applied to the customer by the Rappi support team. |
order_detail.totals.chargesarray of objects | Properties of the order additional charges. |
order_detail.totals.charges.shippinginteger | Shipping charges total. |
order_detail.totals.charges.service_feeinteger | Rappi service fee charges |
order_detail.totals.other_totalsarray of objects | Other charges included in this order. |
order_detail.totals.other_totals.tipinteger | Tip for the courier. |
order_detail.totals.other_totals.total_rappi_payinteger | Total paid using Rappi Pay. |
order_detail.totals.othet_totals.total_rappi_creditsinteger | Total paid using Rappi Credits. |
order_detail.itemsarray of objects | Properties of the items the order contains. |
order_detail.items.skustring | SKU for the item in the order. The ally grants their own SKU to the item. |
order_detail.items.idstring | Identifier of the item in the order. |
order_detail.items.namestring | Name of the item in the order. |
order_detail.items.typestring, enumerable | Type of the item. Options available: product, or topping. |
order_detail.items.commentsarray | User comments for the items in the order. |
order_detail.items.priceinteger | Unit price for the item without the discount. |
order_detail.items.percentage_discountinteger | Discount percentage of the item in the order. |
order_detail.items.quantityinteger | Quantity specified for this item in the order. |
order_detail.items.subitemsarray of objects | Properties of subitems in the order. |
order_detail.items.subitems.skustring | SKU for the subitem in the menu. The ally grants their own SKU to the item. |
order_detail.items.subitems.idstring | The identifier that Rappi grants the item. |
order_detail.items.subitems.namestring | Name of the subitem in the order. |
order_detail.items.subitems.typestring, enumerable | Type of the subitem in the order. Options available: product, or topping. |
order_detail.items.subitems.priceinteger | Unit price for the subitem without the discount. |
order_detail.items.subitems.pencentage_discountinteger | Discount percentage of the subitem in the order. |
order_detail.items.subitems.quantityinteger | Quantity specified for this subitem in the order. |
order_detail.delivery_discountinteger | Properties of the discounts in the delivery of the order. |
order_detail.delivery_discount.total_percentage_discountinteger | Discount percentage in the delivery of the order. |
order_detail.delivery_discount.total_value_discountinteger | Total amount of the delivery discount. |
order_detail.customerarray of objects | Properties of the Rappi user that places the order. Only sent when delivery method is marketplace or if you request Rappi to receive this data. |
order_detail.customer.first_namestring | First name of the Rappi user that places the order. |
order_detail.customer.last_namestring | Last name of the Rappi user that places the order. |
order_detail.customer.phone_numberstring | Phone number of the Rappi user that places the order. |
order_detail.customer.document_numberstring | Document number of the Rappi user that places the order. |
order_detail.customer.user_typestring | If the user is VIP the value is USER_VIP. For other users this field is not sent. |
order_detail.storearray of objects | Properties of the store that prepares the order. |
order_detail.store.internal_idstring | Internal identifier that Rappi grants the store. |
order_detail.store.external_idstring | Integration identifier of the store. |
order_detail.store.namestring | Name of the store that prepares the order. |
order_detail.discounts.valueinteger | Discount value in currency. |
order_detail.discounts.descriptionstring | Descriptive message explaining the discount. |
order_detail.discounts.titlestring | Discount name. |
order_detail.discounts.product_idinteger | Product ID if the discount applies product. |
order_detail.discounts.skustring | SKU of the product if the discount applies product. |
order_detail.discounts.typestring | Indicates the discount type. |
order_detail.discounts.raw_valueinteger | The discount value can represent a percentage or a currency value depending on the type_value. |
order_detail.discounts.value_typestring, enumerable | The value type of the discount. Available options: value, percentage. |
order_detail.discounts.max_valueinteger | Maximum value in currency to be discounted. |
order_detail.discounts.includes_toppingsboolean | Indicates if the discount is subtracted from the product total with toppings or not. |
order_detail.discounts.percentage_by_rappiinteger | The percentage of the discount assumed by Rappi. |
order_detail.discounts.percentage_by_partnersinteger | The percentage of the discount assumed by the partner. |
order_detail.discounts.amount_by_rappiinteger | Value of the discount in currency assumed by Rappi. |
order_detail.discounts.amount_by_partnerinteger | Value of the discount in currency assumed by the partner. |
order_detail.discounts.discount_product_unitsinteger | Number of products to which the discount was applied. |
order_detail.discounts.discount_product_unit_valueinteger | Discount value per product unit. |
GET orders/status/sent
Use this endpoint to return a collection of all the new orders status SENT for the stores of the authenticating ally.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/orders/status/sent
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
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://api.dev.rappi.com/restaurants/orders/v1/orders/status/sent
this is an example of the request:
URL url = new URL("https://api.dev.rappi.com/restaurants/orders/v1/orders/status/sent"); 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:
[ { "order_detail": { "order_id": "string", "delivery_operation_type": "string", "cooking_time": 0, "min_cooking_time": 0, "max_cooking_time": 0, "created_at": "string", "delivery_method": "string", "payment_method": "string", "billing_information": { "billing_type": "string", "name": "string", "address": "string", "phone": "string", "email": "string", "document_type": "string", "document_number": "string" }, "delivery_information": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "totals": { "total_products": 0, "total_discounts": 0, "total_products_with_discount": 0, "total_products_without_discount": 0, "total_other_discounts": 0, "total_order": 0, "total_to_pay": 0, "discount_by_support": 0, "totals_discount_by_partner": 0, "charges": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 }, "other_totals": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 } }, "items": [ { "sku": "string", "id": "string", "name": "string", "type": "string", "comments": "string", "unit_price_with_discount": 0, "unit_price_without_discount": 0, "price": 0, "percentage_discount": 0, "quantity": 0, "subitems": ["string"] } ], "delivery_discount": { "additionalProp1": 0, "additionalProp2": 0, "additionalProp3": 0 }, "discounts": [ { "value": 0, "description": "string", "tittle": "string", "product_id": 0, "type": "string", "raw_value": 0, "value_type": "string", "max_value": 0, "includes_toppings": true, "percentage_by_rappi": 0, "percentage_by_partners": 0, "amount_by_rappi": 0, "amount_by_partner": 0, "discount_product_units": 0, "discount_product_unit_value": 0, "sku": "string" } ] }, "customer": { "first_name": "string", "last_name": "string", "phone_number": "string", "user_type": "string", "email": "string", "document_type": "string", "document_number": "string" }, "store": { "internal_id": "string", "external_id": "string", "name": "string" } } ]
This table describes the objects contained in the response example:
| Response Object | Object Description |
|---|---|
order_detailarray of objects | Properties of the details of the order. |
order_detail.order_idstring | Order identifier. |
order_detail.develivey_operation_typestring | Identifier for the order type: turbo type or regular type. |
order_detail.coooking_timeinteger | Cooking time estimated for the preparation of the order. |
order_detail.min_cooking_timeinteger | Minimum cooking time in minutes set for this order. |
order_detail.max_cooking_timeinteger | Maximum cooking time in minutes set for this order. |
order_detail.created_atstring | Creation date of the order. |
order_detail.delivery_methodstring, enumerable | Delivery method set for this order. Options available: delivery,marketplace, pickup. |
order_detail.payment_methodstring, enumerable | Payment method set for this order. Options available: rappi_pay, cc, cash, paypal, edenred, webpay, masterpass, dc, pos_terminal, elo, sodexo, vale_r, ticket_r, alelo, visa_checkout,google_pay, apple_pay, rappicorp, PSE, PIX, unknown. |
order_detail.delivery_informationobject | Properties of the delivery information. |
order_detail.delivery_information.citystring | City of the delivery address. |
order_detail.delivery_information.complete_addressstring | Delivery address with all the fields |
order_detail.delivery_information.street_numberstring | Number of the street. |
order_detail.delivery_information.neighborhoodstring | Neighborhood of the address. |
order_detail.delivery_information.complementstring | Additional information of the address. |
order_detail.delivery_information.postal_codestring | Postal code of the address |
order_detail.delivery_information.street_namestring | Street name of the address. |
order_detail.billing_informationarray of objects | Properties of the billing information. |
order_detail.billing_information.addressstring | Delivery address set for this order. |
order_detail.billing_information.billing_typestring | Billing type set for this order. |
order_detail.billing_information.document_numberstring | Document number of the customer. |
order_detail.billing_information.document_typestring | Document type of the customer. |
order_detail.billing_information.emailstring | Email set to receive billing information. |
order_detail.billing_information.namestring | Name set for the billing information. |
order_detail.billing_information.phonestring | Phone number set for the billing information. |
order_detail.totalsarray of objects | Properties of the totals of the order. |
order_detail.totals.total_productsinteger | Total products without discounts. |
order_detail.totals.total_discountsinteger | Total products without discount in the order. |
order_detail.totals.total_orderinteger | The total amount that the restaurant receives. When the delivery method is marketplace this field includes tip and delivery fee.For other delivery methods, this field contains only the total value of all products. In all cases, this field includes the discounts assumed by the restaurant. |
order_detail.totals.total_to_payinteger | Total that the user pays in cash to the courier. Only applies when the delivery method is marketplace or pickup, and the payment method is cash. |
order_detail.totals.discount_by_supportinteger | Discount applied to the customer by the Rappi support team. |
order_detail.totals.chargesarray of objects | Properties of the order additional charges. |
order_detail.totals.charges.shippinginteger | Shipping charges total. |
order_detail.totals.charges.service_feeinteger | Rappi service fee charges |
order_detail.totals.other_totalsarray of objects | Other charges included in this order. |
order_detail.totals.other_totals.tipinteger | Tip for the courier. |
order_detail.totals.other_totals.total_rappi_payinteger | Total paid using Rappi Pay. |
order_detail.totals.othet_totals.total_rappi_creditsinteger | Total paid using Rappi Credits. |
order_detail.itemsarray of objects | Properties of the items the order contains. |
order_detail.items.skustring | SKU for the item in the order. The ally grants their own SKU to the item. |
order_detail.items.idstring | Identifier of the item in the order. |
order_detail.items.namestring | Name of the item in the order. |
order_detail.items.typestring, enumerable | Type of the item. Options available: product, or topping. |
order_detail.items.commentsarray | User comments for the items in the order. |
order_detail.items.priceinteger | Unit price for the item without the discount. |
order_detail.items.percentage_discountinteger | Discount percentage of the item in the order. |
order_detail.items.quantityinteger | Quantity specified for this item in the order. |
order_detail.items.subitemsarray of objects | Properties of subitems in the order. |
order_detail.items.subitems.skustring | SKU for the subitem in the menu. The ally grants their own SKU to the item. |
order_detail.items.subitems.idstring | The identifier that Rappi grants the item. |
order_detail.items.subitems.namestring | Name of the subitem in the order. |
order_detail.items.subitems.typestring, enumerable | Type of the subitem in the order. Options available: product, or topping. |
order_detail.items.subitems.priceinteger | Unit price for the subitem without the discount. |
order_detail.items.subitems.pencentage_discountinteger | Discount percentage of the subitem in the order. |
order_detail.items.subitems.quantityinteger | Quantity specified for this subitem in the order. |
order_detail.delivery_discountinteger | Properties of the discounts in the delivery of the order. |
order_detail.delivery_discount.total_percentage_discountinteger | Discount percentage in the delivery of the order. |
order_detail.delivery_discount.total_value_discountinteger | Total amount of the delivery discount. |
order_detail.customerarray of objects | Properties of the Rappi user that places the order. Only sent when delivery method is marketplace or if you request Rappi to receive this data. |
order_detail.customer.first_namestring | First name of the Rappi user that places the order. |
order_detail.customer.last_namestring | Last name of the Rappi user that places the order. |
order_detail.customer.phone_numberstring | Phone number of the Rappi user that places the order. |
order_detail.customer.document_numberstring | Document number of the Rappi user that places the order. |
order_detail.customer.user_typestring | If the user is VIP the value is USER_VIP. For other users this field is not sent. |
order_detail.storearray of objects | Properties of the store that prepares the order. |
order_detail.store.internal_idstring | Internal identifier that Rappi grants the store. |
order_detail.store.external_idstring | Integration identifier of the store. |
order_detail.store.namestring | Name of the store that prepares the order. |
order_detail.discounts.valueinteger | Discount value in currency. |
order_detail.discounts.descriptionstring | Descriptive message explaining the discount. |
order_detail.discounts.titlestring | Discount name. |
order_detail.discounts.product_idinteger | Product ID if the discount applies product. |
order_detail.discounts.skustring | SKU of the product if the discount applies product. |
order_detail.discounts.typestring | Indicates the discount type. |
order_detail.discounts.raw_valueinteger | The discount value can represent a percentage or a currency value depending on the type_value. |
order_detail.discounts.value_typestring, enumerable | The value type of the discount. Available options: value, percentage. |
order_detail.discounts.max_valueinteger | Maximum value in currency to be discounted. |
order_detail.discounts.includes_toppingsboolean | Indicates if the discount is subtracted from the product total with toppings or not. |
order_detail.discounts.percentage_by_rappiinteger | The percentage of the discount assumed by Rappi. |
order_detail.discounts.percentage_by_partnersinteger | The percentage of the discount assumed by the partner. |
order_detail.discounts.amount_by_rappiinteger | Value of the discount in currency assumed by Rappi. |
order_detail.discounts.amount_by_partnerinteger | Value of the discount in currency assumed by the partner. |
order_detail.discounts.discount_product_unitsinteger | Number of products to which the discount was applied. |
order_detail.discounts.discount_product_unit_valueinteger | Discount value per product unit. |
PUT stores/{storeId}/orders/{orderId}/take
Use this endpoint to take an order, so the store commences preparing it.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/stores/{storeId}/orders/{orderId}/take
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
{storeId}: This is the identifier of the store.
{orderId}: This is the identifier of the order.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
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://api.dev.rappi.com/restaurants/orders/v1/stores/392625/orders/203654/take
this is an example of the request:
final Integer storeId = 392625; final Integer orderId = 203654; URL url = new URL(String.format("https://api.dev.rappi.com/restaurants/orders/v1/stores/%s/orders/%s/take", storeId, orderId)); 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); System.out.println("Response Code : " + connection.getResponseCode());
Sample Response
This endpoint returns a status response code only.
PUT stores/{storeId}/orders/{orderId}/cooking_time/{cookingTime}/take
Use this endpoint to take an order, so the store commences preparing it.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/stores/{storeId}/orders/{orderId}/cooking_time/{cookingTime}/take
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
{storeId}: This is the identifier of the store.
{orderId}: This is the identifier of the order.
{cookingTime}: This is the new cooking time of the order.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
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://api.dev.rappi.com/restaurants/orders/v1/stores/205643/orders/392625/cooking_time/20/take
this is an example of the request:
final Integer storeId = 205643; final Integer orderId = 392625; final Integer cookingTime = 20; URL url = new URL(String.format("https://api.dev.rappi.com/restaurants/orders/v1/stores/%s/orders/%s/cooking_time/%s/take", storeId, orderId, cookingTime)); 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); System.out.println("Response Code : " + connection.getResponseCode());
Sample Response
This endpoint returns a status response code only.
GET stores/{storeId}/orders/{orderId}/handoff
Use this endpoint to receive a check out code and be able to ask the RT to confirm the shipment.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/stores/{storeId}/orders/{orderId}/handoff
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
{storeId}: This is the identifier of the store.
{orderId}: This is the identifier of the order.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
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://api.dev.rappi.com/restaurants/orders/v1/stores/392625/orders/203654/handoff
This is an example of the request:
final Integer storeId = 392625; final Integer orderId = 203654; URL url = new URL(String.format("https://api.dev.rappi.com/restaurants/orders/v1/stores/%s/orders/%s/handoff", storeId, orderId)); 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"); connection.setDoOutput(true); System.out.println("Response Code : " + connection.getResponseCode());
Sample Response
This is an example of the response:
{ "order_id": 2150145112, "store_id": 900126924, "product_confirmation_code": "3756", "qr_code": "iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAALRklEQVR4Xu2SQZJjOxLD+v6X/rOHsGAoxLRrnFhWgGT6lf79tywF/vEPy/KCfVhLhX1YS4V9WEuFfVhLhX1YS4V9WEuFfVhLhX1YS4V9WEuFfVhLhX1YS4V9WEuFfVhLhX1YS4V9WEuFfVhLhX1YS4V9WEu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jXdOlfG9Axrv4JJt0TCYyWCLwYylaLxzqozvHdB4B5dsi4bBTAZbDGYsReOdU2V874DGO7hkWzQMZjLYYjBjKRrvnCrjewc03sEl26JhMJPBFoMZS9F451QZ3/sovMbuoWHOCTPv4FIGW8aZvoAfYBZeY/fQMOeEmXdwKYMt40xfwA8wC6+xe2iYc8LMO7iUwZZxpi/gB5iF19g9NMw5YeYdXMpgyzjTF/ADzMJr7B4a5pww8w4uZbBlnOkL+AFm4TV2Dw1zTph5B5cy2DLO5y9Y/i/Zh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVTYh7VU2Ie1VNiHtVT4H95l1FLTauXpAAAAAElFTkSuQmCC" }
This table describes the objects contained in the response example:
| Response Object | Object Description |
|---|---|
order_idinteger | Order identifier. |
store_idinteger | Internal identifier that Rappi grants the store. |
product_confirmation_codestring | Confirmation code associated with a specific order. |
qr_codestring | QR code. |
POST stores/{storeId}/orders/{orderId}/bag-drink-confirmation
Use this endpoint to confirm the number of bags and if there are drinks outside the bags in the order.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/stores/{storeId}/orders/{orderId}/bag-drink-confirmation
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
{storeId}: This is the identifier of the store.
{orderId}: This is the identifier of the order.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
This table describes the attributes that the JSON body of your call requires:
| Attribute | Required | Description |
|---|---|---|
number_of_bagsinteger | required | Number of bags in the order. |
has_drinks_outside_bagboolean | required | true if the order has drinks outside the bags, otherwise false. |
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://api.dev.rappi.com/restaurants/orders/v1/stores/392625/orders/203654/bag-drink-confirmation
This is an example of the request:
This is an example of the content of the body of the request:
{ "number_of_bags": 2, "has_drinks_outside_bag": true }
final Integer storeId = 392625; final Integer orderId = 203654; URL url = new URL(String.format("https://api.dev.rappi.com/restaurants/orders/v1/stores/%s/orders/%s/bag-drink-confirmation", storeId, orderId)); 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); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("{\n \"number_of_bags\": 2,\n \"has_drinks_outside_bag\": true\n}"); writer.flush(); writer.close(); httpConn.getOutputStream().close(); System.out.println("Response Code : " + connection.getResponseCode());
Sample Response
This is an example of the response:
{ "order_id": 2150145441, "store_id": 900103110, "number_of_bags": 2, "has_drinks_outside_bag": true, "last_updated_by": "store" }
This table describes the objects contained in the response example:
| Response Object | Object Description |
|---|---|
order_idinteger | Internal identifier assigned by Rappi to the store. |
store_idinteger | Internal identifier assigned by Rappi to the store. |
number_of_bagsinteger | Number of bags. |
has_drinks_outside_bagboolean | true if the order has drinks outside the bags, otherwise false. |
last_updated_bystring | Entity that made the confirmation, can be “store” for the store or “storekeeper” for the delivery person. |
POST orders/{orderId}/ready-for-pickup
Use this endpoint to notify the courier in the Rappi application that the order is ready for pickup.
When the first request is made, if no courier is assigned, the system will speed up the assignment process; if a courier is already assigned, a notification will be sent to them, and the order status will change to READY_FOR_PICKUP. On the second request, if a courier is already assigned, a new notification will be sent to the assigned courier.
Endpoint URL
Use this URL to make a request with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/stores/{storeId}/orders/{orderId}/ready-for-pickup
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.{orderId}: This is the identifier of your order.
Endpoint Properties
This resource has the following properties:
| Response formats | JSON |
| Authentication requirements | Token |
Parameters
This endpoint does not permit additional parameters.
Important
To prevent misuse of the endpoint, we reserve the right to revoke access to clients who use it improperly. Therefore, after three requests, the system will stop executing additional actions, and any further attempts will be considered improper use of the endpoint.
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://api.dev.rappi.com/restaurants/orders/v1/stores/9343463/orders/392625/ready-for-pickup
This is an example of the request:
final Integer orderId = 392625; final Integer storeId = 9343463; URL url = new URL(String.format("https://api.dev.rappi.com/restaurants/orders/v1/stores/%s/orders/%s/ready-for-pickup", storeId, orderId)); 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"); System.out.println("Response Code : " + connection.getResponseCode());
Sample Response
This endpoint returns a status response code only.
PUT stores/{storeId}/orders/{orderId}/cancel_type/{cancelType}/reject
Use this endpoint to reject an order.
Endpoint URL
Use this URL to make a call with this endpoint:
https://{COUNTRY_DOMAIN}/restaurants/orders/v1/stores/{storeId}/orders/{orderId}/cancel_type/{cancelType}/reject
{COUNTRY_DOMAIN}: This is your Rappi Country Domain. See the list of Country Domains.
{storeId}: This is the store identifier.
{orderId}: This is the order identifier.
{cancelType}: This is the cancellation type identifier.
Endpoint Properties
This resource has the following properties:
| Response format | JSON |
| Body requirements for calls | JSON |
| Authentication requirements | Token |
Response Codes
These are the possible response codes on this endpoint:
Call Example
This is an example of an API call using this endpoint:
PUT https://api.dev.rappi.com/restaurants/orders/v1/stores/392625/orders/203654/cancel_type/STORE_CLOSED/reject
This is an example of the call:
{ "description": "ORDER RECEIVED OUTSIDE OF HOURS", "additional_info": {} }
| Atributos | Requerido | Descripción |
|---|---|---|
descriptionstring | required | Error message |
additional_infoarray of objects | required | Extra information about the cancellation, its content depends on the type of cancellation. |
Response Example
This endpoint only returns a status code for a successful result.