Repricer

Assign a strategy

Gives this strategy to the repricer products of the body, by their ids. The products then use the rule, the parameters and the limits of the strategy.

post/api/v1/sa/repricer/strategies/{id}/assign

Request

  • Base URL: https://app.sellerassistant.app (the document declares no server; this is the origin it was published from)
  • URL: https://app.sellerassistant.app/api/v1/sa/repricer/strategies/{id}/assign
  • Auth: one of:
    • API key in query parameter api_key
    • API key in header X-Api-Key

Path parameters

idinteger required

Strategy ID

Request body

scope'asin' | 'sku'

What the strategy goes on. asin writes it on the product, and every SKU of that product follows. sku writes an override on one row, and that override wins over the product. A PATCH of the row with strategy_id: null takes the override away. A call without a scope assigns by ASIN.

idsinteger[]

Required when scope is sku. The ids of GET /api/v1/sa/repricer/products. They are not the ids of GET /api/v1/sa/inventory/skus: the two lists hold the same SKU code under different ids, and an id of the inventory list leaves updated at 0.

Example request

{
  "scope": "asin",
  "asins": [
    {
      "asin": "B0019MQM64",
      "marketplace_id": "ATVPDKIKX0DER"
    }
  ],
  "ids": [
    1,
    2,
    3
  ]
}

Response

Products assigned

Example response

{
  "data": {
    "updated": 3
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.