This document will guide Redmart developers on how to use the Open Platform to request the new version of the Redmart API.
Register for an open platform account
Registration link
https://open.lazada.com/apps/user/register
Registered Email and Password Conditions
a. The password needs English+number+symbol, and the symbol cannot use "!" "<" 、">";
b. The registered mailbox should not have a "+".
After registration, you need to fill in profile information first, and wait for review after submission
After completing the profile submission according to your actual situation, your profile will be reviewed and completed within 1~3 working days, and the registration process of the open platform will be finished after the review.
Redmart APP Creation
Before calling the API you need to create the Redmart APP.
- Select the Redmart category and click "Apply".
- Fill in the reason for your application.
- Wait for the application to be approved (this will usually be done within 1 to 3 business days).
- Click "Create APP".
- Fill in the app information to complete the creation of the app.
APP Parameter Introduction
- It is used for the developer's system to receive the authorization code after the seller's authorization, and the detailed process of the seller's authorization will be introduced in the next section;
- Each app has a unique APPKEY, which is a necessary parameter when sending requests to the Open api, and is used to distinguish the accounts to which different requests belong;
- Used to generate a signature to ensure the security of the request parameters, the specific use will be introduced in the "Call Open API" section;
- The current status of the app is categorized into "Testing", "Onlice" and "Offline". The testing status will limit the number of sellers that can be authorized by the app, the access token validity and the daily API call traffic. If your app has completed the test, you can click "Apply Online" in the upper right corner to apply for online.
- The maximum number of API calls each app can make in a 24-hour period, beyond which all requests will be blocked until the total number of calls in a 24-hour period is reduced to within the maximum number;
- APP's authorization method, Redmart category authorization method is "AAllow login users to authorize", This means that sellers can log in for authorization directly from the document in the "Seller Authorization" section.
- The validity time of the Access token (the Access token needs to receive an authorization code using the callback address in point 1, and then use the authorization code to redeem it for an Access token);
- The validity time of Refresh token. When the Access token expires, but the Refresh token is still valid, the developer can call the API to use the Refresh token to get a new Access token.The Refresh token itself can not be refreshed, when the Refresh token expires, you can only re-authorize to get a new Refresh Refresh token cannot be refreshed by itself.
- There is a limit to the number of sellers that can be authorized for each app, and different categories have different quantity limits;
- Categories of APIs that can be called by the current APP, APIs outside of the categories cannot be called;
Seller Authorization
Service endpoint
Authorization steps
Detailed authorization steps
Call Open API
Service endpoint
The Open API needs to be linked via an HTTP request, requiring a TLS version of no less than 1.1 or it may not be requested.
Call API with official SDK
The open platform provides SDKs for some programming languages, which developers can download from APP Console - Development - Testing Toos - SDK Download section.
Environment requirements
- JAVA SDK requires Java SE/EE 1.5 or newer version
- .Net SDK requires .NET Framework 2.0 or newer version (Windows Phone platform not supported)
- PHP SDK requires PHP 5 or newer version
- Python requires Python 3.0 or newer version
- For Ruby, you can install it directly here.
Call API with HTTP requests
Before initiating an HTTP request, you need to understand the Open Platform's signature parameters as well as the signature algorithm so that your request can pass the Open Platform's checksum.
sign method
sha256
How to get store id
1, Login to Seller Center
2, Switch Store page will show all your Store IDs
Old Redmart API Migration Guide
Old Redmart API |
API Path |
New Redmart API |
API Path |
Get all Products |
/v1/products |
RssGetProducts |
/rss/products/get |
Get one Product |
/v1/products/{productId} |
RssGetProduct |
/rss/product/get |
Get all Pickup Locations |
/v1/pickup-locations |
RssGetPickupLocations |
/rss/pickupLocations/get |
Get one Pickup Location |
/v1/pickup-locations/{pickupLocationId} |
RssGetPickUpLocation |
/rss/pickupLocation/get |
Get all Stock Lots |
/v1/products/{productId}/pickup-locations/{pickupLocationId}/stock-lots |
RssGetStockLots |
/rss/stockLots/get |
Get one Stock Lot |
/v1/products/{productId}/pickup-locations/{pickupLocationId}/stock-lots/0 |
RssGetStockLot |
/rss/stockLot/get |
Update one Stock Lot |
/v1/products/{productId}/pickup-locations/{pickupLocationId}/stock-lots/0 |
RssUpdateStockLot |
/rss/stockLot/update |
Get Pickup Jobs |
/v1/pickup-jobs |
RssGetPickupJobs |
/rss/pickup-jobs/get |
Get Pickup Job |
/v1/pickup-jobs/{pickupJobId} |
RssGetOnePickupJob |
/rss/pickup-job/get |
FAQ
关于此文档暂时还没有FAQ