CPGs API Inventory
These are the specifications for the Rappi Inventory API. This REST API enables you to efficiently update your stores in the Rappi apps with the latest price, promotion, and product-availability data. If you haven't reviewed the Inventory Integration Guide section, please do so before exploring this document.
ATTENTION TO API SPECS
Rappi Inventory API has not yet been migrated to the same gateway that includes our order and payment APIs. It uses a different authentication schema, and it's served from a different base URI.
Rappi Inventory API v2 OAS3 file
Authentication
- API Key (api_key)
- Parameter Name: api_key, in: header.
Inventory Update
POST
/datasets
This endpoint syncs your product feeds with Rappi. It initiates the import process and returns the import job identifier.
Request Example
# You can also use wget
curl -X POST https://services.grability.rappi.com/api/cpgs-integration/datasets \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'api_key: string' \
-H 'api_key: API_KEY' \
-d '{"store_id":"string","id":"string","gtin":"string","name":"string","category_first_level":"string","category_second_level":"string","price":0,"discount_price":0,"discount_start_at":"2019-08-24","discount_end_at":"2019-08-24","stock":0,"is_available":true,"sale_type":"U","image_url":"string"}'
Request Parameters
Parameter | Type | In | Description |
---|---|---|---|
api_key required | string | header | Unlike our other APIs, this service uses an API key-based authorization. This key is provided by your Rappi technical account manager (TAM). |
body required | object | body | |
» store_id required | string | body |
|
» id required | string | body |
|
» gtin required | string | body |
|
» name required | string | body |
|
» category_first_level | string | body |
|
» category_second_level | string | body |
|
» price required | number | body |
|
» discount_price | number | body |
|
» discount_start_at | string(date) | body |
|
» discount_end_at | string(date) | body |
|
» stock required | integer | body |
|
» is_available | boolean | body |
|
» sale_type required | string | body |
Accepts: U, WW |
» image_url | string | body |
|
Responses
Status | Description |
---|---|
201 Created | Success–import initiated; details returned. |
400 Bad Request | Bad Request |
500 Internal Server Error | This is an issue with the server, not the request. |
Status Code 201
Name | Description |
---|---|
» job_id string | The unique inventory sync job identifier created by Rappi. |
» status string | POST "created" status, demonstrating that the import has initiated. NB there isn't a method to verify the state of an import job. |
» created_at string(date-time) | UTC timestamp when the import job started. |
Status Code 400
Name | Description |
---|---|
» message string | |
» field string | |
» description string | |
» internal string |
undefined