Admin api stores

Create a shelf

POST
/api/admin/v2/stores/{storeId}/shelves

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

storeId*integer

Id of a physical store. The id is required when retailer want to make a call to specified store.

Request Body

application/json

gondolaId*integer

Id of a gondola

shelfIndex*integer

Index of a shelf

coordinates?

The coordinates of the shelf

Response Body

application/json

application/json

curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/stores/0/shelves" \  -H "Content-Type: application/json" \  -d '{    "gondolaId": 2,    "shelfIndex": 5  }'
{
  "gondolaId": 2,
  "shelfIndex": 5,
  "coordinates": {
    "dimX": 0,
    "dimY": 0,
    "dimZ": 0,
    "transform": {
      "translation": {
        "x": "0.8978",
        "y": "0.0254",
        "z": "2.1645"
      },
      "rotation": {
        "x": "0.8978",
        "y": "0.0254",
        "z": "2.1645"
      }
    }
  }
}
Empty
{
  "message": "Invalid request body",
  "type": "E_INVALID_BODY",
  "errors": [
    {
      "error": "\"email\" is required",
      "rule": "any.required",
      "field": "\"email\""
    }
  ]
}

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.