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

Technical Integration

Key notes and terms.
1 . Client ID/MID - This is a Unique Merchant Identification Number for every merchant which is allotted at the time of registration on ShopClues.com 2 . Token (Checksum) - This refers to a random alpha-numeric string generated using a mathematical algorithm to ensure that data is not tampered along the way. Let us say a message has to be sent from location X to Shopclues server then with all the requests a secret token will be sent in the header for the identification of Merchant/User X. 3 . TokenGeneration/Authentication :- The authentication methodology used is Oauth2 which is globally well known. To know more about Oauth2, feel free to call us, mail us or use Google to find the desired information for your implementation. In this Methodology we will provide a client_id and client_secret to each mechant/user which will be unique to him. After using these details he can call our OAuth API to get his token which will come with a TTL/Expiry time after which the new token needs to be created. OAuth API request is explained below .

  • Oauth/Token creation service (for access without login):

Method – POST, SUPPORTED FORMAT = JSON, SERVICE NAME = OAuth

  • Request Header : Content-Type : ”application/json”

  • Details of the fields:
Field name Description Mandatory
Header Field “Content-Type” This Header field will be sent in request header to tell the type of request parameters. Here it will be “application/json” Yes
client_id This is a Unique Merchant Identification Number for every merchant which is allotted at the time of registration. Yes
client_secret This is also Unique Merchant secret Key which will also be allotted at time to registration. Yes
grant_type Identifier to tell whats the purpose of token requested for now it will be “client_credentials” Yes

Details of return parameters:

Variable Description
access_token Apha Numberic unique access token which will be sent in all the requests.
expires_in TTL of the token provided
token_type Token type
scope Scope of token


Request Url :
 https://auth.shopclues.com/token.php
Sandbox Url :
 http://sandbox.shopclues.com/OAuth2/token.php



  • Request Body:
 {  
   "client_id":"1234",
   "client_secret":"45678ABC",
   "grant_type":"client_credentials"
 }
  • Sample JSON RESPONSE:
{
    "access_token": "f2a0991e1bf97186d07eceb7219db44ed6c1e10c",
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": "order product category"
}


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.