my test docs

Operations
Authentification
POST /access_token
Obtain a bearer token
POST /access_token

If you are already our client you can get your credentials (API key and API secret) in our Admin Panel -> Account -> API ( https://www.socialshopwave.com/admin/settings/api)

Request body

multipart/form-data
Object
client_id
string required

API key

client_secret
string required

API Secret

grant_type
string required

Grant type

Default:
client_credentials
scope
string required

The scope of the access request

Responses

200 200
Body
application/json
Object
access_token
string

The access token issued by the authorization server

expires_in
integer

The lifetime in seconds of the access token

token_type
string

The type of the token

scope
string

The scope of the access token

Examples
{
  "access_token" : "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "expires_in" : 2764800,
  "token_type" : "Bearer",
  "scope" : "read_user write_user"
}
Receive a list of all Users
GET /users

Receive a list of Users.

Request parameters

page
integer optional

Pagination index. Items per request depends on limit parameter

Min: 1
Default:
1
limit
integer optional

Amount of results per request

Min: 1
Max: 250
Default:
50

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object

Model Body (User)

user_id
integer

Identifier of a user in SocialShopWave

customer_id
string

(Read-only) Shopify customer id

email
string email

(Read-only) Shopify customer’s email address

first_name
string

Shopify customer’s first name

Max length: 128
last_name
string

Shopify customer’s last name

Max length: 128
photo_url
string uri

(Read-only) Link to user’s profile photo

about
string

User information. Example: Rare cars collector

birthdate
string

User’s birthdate. Example: 1992-05-22

Pattern: (19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])
profile_address
string uri

(Read-only) Profile link of a customer

username
string

Alpha numeric username of a user. Example: billgates55

Pattern: ^[A-Za-z-][A-Za-z0-9-]*$
privacy
string

Defines who can see user’s profile and activity. Example: public

Enumeration:
public
private
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [
    {
      "user_id" : 5,
      "customer_id" : "2761504389",
      "email" : "george.lucas@example.com",
      "first_name" : "George",
      "last_name" : "Lukas",
      "photo_url" : "https://img8.socialshopwave.com/client5/profileimages/user259/56e64b9c256e2service_profile_m.jpg?c=1457955199",
      "about" : "American filmmaker and entrepreneur",
      "birthdate" : "1944-05-14",
      "profile_address" : "https://star-wars.myshopify.com/pages/profile/glukas",
      "username" : "glukas",
      "privacy" : "public"
    }
  ]
}
GET /users/search

Search for a user (by email only)

Request parameters

field
string required

The field name to search by

Enumeration:
email
value
string email required

The email address of user searching for

Responses

200 200
Body
application/json
Object
status
integer

HTTP status code. Example: 200

message
string

API response message. Example: OK

data
Object

Model Body (User)

user_id
integer

Identifier of a user in SocialShopWave

customer_id
string

(Read-only) Shopify customer id

email
string email

(Read-only) Shopify customer’s email address

first_name
string

Shopify customer’s first name

Max length: 128
last_name
string

Shopify customer’s last name

Max length: 128
photo_url
string uri

(Read-only) Link to user’s profile photo

about
string

User information. Example: Rare cars collector

birthdate
string

User’s birthdate. Example: 1992-05-22

Pattern: (19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])
profile_address
string uri

(Read-only) Profile link of a customer

username
string

Alpha numeric username of a user. Example: billgates55

Pattern: ^[A-Za-z-][A-Za-z0-9-]*$
privacy
string

Defines who can see user’s profile and activity. Example: public

Enumeration:
public
private
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : {
    "user_id" : 1,
    "customer_id" : "2391076613",
    "email" : "elon.musk@mail.com",
    "first_name" : "Elon",
    "last_name" : "Musk",
    "photo_url" : "https://img7.socialshopwave.com/client1/profileimages/user1/56ca9c016e653service_profile_m.jpg?c=1457947907",
    "about" : "Entrepreneur, engineer, inventor, investor",
    "birthdate" : "1971-06-28",
    "profile_address" : "https://tesla-motors.myshopify.com/pages/profile/elon-musk",
    "username" : "elon-musk",
    "privacy" : "public"
  }
}
404 404
Body
application/json
Object
status
integer

HTTP status code

message
string

API response message

Examples
{
  "status" : 404,
  "message" : "User with email:'email@example.com' not found"
}
Wishlist
Receive a list of Wishlist
GET /wishlist

Receive a list of Wishlist

Request parameters

