Authorization
Flipkart Authorization Code Flow for Seller APIs
Once the Access Token has been obtained it can be used to make calls to the API by passing it as a Bearer Token in the Authorization
header of the HTTP request.
Flow Diagram
Request
curl -u <appid>:<app-secret> https://api.flipkart.net/oauth-service/oauth/token?grant_type=client_credentials&scope=Seller_Api
Responses
Success Response
// status: 200
{
appId: '99****4861***********0396*****087',
appSecret: '2a****e71e**50a6*****8b631e',
access_token: '523**bb-8**2-4**6-8**6-b50****952b',
token_type: 'bearer',
expires_in: 5183999,
scope: 'Seller_Api'
}
Failed Response
// status: 401
// #1: When misplaced appId
{
appId: 'a5773b********b73b5078', // Incorrect or missing appID
appSecret: '250a1e*******c9015ec70',
error: 'unauthorized',
error_description: 'No client with requested id: a5773b***********46bb73b5078'
}
// status: 401
// #2: When misplaced appSecret
{
appId: 'a5773b********b73b5078',
appSecret: '250a1e*******c9015ec70', // Incorrect or missing appSecret
error: 'unauthorized',
error_description: 'Bad credentials'
}
Edit this page on GitHub
Updated at Tue, Sep 6, 2022