Tabla de contenidos
General information #
Base url #
https://partner.hustlegotreal.com/api/source
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 #
List #
Path | Method |
---|---|
/list | Get |
/list #
Method: Get
Get all available sources.
No parameters or body is required.
Response result #
Field | Type | Notes |
---|---|---|
sources | Array of Source type |
Example #
{
"sources": [
{
"id": 1,
"name": "Amazon",
"domain": "www.amazon.co.uk"
"country": "GB"
},
{
"id": 107,
"name": "Amazon",
"domain": "www.amazon.es"
"country": "ES"
},
{
"id": 221,
"name": "Saleyee",
"domain": "www.saleyee.com"
"country": "GB"
}
]
}
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 |
Source Type #
Field | Type | Notes |
---|---|---|
id | number | Different sources are considered if they are from different countries. For example, Amazon ES and Amazon GB will have different ids. |
name | string | |
domain | string | |
country | string | ISO 3166: US, ES, DE, IT… |
Example #
{
"id:" 95,
"name": "sears",
"domain": "www.sears.com"
"country": "US"
}