user_id
integer optional

Identifier of a user in SocialShopWave

board_id
integer optional

Identifier of a board

product_id
string optional

Shopify product_id

variant_id
string optional

Shopify product variant_id

page
integer optional

Pagination index. Items per request depends on limit parameter

limit
integer optional

Amount of results per request

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
user_id
integer
product_id
string
board_id
integer
date
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [
    {
      "user_id" : 1,
      "product_id" : "1632310531",
      "variant_id" : "4835103811",
      "board_id" : 8,
      "date" : "2015-12-30 14:28:46"
    },
    {
      "user_id" : 1,
      "product_id" : "1632311491",
      "variant_id" : "0",
      "board_id" : 8,
      "date" : "2016-02-16 15:49:03"
    },
    {
      "user_id" : 5,
      "product_id" : "1632314179",
      "variant_id" : "6835103411",
      "board_id" : 4,
      "date" : "2016-02-16 15:49:00"
    }
  ]
}
Add to wishlist
POST /wishlist

Add to wishlist

Request body

application/json
Object
Example:
{
  "user_id" : 5,
  "product_id" : "1632314179",
  "board_id" : 8
}
user_id
integer required

Identifier of a user in SocialShopWave

product_id
string required

Shopify product_id

variant_id
string

Shopify product variant_id

board_id
integer

Identifier of a wishlist board

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [ ]
}
404 404
Body
application/json
Object
status
integer
message
string
Examples
{
  "status" : 404,
  "message" : "User or product not found"
}
406 406
Body
application/json
Object
status
integer
message
string
Examples
{
  "status" : 406,
  "message" : "user_id and product_id are required"
}
Remove product from user's wishlist
DELETE /wishlist

Remove product from user’s wishlist

Request parameters

user_id
integer required

Identifier of a user in SocialShopWave

product_id
string required

Shopify product_id

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [ ]
}
404 404
Body
application/json
Object
status
integer
message
string
Examples
{
  "status" : 404,
  "message" : "Resource does not exists"
}
406 406
Body
application/json
Object
status
integer
message
string
Examples
{
  "status" : 406,
  "message" : "user_id and product_id are required"
}
Receive added count to wishlists of products
GET /wishlist/products/count

Receive added count to wishlists of products

Request parameters

product_ids
array of optional

Shopify Product identifiers

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
product_id
string
count
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [
    {
      "product_id" : "1632309955",
      "count" : "7"
    },
    {
      "product_id" : "1632310019",
      "count" : "6"
    },
    {
      "product_id" : "1632310147",
      "count" : "7"
    },
    {
      "product_id" : "1632310275",
      "count" : "5"
    },
    {
      "product_id" : "1632310403",
      "count" : "7"
    },
    {
      "product_id" : "1632310531",
      "count" : "8"
    },
    {
      "product_id" : "1632310851",
      "count" : "9"
    },
    {
      "product_id" : "1632310979",
      "count" : "9"
    },
    {
      "product_id" : "1632311107",
      "count" : "6"
    },
    {
      "product_id" : "1632311299",
      "count" : "9"
    },
    {
      "product_id" : "1632311491",
      "count" : "19"
    },
    {
      "product_id" : "1632311811",
      "count" : "12"
    },
    {
      "product_id" : "1632311875",
      "count" : "7"
    },
    {
      "product_id" : "1632311939",
      "count" : "8"
    },
    {
      "product_id" : "1632312067",
      "count" : "8"
    },
    {
      "product_id" : "1632312195",
      "count" : "16"
    },
    {
      "product_id" : "1632312323",
      "count" : "7"
    },
    {
      "product_id" : "1632312387",
      "count" : "6"
    },
    {
      "product_id" : "1632312451",
      "count" : "7"
    },
    {
      "product_id" : "1632312515",
      "count" : "12"
    },
    {
      "product_id" : "1632312707",
      "count" : "10"
    },
    {
      "product_id" : "1632312771",
      "count" : "8"
    },
    {
      "product_id" : "1632312835",
      "count" : "9"
    },
    {
      "product_id" : "1632312899",
      "count" : "9"
    },
    {
      "product_id" : "1632312963",
      "count" : "15"
    },
    {
      "product_id" : "1632313027",
      "count" : "10"
    },
    {
      "product_id" : "1632313091",
      "count" : "11"
    },
    {
      "product_id" : "1632313219",
      "count" : "10"
    },
    {
      "product_id" : "1632313475",
      "count" : "8"
    },
    {
      "product_id" : "1632313795",
      "count" : "9"
    },
    {
      "product_id" : "1632313923",
      "count" : "4"
    },
    {
      "product_id" : "1632314115",
      "count" : "5"
    },
    {
      "product_id" : "1632314179",
      "count" : "10"
    },
    {
      "product_id" : "1632314371",
      "count" : "7"
    },
    {
      "product_id" : "1632314435",
      "count" : "6"
    },
    {
      "product_id" : "1632314755",
      "count" : "10"
    },
    {
      "product_id" : "1632314819",
      "count" : "6"
    },
    {
      "product_id" : "1632315139",
      "count" : "10"
    },
    {
      "product_id" : "1632315395",
      "count" : "10"
    },
    {
      "product_id" : "1632315459",
      "count" : "10"
    },
    {
      "product_id" : "1632315587",
      "count" : "6"
    },
    {
      "product_id" : "1632315715",
      "count" : "8"
    },
    {
      "product_id" : "1632316291",
      "count" : "8"
    },
    {
      "product_id" : "1632316547",
      "count" : "5"
    },
    {
      "product_id" : "1632316803",
      "count" : "6"
    },
    {
      "product_id" : "1632316995",
      "count" : "11"
    },
    {
      "product_id" : "1632317187",
      "count" : "8"
    },
    {
      "product_id" : "1632317379",
      "count" : "14"
    },
    {
      "product_id" : "1632317443",
      "count" : "6"
    }
  ]
}
Receive a list of all Customers who added the product to wishlist
GET /wishlist/product/customers

