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

Add User

To place orders, the user must be a ShopClues customer and should have a valid user id. This API is used to create new users

Method= POST

Authorization :“Bearer bc1f461de4f193”
Content-Type : ”application/json”

Headers Description

Field name Description Mandatory
Header - “Authorization” Access token is passed to identify the user. Eg- ”Bearer bc1f461de4f193" Yes
Header - “Content-Type” Input Content Type here it would be “application/json" Yes

Field Description:

Field name Description Mandatory
email email of user Yes
password password of user Yes
billing name billing name of user Yes
address address of user No
shipping name shipping name of user Yes
Shipping address shipping address of user No
phone phone number of user No
platform D is descktop Yes

Details of return parameters :

Variable Description
status Api status if 1: implies success , 0:implies fail error.
message Text response message
data Array of user with basic parameters. For detailed information about a user.

  • JSON
  • PHP
Production Url:
https://developer.shopclues.com/api/v2/user/adduser
Sandbox Url:
https://sandbox.shopclues.com/api/v2/user/adduser

Sample request:

{
  
    "email":"Testing@gmail.com",
    "password1":"123456",
    "password2":"123456",
    "gender":"M",
      "b_title": "Mr",
      "b_firstname": "Manish1",
      "b_lastname": "Sonwal1",
      "b_address": "Plot no. 1122",
      "b_address_2": "Near Huda1",
      "b_city": "Gurgaon",
      "b_state": "Hr",
      "b_country": "IN",
      "b_zipcode": "122001",
      "b_phone": "88003693910",
      "s_title": "Mr",
      "s_firstname": "Manish1",
      "s_lastname": "Sonwal1",
      "s_address": "Plot no. 1122",
      "s_address_2": "",
      "s_city": "Gurgaon",
      "s_state": "Hr",
      "s_country": "IN",
      "s_zipcode": "122001",
      "s_phone": "88003693910",
      "profile_name": "Main",
      "address_type": "Other",
      "address_other_type": "Address 1",
    "birthday":"15\/09\/1991",

    "platform":"D"
}

Sample response:

{
    "status": 1,
    "code": 200,
    "message": "success",
    "data": {
        "user_id": 55029608,
        "profile_id": 74210757
    },
    "extra": null
}

Click here for access token documentation.

<?php
$curl = curl_init();

  curl_setopt_array($curl, array(
  CURLOPT_URL => "https://sandbox.shopclues.com/api/v2/user/adduser",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => '{
  "email": "Testing@gmail.com",
  "password1": "123456",
  "password2": "123456",
  "gender": "M",
  "b_title": "Mr",
  "b_firstname": "Manish1",
  "b_lastname": "Sonwal1",
  "b_address": "Plot no. 1122",
  "b_address_2": "Near Huda1",
  "b_city": "Gurgaon",
  "b_state": "Hr",
  "b_country": "IN",
  "b_zipcode": "122001",
  "b_phone": "88003693910",
  "s_title": "Mr",
  "s_firstname": "Manish1",
  "s_lastname": "Sonwal1",
  "s_address": "Plot no. 1122",
  "s_address_2": "",
  "s_city": "Gurgaon",
  "s_state": "Hr",
  "s_country": "IN",
  "s_zipcode": "122001",
  "s_phone": "88003693910",
  "profile_name": "Main",
  "address_type": "Other",
  "address_other_type": "Address 1",
  "birthday": "15\/09\/1991",
  "platform": "D"
}',
        

  CURLOPT_HTTPHEADER => array(
    "authorization: Bearer 0d45cdd4572a81c34e6e8faa6ff5213e3a1d5e66",
    "content-type: application/json",
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}



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.