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

Refresh Token

It is used to generate the access token again after it gets expired in 3600 secs. User credentials (username and password) are not required. The validity of refresh token is 15 days.

METHOD = POST , SUPPORTED FORMAT = JSON , SERVICE NAME = refreshToken 

Header : Content-Type:application/json
NOTE: Token used in refresh_token label has to taken from the refresh_token generated in login Token API.

Details of the fields.

Field name Description Mandatory
Header - “Content-Type” Input Content Type here it would be “application/json” Yes

Details of the fields(for successful Response).

Field name Description
Access Tokens An access token is an opaque string that identifies a user.
expires_in expires_in (3600 sec).

Developer Url -
https://auth.shopclues.com/refreshToken.php

Sandbox Url -
http://sandbox.shopclues.com/oauth/refreshToken.php
  • Sample JSON REQUEST
  • Request:-
{
 
   "refresh_token": "609610f410e80e1a2f2c1cc5349e600966684aac",
   "grant_type":"refresh_token",
   "client_id":"10945358", 
   "client_secret":"KM1LCWRT8E6P"
}
  • When request is successful, you get following response -
  • Response :-
{
    "access_token": "qweqwedqwfscasf23344442",
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": null,
    "refresh_token":"wqerwqedfaa3b2a1553a449a355edf28qqwerq3"
}

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.