Receive a list of all Customers who added the product to wishlist

Request parameters

product_id
string required

Shopify product_id

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
user_id
integer
customer_id
string
email
string
first_name
string
last_name
string
photo_url
string
about
string
birthdate
string
profile_address
string
username
string
gender
string
privacy
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [
    {
      "user_id" : 5,
      "customer_id" : "2761504389",
      "email" : "george.lucas@example.com",
      "first_name" : "George",
      "last_name" : "Lukas",
      "photo_url" : "https://img8.socialshopwave.com/client5/profileimages/user259/56e64b9c256e2service_profile_m.jpg?c=1457955199",
      "about" : "American filmmaker and entrepreneur",
      "birthdate" : "1944-05-14",
      "profile_address" : "https://star-wars.myshopify.com/pages/profile/glukas",
      "username" : "glukas",
      "gender" : "male",
      "privacy" : "public"
    }
  ]
}
406 406
Body
application/json
Object
status
integer
message
string
Examples
{
  "status" : 406,
  "message" : "product_id is required"
}
Receive a list of all Boards of user
GET /wishlist/boards

Receive a list of all Boards of user

Request parameters

user_id
integer required

Identifier of a user in SocialShopWave

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
board_id
string
title
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [
    {
      "board_id" : "4",
      "title" : "Favorites"
    }
  ]
}
406 406
Body
application/json
Object
status
integer
message
string
Examples
{
  "status" : 406,
  "message" : "user_id is required"
}
Create a new Board
POST /wishlist/boards

Create a new Board

Request body

application/json
Object
Example:
{
  "user_id" : 23348,
  "title" : "Birthday"
}
user_id
integer required

Identifier of a user in SocialShopWave

title
string required

Title of a board

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Object
user_id
string
title
string
board_id
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : {
    "user_id" : "8",
    "title" : "Birthday",
    "board_id" : "13"
  }
}
406 406
Body
application/json
Object
status
integer
message
string
Examples
{
  "status" : 406,
  "message" : "user_id and title are required"
}
Receive a list of reviews
GET /reviews

Receive a list of reviews by user_id or product_id.

Request parameters

product_id
integer optional

Filter by Shopify product_id (set 0 to get site reviews)

user_id
integer optional

Filter by user_id (Identifier of a user in SocialShopWave)

page
integer optional

Pagination index. Items per request depends on limit parameter

limit
integer optional

Amount of results per request

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
review_id
string

Idenitfier of a review in SocialShopWave

product_id
string

Shopify product_id

user_id
string

Identifier of a user in SocialShopWave

body
string

Content of a review

creation_date
string

Posted date of a review

status
string

Published status of a review

Enumeration:
published
unpublished
rate
string

