For developers / Api documentation / Methods /

List Stores

Back

Endpoint

GET https://api.repricer.online/v1/stores?id={id}&market_id={market_id}&name={name}&is_active={is_active}&limit={limit}&page={page}&order_by={order_by}&includes={includes}

Headers

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

Params

Name Type Description
id integer Search by ID {{query_language_link}} (optional)
market_id integer Search by Marketplace ID {{query_language_link}} (optional)
name integer Search by Name {{query_language_link}} (optional)
is_active integer Search by Activity {{query_language_link}} (optional, 1 = active, 0 - inactive)
limit integer Limit (optional, default "25")
page integer Page (optional, default "1")
order_by string Sorting (optional, default "id,desc")
includes string Models that may be included, separated by a comma (possible options: market)

Request example

GET https://api.repricer.online/v1/stores?limit=1&includes=market,currency HTTP/1.1
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json

Return: Store[]

Response example

HTTP/1.1 200 OK
Content-Type: application/json
{
     "status": 200,
     "current_page": 1,
     "data": [
         {
             "id": 16,
             "market_id": 1,
             "name": "My new store",
             "credentials": [],
             "is_active": true,
             "is_read_only": false,
             "created_at": "2018-04-05 14:58:36 GMT+0000",
             "updated_at": "2018-04-05 14:58:36 GMT+0000",
             "is_credentials_active": false,
             "currency_code": "826",
             "currency": {
                 "code": "826",
                 "name": "GBR",
             },
             "market": {
                 "id": 1,
                 "name": "Amazon USA"
             }
         }
     ],
     "first_page_url": "https://api.repricer.online/v1/stores?limit=1&includes=market&page=1",
     "from": 1,
     "last_page": 15,
     "last_page_url": "https://api.repricer.online/v1/stores?limit=1&includes=market&page=15",
     "next_page_url": "https://api.repricer.online/v1/stores?limit=1&includes=market&page=2",
     "path": "https://api.repricer.online/v1/stores",
     "per_page": 1,
     "prev_page_url": null,
     "to": 1,
     "total": 15
}