For developers / Api documentation / Methods /

List Strategies

Back

Endpoint

GET https://api.repricer.online/v1/strategies?id={id}&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)
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 /api/v1/strategies?limit=1 HTTP/1.1
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json

Return: Strategy[]

Response example

HTTP/1.1 200 OK
Content-Type: application/json
{
     "status": 200,
     "current_page": 1,
     "data": [
         {
             "id": 1
             "name": "My new strategy",
             "compete_amazon_type": 0,
             "compete_amazon_beat_by_price": 0.01,
             "compete_amazon_beat_by_percent": 0,
             "compete_fba_type": 0,
             "compete_fba_beat_by_price": 0.01,
             "compete_fba_beat_by_percent": 0,
             "compete_mfn_type": 0,
             "compete_mfn_beat_by_price": 0.01,
             "compete_mfn_beat_by_percent": 0,
             "compete_buybox_eligible_only": false,
             "item_condition": 0,
             "min_sellers_rating": 0,
             "min_feedback_count": 0,
             "exclude_sellers_list": [],
             "include_sellers_list": [],
             "scenario_if_no_competition": 1,
             "scenario_if_competition_below_min": 2,
             "scenario_if_competition_matches_min": 1,
             "scenario_if_buybox_winner": 5,
             "updated_at": "2018-06-18 05:15:03",
             "created_at": "2018-06-18 05:15:03",
             "products_count": 180
         }
     ]
     "first_page_url": "https://api.repricer.online/v1/strategies?limit=1&page=1",
     "from": 1,
     "last_page": 1,
     "last_page_url": "https://api.repricer.online/api/v1/strategies?limit=1&page=1",
     "next_page_url": null,
     "path": "https://api.repricer.online/v1/strategies",
     "per_page": 1,
     "prev_page_url": null,
     "to": 1,
     "total": 1
}