Review rate

Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [
    {
      "review_id" : "107",
      "product_id" : "0",
      "user_id" : "1",
      "body" : "Awesome",
      "creation_date" : "2016-02-16 13:46:11",
      "status" : "published",
      "rate" : "4"
    },
    {
      "review_id" : "115",
      "product_id" : "0",
      "user_id" : "5",
      "body" : "Consulted he eagerness unfeeling deficient existence of. Calling nothing end fertile for venture way boy. Esteem spirit temper too say adieus who direct esteem. It esteems luckily mr or picture placing drawing no. Apartments frequently or motionless on reasonable projecting expression. Way mrs end gave tall walk fact bed. ",
      "creation_date" : "2016-02-17 13:16:06",
      "status" : "published",
      "rate" : "5"
    },
    {
      "review_id" : "110",
      "product_id" : "0",
      "user_id" : "4656",
      "body" : "Delightful unreserved impossible few estimating men favourable see entreaties. She propriety immediate was improving. He or entrance humoured likewise moderate. Much nor game son say feel. Fat make met can must form into gate. Me we offending prevailed discovery. ",
      "creation_date" : "2016-02-16 16:58:09",
      "status" : "unpublished",
      "rate" : "5"
    }
  ]
}
Post a single review
POST /reviews

Post a single review

Request body

application/json
Object
Example:
{
  "email" : "john.doe@example.com",
  "name" : "John Doe",
  "product_id" : 0,
  "body" : "it looks amazing!!!",
  "rate" : 5
}
email
string email required

Reviewer email

name
string required

Reviewer name

product_id
integer required

Reviewed product id (0 - for site review)

body
string required

Review message

rate
integer

Review score

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Object
review_id
string
user_id
string
rate
integer
body
string
creation_date
string
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : {
    "review_id" : "1",
    "user_id" : "2",
    "rate" : 5,
    "body" : "it looks amazing!!!",
    "creation_date" : "2016-03-24 11:33:11"
  }
}
404 404
Body
application/json
Object
status
integer
message
string
406 406
Body
application/json
Object
status
integer
message
string
Get review score for single product or a group of products
GET /reviews/products

Get review score for single product or a group of products

Request parameters

product_ids
array of optional

Shopify Product identifiers

Responses

200 200
Body
application/json
Object
status
integer
message
string
data
Array
Object
product_id
string

Identifier of selected product (0 for site review)

reviews_count
string
average_rate
string
Examples
{
  "status" : 200,
  "message" : "OK",
  "data" : [
    {
      "product_id" : "0",
      "reviews_count" : "2",
      "average_rate" : "4.5000"
    }
  ]
}
Type Definitions
user
Object
user_id
integer

Identifier of a user in SocialShopWave

customer_id
string

(Read-only) Shopify customer id

email
string email

(Read-only) Shopify customer’s email address

first_name
string

Shopify customer’s first name

Max length: 128
last_name
string

Shopify customer’s last name

Max length: 128
photo_url
string uri

(Read-only) Link to user’s profile photo

about
string

User information. Example: Rare cars collector

birthdate
string

User’s birthdate. Example: 1992-05-22

Pattern: (19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])
profile_address
string uri

(Read-only) Profile link of a customer

username
string

Alpha numeric username of a user. Example: billgates55

Max length: 128
Pattern: ^[A-Za-z-][A-Za-z0-9-]*$
privacy
string

Defines who can see user’s profile and activity. Example: public

Enumeration:
public
private
Example
{
  "user_id" : 2,
  "customer_id" : "3619153093",
  "email" : "sergey.brin@example.com",
  "first_name" : "Sergey",
  "last_name" : "Brin",
  "photo_url" : "https://img7.socialshopwave.com/client1/profileimages/user2/56ca9c026e653service_profile_m.jpg?c=1437947905",
  "about" : "Russian-born American computer scientist, internet entrepreneur, and philanthropist",
  "birthdate" : "1973-08-21",
  "profile_address" : "https://google-glass.myshopify.com/pages/profile/sergey-brin",
  "username" : "sergey-brin",
  "privacy" : "public"
}
wishlist
Object
user_id
integer required

Identifier of a user in SocialShopWave

product_id
string required

Shopify product_id

variant_id
string

Shopify product variant_id

board_id
integer

Identifier of a wishlist board

date
string

Creation date of item

Example
{
  "user_id" : 5,
  "product_id" : "1632312451",
  "variant_id" : "4835103811",
  "board_id" : 4
}
review
Object
board
Object
board_id
integer
user_id
integer required

Identifier of a user in SocialShopWave

title
string

Title of board

Example
{
  "board_id" : 4,
  "user_id" : 5,
  "title" : "Favorites"
}