Source API Documentation

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.

FieldType 
statusstringValues: SUCCESS, ERROR
errorError TypeOnly if status is ERROR
resultVaries by endpointOnly if status is SUCCESS

Example #

{    
  "status":"ERROR",    
  "error":{
    "code":"ERR_02",
    "description":"Url empty or invalid"
  }
}

Endpoints #

List #

PathMethod
/listGet

/list #

Method: Get

Get all available sources.

No parameters or body is required.

Response result #

FieldTypeNotes
sourcesArray 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 #

FieldTypeNotes
codestringValues contained in Error List
descriptionstring 

Example #

{
  "code":"ERR_05",
  "description":"Unknown error"
}

Error List #

CodeDescription
CodeDescription
ERR_01Your Token is wrong
ERR_02Url empty or invalid
ERR_03Country wrong or invalid
ERR_04Unable to obtain product information
ERR_05Unknown error
ERR_06Supplier or country not recognised. Try looking for this supplier in a different country
ERR_07Wrong request key
ERR_08Product information is not yet available
ERR_09Product doesn’t exists

Source Type #

FieldTypeNotes
idnumberDifferent sources are considered if they are from different countries. For example, Amazon ES and Amazon GB will have different ids.
namestring 
domainstring 
countrystringISO 3166: US, ES, DE, IT…

Example #

{
  "id:" 95,
  "name": "sears",
  "domain": "www.sears.com"
  "country": "US"
}

Funciona con BetterDocs

Scroll hacia arriba