Jamaica
This Api is used for user routes and products.
The current state of push notifications are automated as long as the following conditions are met:
The user(s) must have the DeviceID portion of their account filled in. This must be supplied be obtained by whichever platform you are on. We currently only support GCM/FCM and APN. As long as those device IDs are filled in. Push Notifications should work accordingly.
POST
/api/user/get
Request headers
x-web-token
string
optional
Request body
Object
UserID
string
Example:
3456ert4567456
Responses
200
OK
Body
Object
ERR_CODE
string
Example:
ERR_NONE
Message
string
Example:
Success
err
unknown
nullable
Bio
string
Example:
testify user
UserInfo
Object
_id
string
Example:
57e60329b7927fb81560e283
Email
string
Example:
test1@test.com
DisplayName
string
Example:
lelmiester
Shipping
boolean
Example:
true
Name
Object
First
string
Example:
wut
Last
string
Example:
face
_id
string
Example:
57e67f5ff784d2581c1fd875
Gender
string
Example:
MALE
DOB
Object
Month
integer
Example:
9
Day
integer
Example:
22
DateFull
string
Example:
2016-09-22T00:00:00.000Z
_id
string
Example:
57e67f5ff784d2581c1fd874
Addresses
Array
Object
POST
/api/signup
Request body
Object
email
string
Example:
user@email.com
password
string
Example:
qwertyuiop
name
string
Example:
user 1
DOB
string
Example:
07-10-1999
Responses
201
Created
Body
Object
ERR_CODE
string
Example:
ERR_NONE
Message
string
Example:
Success
result
Object
NewUser
boolean
Example:
true
userID
string
Example:
597f90d2350080221b5db109
Message
string
Example:
User Signed up successfully, Please Confirm your email first
API method related to product model
POST
/api/product
POST
/api/product/show
POST
/api/product
Request headers
x-web-token
string
optional
Request body
Object
Data
Object
Name
string
Example:
Dunhill hard
PostCode
string
Example:
89144
Coordinate
string
Example:
12.09, 12.09
Images
Array
Object
ImageBase64
string
Example:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsAAAANxCAIAAABlrJjcAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAFcxSURBVHhe7d0JnCTZQd/5iMjMqj5mekYaVhIC61iqB9QaY4MESNUCeZGEVD0cA4g2koEBw6da+LPeLlgG/PEO+1nMeAHPYqptxNIFZmnLCGiE1GCma8VIIIy6VisjmaN3gO4CSaBjRkLHzPRVlRkR+67IjDvz5RmR+ft+YqbjyhcRWZHx/vEiMtINw9ABAACw4Zl/AQAABkaAAAAA1ggQAADAGgECAABYI0AAAABrBAgAAGCNAAEAAKwRIAAAgDUCBAAAsEaAAAAA1ggQAADAGgECAABYI0AAAABrBAgAAGCNAAEAAKwRIAAAgDUCBAAAsEaAAAAA1ggQAADAGgECAABYI0AAAABrBAgAAGCNAAEAAKwRIAAAgDUCBAAAsEaAAAAA1ggQAADAGgECAABYI0AAAABrbhiGpneKXNc1fQAwgJkcqQCUmGqAIDcAGBFJAqiIKQUIogOAMSJGADM3jQBBegAwCcQIYIYmfhMl6QHAAAQAArBEgAACANQIEAACw5Dj/P0cjYYVF2ksGAAAAAElFTkSuQmCC
UserID
string
Example:
5980a16f8f2662592ae2e59c
Price
integer
Example:
100
Tags
Array
Example:
["apple"]
string
Example:
apple
Responses
200
OK
Body
Object
ERR_CODE
string
Example:
ERR_NONE
Message
string
Example:
Success
product
Object
__v
integer
Example:
1
updatedAt
string
Example:
2017-10-04T15:31:55.623Z
createdAt
string
Example:
2017-10-04T15:31:55.623Z
UserID
string
Example:
5980a16f8f2662592ae2e59c
Coordinate
string
Example:
12.09, 12.09
PostCode
string
Example:
89144
Price
integer
Example:
100
Name
string
Example:
Dunhill hard
_id
string
Example:
59d4feeb66fa38aba4eac305
Tags
Array
Example:
["apple"]
string
Example:
apple
Images
string
Example:
Images are uploading TO server!
400
POST
/api/product/show
Request headers
x-web-token
string
optional
Request body
Object
ProductID
string
Example:
20e29d82ye8dh38dh83h8d3hw8
Responses
200
OK
Body
Object
ERR_CODE
string
Example:
ERR_NONE
Message
string
Example:
Success
product
Object
__v
integer
Example:
1
updatedAt
string
Example:
2017-08-11T11:44:28.122Z
createdAt
string
Example:
2017-08-11T11:44:28.122Z
UserID
string
Example:
59832925b7b7ed72b28b7262
Coordinate
string
Example:
12.09, 12.09
PostCode
string
Example:
n90hl
Name
string
Example:
test product 1
_id
string
Example:
598d989c9f89d7127e26bc6d
Tags
Array
Example:
["electro222nis"]
string
Example:
electro222nis
Gallery
Array
Object
ImageUrl
string
Example:
https://multicommerce.s3-us-west-2.amazonaws.com/100/598d989c9f89d7127e26bc6d
ImageSize
string
Example:
THUMB
400
Body
Object
ERR_CODE
string
Example:
ERR_UNKNOWN
Message
string
Example:
ProductID not supplied
Object
UserID
string
Example:
5967678a0a4208767f8b455d
Data
Object
Roles
Object
name
string
Example:
Request
Email
string
Example:
zeeshan@gems.techverx.com
DisplayName
string
Example:
String
DisplayPicture
string
Example:
String
Name
Object
First
string
Example:
firstname
Last
string
Example:
LastName
DOB
string
Example:
2016-09-22
Gender
string
Example:
MALE
Bio
string
Example:
String
Location
Object
Lat
string
Example:
23.32
Lng
string
Example:
321.32
PostCode
string
Example:
String
Shipping
boolean
Example:
true