For developers / Api documentation / Methods /

Update Strategy

Back

Endpoint

PUT https://api.repricer.online/v1/strategies/{id}

Headers

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

Params

Name Type Description
name string New Strategy's name
compete_amazon_type float Action type for Amazon offers
compete_amazon_beat_by_price float How much should change price for Amazon offers
compete_amazon_beat_by_percent float How much should change price in percents for Amazon offers
compete_fba_type float Action type for Fulfilled By Amazon offers
compete_fba_beat_by_price float How much should change price for Fulfilled By Amazon offers
compete_fba_beat_by_percent float How much should change price in percents for Fulfilled By Amazon offers
compete_mfn_type float Action type for Merchant Fulfilled offers
compete_mfn_beat_by_price float How much should change price for Merchant Fulfilled offers
compete_mfn_beat_by_percent float How much should change price in percents for Merchant Fulfilled offers
compete_buybox_eligible_only boolean Take only buybox eligible offers or all offers
item_condition integer An Item condition: 0-ALL, 1-NEW, 2-USED
min_sellers_rating integer Minimal seller rating you wold like to compete with (0-100)
min_feedback_count integer - Minimal Seller Feedback count your competitors must have 0+
exclude_sellers_list array Exclude sellers from competition by their Amazon IDs
include_sellers_list array Only this list of sellers will compete with
scenario_if_no_competition integer How to reprice when there is no competition: 0 - do not reprice, 1 - go to min, 2 - go to max
scenario_if_competition_below_min integer How to reprice when the competition's price is below your min: 0 - do not reprice, 1 - go to min, 2 - go to max, 3 - compete with next offer
scenario_if_competition_matches_min integer How to reprice when the competition's price matches your min: 1 - go to min, 2 - go to max, 3 - compete with next offer
scenario_if_buybox_winner integer How to reprice when your offer is the BuyBox winner: 0 - do not reprice, 5 - reprice as normal
created_at DateTime When startegy was created
updated_at DateTime When strategy was updated

Request example

PUT /api/v1/strategies/1 HTTP/1.1
Host: repricer.online
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json
{
     "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
}

Return: Strategy

Response example

HTTP/1.1 200 OK
Content-Type: application/json
{
 "status": 200,
 "data": {
     "id": 1
     "name": "My new strategy",
     "buybox_eligible_only": false,
     "beat_by_price_all": 0.01,
     "beat_by_percent_all": 0,
     "beat_by_price_fba": 0.01,
     "beat_by_percent_fba": 0,
     "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",
 }
}