For developers / Api documentation / Methods /

Create Store

Back

Endpoint

POST https://api.repricer.online/v1/stores

Headers

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

Params

Name Type Description
id integer Store ID
market_id integer Marketplace ID
strategy_id integer Strategy ID (if null will set default strategy)
name string New Store's name
is_active boolean If equal false market will be inactive.
is_read_only boolean If equal true prices won't be sending in a marketplaces (test mode)
min_price_shift float In percentages. Allow the system to set a minimum price for new products automatically.
max_price_shift float In percentages. Allow the system to set a maximum price for new products automatically.
credentials.amazon_seller_id string Amazon Seller ID
credentials.amazon_auth_token string Amazon Auth Token
currency_code string Currency Code
price_changes_period integer Price changes period. 0 - turn off

Request example

POST https://api.repricer.online/v1/stores HTTP/1.1
Host: localhost:8081
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json
{
   "market_id": 1,
   "strategy_id": 1,
   "name": "My new store",
   "is_active": true,
   "is_read_only": false,
   "min_price_shift": 10,
   "max_price_shift": 20.60
   "credentials": {
      "amazon_seller_id": "45789875898GH",
      "amazon_auth_token": "DF*SDJHSDFYNXZC8789zxXZCNBMNNXC"
   }
}

Return: Store

Response example

HTTP/1.1 201 Created
Content-Type: application/json
{
  "status": 201,
  "data": {
     "market_id": 1,
     "strategy_id": 1,
     "name": "My new store",
     "is_active": true,
     "is_read_only": false,
     "updated_at": "2018-04-05 10:58:36 EDT",
     "created_at": "2018-04-05 10:58:36 EDT",
     "id": 16,
     "credentials": {
         "amazon_seller_id": "45789875898GH",
         "amazon_auth_token": "DF*SDJHSDFYNXZC8789zxXZCNBMNNXC"
     },
     "min_price_shift": 20,
     "max_price_shift": 20.6,
     "price_changes_period": 0
  }
}