Top
Developers Your place to code all things handmade

Welcome to the Shopclues Developer Platform

We believe in code as craft. Join the community of developers, creators and build tools that enrich the ways you can shop, sell and connect with the India's largest merchant base most easily.

Get Started

Register, Upload, Search and Connect

Explore Shopclues' marketplace of over 8.5 million products from over 3.5 lakh merchants. Connect buyers with the items they'll love.

Learn More About Catalog Management

Login, Integrate and Create

Build the best tools for Shopclues merchants. Simply login, Integrate and start developing you own apps.

Learn More About Start Developing
<
>
Jump to: navigation, search

Login Token

Header
Content-Type:application/json

Method = POST
Details of the fields.

Field name Description Mandatoray
Header - “Content-Type” Input Content Type here it would be “application/json” Yes
Username Registered email id Yes
password Password(MD5 format) Yes
grant_type password Yes
client_id Client_id of the integrator Yes
client_secret Client_secret of the integrator Yes

When request is successful, you get following response.

Field name Description
access_token An access token is a string that identifies a user.
expires_in expires_in (3600 sec).

When you have entered wrong request

Field name status
wrong username or password 401 Unauthorized.
wrong client_id or client_secret or grant_type. 400 Bad Request





Production Url -
https://auth.shopclues.com/loginToken.php

Sandbox Url -
http://sandbox.shopclues.com/oauth/loginToken.php

JSON Request for Sandbox :


{
"username":"test123@gmail.com",
"password":"4f7f96a06b6babb5b6ad21a2707e792b",
"client_id":"19AVVRJFIMYG1CZCBY7QIH99IO64PX",
"client_secret":"PE^L_OS0M_YSVY0&ASH+JO9S$_U^!&7D_1P(^6WF5_WEWB",
"grant_type":"password"
}

Successful response


{
    "access_token": "73d37b7361b568249b9b26d5746e722c3e60",
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": null,
    "refresh_token": "dfaa70a0703b2a1553a49a355edf28d5b0"
}

For accessing public API's you don't need the username and password to generate the token.
The following request can also be used to generate token to access the public API's:-

{ 
  "client_id":"1L22LX5RO0YAJCXKQSA783EI",  
  "client_secret":"#06UR&I66)+O%X61F6%JPF5#G1!)7A$Y0Y(&SE0CC0Q&AAV", 
  "grant_type":"client_credentials" 
}
Sandbox URL to be used-
http://sandbox.shopclues.com/oauth/token.php
  • And you get the following response
{
  "access_token": "0c24a57ddb4882fd34a0007d75ace11d65e1941e",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": null
}
  • When you have entered wrong username or password .

Response

{
  "error": "invalid_grant",
  "error_description": "Invalid username and password combination"
}
  • When you have entered wrong client_id or client_secret or grant_type.
{
  "error": "invalid_client",
  "error_description": "The client credentials are invalid"
}

Looking for ShopClues Apps?

Check out our new
App Gallery!

It's the best way to find cool and useful tools built upon Shopclues's API.