For developers / Api documentation / Methods /

List Markets

Back

Endpoint

GET https://api.repricer.online/v1/markets?id={id}&name={name}&order_by={order_by}&includes={includes}

Headers

Name Type Description
Authorization string Authorization token.
Content-Type string application/json

Params

Name Type Description
id integer Search by ID {{query_language_link}} (optional)
name string Search by Name {{query_language_link}} (optional)
order_by string Sorting (optional, default "id,desc")
includes string[] Includes (optional), values: currency

Request example

GET https://api.repricer.online/v1/markets?id=3&includes=currency HTTP/1.1
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json

Return: Market[]

Response example

HTTP/1.1 200 OK
Content-Type: application/json
{
  "status": 200,
  "data": [
    {
      "id": 3,
      "name": "Amazon Australia",
      "currency_code": "826",
      "currency": {
         "code": "826",
         "name": "GBR",
      },
    }
  ]
}