Tabla de contenidos
General information #
Base url #
https://partner.hustlegotreal.com/api/catalog
Authentification #
All calls must include a header “token” with the public token provided.
Example
“token”: “UzeLodERPrLhyNPYfk/nFanUfwcP19sibK-h7ToAXbrcqE69G1”
Request and Responses #
In case of a method Post, body data must be send in json format.
Responses will always be JSON objects that will contain next format.
Field | Type | |
---|---|---|
status | string | Values: SUCCESS, ERROR |
error | Error Type | Only if status is ERROR |
result | Varies by endpoint | Only if status is SUCCESS |
Example #
{
"status":"ERROR",
"error":{
"code":"ERR_02",
"description":"Url empty or invalid"
}
}
Endpoints #
Get #
Path | Method |
---|---|
/get | Get |
/get #
Method: Post
Get products from catalog. It will return 100 products.
Body request #
Field | Type | Notes |
---|---|---|
sources | Array of int | (OPTIONAL) Filter by sources. With Array empty or null, api will return products from any source available for the specified country |
country | string | ISO 3166: US, ES, DE, IT… |
min_price | number | (OPTIONAL) |
max_price | number | (OPTIONAL) |
prime | PrimeReq Enum | (OPTIONAL) Default value is 0. |
title | string | (OPTIONAL) Filter by title |
quantity | number | (OPTIONAL) By default 100 |
Examples #
{
"country":"UK"
}
{
"country":"UK",
"sources":[1,25],
"title": "hat",
"min_price": 25,
"max_price": 1520,
"prime": 1,
"quantity":50
}
Response result #
Field | Type | Notes |
---|---|---|
products | Array of Product type |
Example #
{
"products": [
{
"sourceId": 221,
"url": "https://www.saleyee.com/dropship-garage-shed-5-tier-racking-storage-shelving-units-boltless-heavy-duty-shelves-blue-p36826.html",
"title": "Garage Shed 5 Tier Racking Storage Shelving Units Boltless Heavy Duty Shelves Blue",
"price": 27.92,
"image": "Https://img-accelerate.saleyee.cn/Resources/GoodsImages/2022/202210/402d70a0-0202-4e2d-9aab-8c52a651f86b.Jpeg"
},
{
"sourceId": 185,
"url": "https://www.dropship-traders.co.uk/product/silverline-1-2-dr-air-impact-wrench/",
"title": "Silverline 1/2? Dr Air Impact Wrench",
"price": 36.44,
"image": "Https://www.dropship-traders.co.uk/wp-content/uploads/2021/07/719770_1.jpg"
},
{
"sourceId": 185,
"url": "https://www.dropship-traders.co.uk/product/clarke-cht733-professional-mortar-gun-set/",
"title": "Clarke CHT733 Professional Mortar Gun Set",
"price": 20.9,
"image": "Https://www.dropship-traders.co.uk/wp-content/uploads/2021/07/CHT733_2.jpg"
}
]
}
Types #
Error Type #
Field | Type | Notes |
---|---|---|
code | string | Values contained in Error List |
description | string |
Example #
{
"code":"ERR_05",
"description":"Unknown error"
}
Error List #
Code | Description |
---|
Code | Description |
---|---|
ERR_01 | Your Token is wrong |
ERR_02 | Url empty or invalid |
ERR_03 | Country wrong or invalid |
ERR_04 | Unable to obtain product information |
ERR_05 | Unknown error |
ERR_06 | Supplier or country not recognised. Try looking for this supplier in a different country |
ERR_07 | Wrong request key |
ERR_08 | Product information is not yet available |
ERR_09 | Product doesn’t exists |
PrimeReq enum #
Meaning | Value (Amazon) |
---|---|
0 | Not prime and prime |
1 | Only prime |
Product Type #
Field | Type | Notes |
---|---|---|
sourceId | number | |
url | string | |
title | string | |
price | number | |
image | string |
Example #
{
"sourceId": 185,
"url": "https://www.dropship-traders.co.uk/product/neilsen-ct0906-12-piece-1-4-dr-multi-coloured-sockets/",
"title": "Neilsen CT0906 12 Piece 1/4? Dr – Multi-coloured Sockets",
"price": 15.45,
"image": "Https://www.dropship-traders.co.uk/wp-content/uploads/2021/07/CT0906_1-1.jpg"
}