Rappi

Rappi

  • Category: Shopping


A Quick Guide to the Rappi Public API

If you're new to Rappi's public API, you might wonder what it is and how it can help you. Rappi is a popular on-demand delivery app that operates in various Latin American markets. The company offers a public API that lets third-party developers build apps and services that integrate with Rappi's platform.

In this article, we'll give you a quick rundown of the Rappi public API and show you some example code in JavaScript.

How to Get Started with the Rappi API

Before you can use the Rappi API, you'll need to sign up for a developer account and get an API key. Here's how to do it:

  1. Go to the Rappi Developer Portal.
  2. Click on the "Sign Up" button and create a new account.
  3. Once you're logged in, click on the "My Apps" link and create a new app.
  4. You'll receive an API key that you can use to authenticate your API requests.

Example API Calls with JavaScript

Now that you have an API key, you can start making API calls. Here are some example API calls you can make using JavaScript:

Get Stores

To get a list of stores available in your area, you can use the GET /stores endpoint. Here's an example code snippet that shows how to make this API call using the axios library:

const axios = require('axios');

const url = 'https://api-lbs.rappi.com/api/v2/stores?latitude=4.710989&longitude=-74.072091';

const headers = {
   'Content-Type': 'application/json',
   'Authorization': '<your_api_key_here>'
};

axios.get(url, { headers })
   .then((response) => {
      console.log(response.data);
   })
   .catch((error) => {
      console.error(error);
   });

Get Products

To get a list of products available in a store, you can use the GET /stores/{store_id}/products endpoint. Here's an example:

const axios = require('axios');

const url = 'https://api-lbs.rappi.com/api/v2/stores/12345/products';

const headers = {
   'Content-Type': 'application/json',
   'Authorization': '<your_api_key_here>'
};

axios.get(url, { headers })
   .then((response) => {
      console.log(response.data);
   })
   .catch((error) => {
      console.error(error);
   });

Create an Order

To create an order, you can use the POST /orders endpoint. Here's an example:

const axios = require('axios');

const url = 'https://api-lbs.rappi.com/api/v2/orders';

const data = {
   "store_id": "12345",
   "latitude": "4.710989",
   "longitude": "-74.072091",
   "payment_data": {
      "payment_type_id": "1",
      "card_number": "1234567890123456",
      "security_code": "123",
      "expiration_month": "12",
      "expiration_year": "22"
   },
   "order_items": [
      {
         "product_id": "54321",
         "quantity": 2
      }
   ]
};

const headers = {
   'Content-Type': 'application/json',
   'Authorization': '<your_api_key_here>'
};

axios.post(url, data, { headers })
   .then((response) => {
      console.log(response.data);
   })
   .catch((error) => {
      console.error(error);
   });

Final Thoughts

We hope this quick guide to the Rappi public API has been helpful to you. With the API, you can build innovative apps and services that enhance the customer experience and drive business growth. If you have any questions or need further assistance, be sure to check out the Rappi developer portal for more information and resources.

Visit to Rappi website

Similar APIs of Shopping

Heimkaup

Heimkaup

Shopping

public api for Heimkaup.is, largest e-commerce website in Iceland, 60.000+ skus. With the Heimkaup REST API you can do all the things that our website can do. We use the API to build heimkaup.is. Search for products, view product details, get categories, retrieve all the tags and add to users basket. Everything in JSON format so it’s easy to read, both for humans and computer, enabling you to do what ever you can imagine

articleshoppingcheckout

BigCommerce

BigCommerce

Shopping

Build amazing commerce solutions powered by the BigCommerce platform. Respond in real time by utlizing webhooks. Orders API lets you use the Plug in and connect features. You can access BigCOmmerce order data to boost your POS and fulfillment solutions. Storefron APIs, Catalog APIs and much more.

Webhooksorders

Schema

Schema

Shopping

Schema is a cloud ecommerce platform that offers a wide range of standard features designed for flexibility and performance. The API can be extended and customized to fit the varying needs of creative online retailers.

commercegiftcards

Moltin

Moltin

Shopping

Moltin provides the only Headless Commerce Platform for builders who require flexibility, speed, and control - and won’t settle for rigid, cookie-cutter commerce experiences.

elasticpathcloud

Atlas

Atlas

Shopping

E-Commerce Backend API in Hapi.js and RethinkDB. Why write plugins when you can build your own e-commerce platform? It was built with the Yoonic E-Commerce Storefront application in mind and you can check it out live powering NICI Store!

HapiRethinkDBplugins

Snipcart

Snipcart

Shopping

Enable e-commerce on a WordPress blog, an existing site, a SPA, a JAMstack project… anything! Use CMS & frameworks you love, and let our third party shopping cart do the heavy lifting. We used HTTP features such as authentication, verbs and response codes to make it easy to use.

RESTwebhookscustom

Vouchery.io

Vouchery.io

Shopping

Vouchery.io API to generate, distribute and redeem discount, referral & coupon code programs. Marketers set up campaigns and sub-campaigns, which can handle different triggers. Marketers set up rules, which determines what rewards to give ( and when) to customers based on occurred triggers. Your application sends us these triggers (sends API requests with a Customer related event ). Vouchery, based on rules, decides if this particular trigger causes any reward and send it back to your application.

coupenreferraldiscount

Commerce.js

Commerce.js

Shopping

eCommerce API w/ support for preorders and subscriptions . API-first eCommerce platform for developers & designers Rapidly create custom eCommerce experiences on web and mobile with our fully headless platform. Our eCommerce layer handles all the tedious logic for you.

ecommerceheadlesssimple

Bratabase

Bratabase

Shopping

Database of different types of Bra Sizes. That will show you the list of bras so you can navigate to each of them and from them you can navigate to the list of models for this brand under its models key. Do the same thing to see each model's detail and see its sizes collection to discover the list of sizes we know for the particular model.

brasizebusiness

Wal-Mart

Wal-Mart

Shopping

Item price and availability at Walmart. Product Lookup API gives access to item price and availability in real-time. Item id needs to be specified for doing a lookup. Response type returned is full response.

walmartshopusa