Planogram records
Methods allow you to get a complete list or a specific planogram record in Eyrene, view information about them, update all fields, or only select planogram record fields. Also, you can delete the planogram record by ID.
Retrieve a list of planograms records.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- limitstringDescriptionThe number of results to return per page.
- offsetstringDescriptionThe initial index from which to return the results.
curl –i –X GET
https://test.eyrene.com/api/v1.5/planogram_records/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "limit=3" \
-F "offset=0" {
"count":1,
"next":"http://example.com",
"previous":null,
"results":[
{
"id":1,
"rack_index":0,
"shelf_index":0,
"product_index":0,
"facing_x":6,
"facing_y":1,
"width":null,
"height":null,
"created_at":"2018-09-02T18:53:39.743058Z",
"updated_at":"2018-09-02T18:53:39.743081Z",
"planogram":32,
"sku":7386
}
]
}Response parameters​
count integer
The number of planogram records.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about planogram records.
- id string Unique ID.
- rack_index integer Rack number, from left to right starting from 0.
- shelf_index integer Shelf number in the rack, from top to bottom starting from 0.
- product_index integer Record position in the planogram. Positions are numbered left to right and top to bottom starting from 0, i.e. top left SKU in the planogram has product_index = 0 , and the bottom right one has a maximal product_index.
- facing_x integer Number of horizontal SKU facings.
- facing_y integer Number of vertical SKU facings (a pile).
- width integer Width of product.
- height integer Height of product.

Сreate a new planogram record.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionUnique ID.
- rack_indexNumberDescriptionRack number, from left to right starting from 0.
- shelf_indexNumberDescriptionShelf number in the rack, from top to bottom starting from 0.
- product_indexNumberDescriptionRecord position in the planogram. Positions are numbered left to right and top to bottom starting from 0, i.e. top left SKU in the planogram has product_index = 0 and bottom right one has a maximal product_index.
- facing_xIntegerDescriptionNumber of horizontal SKU facing.
- facing_yIntegerDescriptionNumber of vertical SKU facings (a pile).
- widthIntegerDescriptionWidth of a product.
- heightIntegerDescriptionHeight of a product.
- planogramstringDescriptionPlanogram ID.
- skustringDescriptionSKU ID.
curl –i –X POST
https://test.eyrene.com/api/v1.5/planograms/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=3" \
-F "rack_index=1" \
-F "shelf_index=0" \
-F "product_index=7" \
-F "facing_x=1" \
-F "facing_y=null" \
-F "width=null" \
-F "height=null" \
-F "planogram=11" \
-F "sku=1512"
}{
"result": "CREATED"
}Retrieve detailed information about the planogram record by ID.
- idstringrequiredDescriptionPlanogram record ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
curl –i –X GET
https://test.eyrene.com/api/v1.5/planograms/1/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’ {
"id":1,
"rack_index":0,
"shelf_index":0,
"product_index":0,
"facing_x":6,
"facing_y":1,
"width":null,
"height":null,
"created_at":"2018-09-02T18:53:39.743058Z",
"updated_at":"2018-09-02T18:53:39.743081Z",
"planogram":32,
"sku":7386
}Response parameters
id string
Unique ID.
rack_index integer
Rack number, from left to right starting from 0.
shelf_index integer
Shelf number in the rack, from top to bottom starting from 0.
product_index integer
Record position in the planogram. Positions are numbered left to right and top to bottom starting from 0, i.e. top left SKU in the planogram has product_index = 0 , and the bottom right one has a maximal product_index.
facing_x integer
A number of horizontal SKU facings.
facing_y integer
A number of vertical SKU facings (a pile).
width integer
Width of a product.
height integer
Height of a product.
planogram string
Planogram ID.
sku string
SKU ID.

Update all fields of the planogram record.
- idstringrequiredDescriptionPlanogram ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionUnique ID.
- rack_indexNumberDescriptionRack number, from left to right starting from 0.
- shelf_indexNumberDescriptionShelf number in the rack, from top to bottom starting from 0.
- product_indexNumberDescriptionRecord position in the planogram. Positions are numbered left to right and top to bottom starting from 0, i.e. top left SKU in the planogram has product_index = 0 and bottom right one has a maximal product_index.
- facing_xstringDescriptionNumber of horizontal SKU facings.
- facing_ystringDescriptionNumber of vertical SKU facings (a pile).
- widthstringDescriptionWidth of a product.
- heightstringDescriptionHeight of a product.
- planogramstringDescriptionPlanogram ID.
- skustringDescriptionSKUÂ ID.
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/planogram_records/1/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=3" \
-F "rack_index=1" \
-F "shelf_index=3" \
-F "product_index=4" \
-F "facing_x=6" \
-F "facing_y=1" \
-F "width=132" \
-F "height=30" \
-F "planogram=1" \
-F "sku=11"{
"id":3,
"rack_index":1,
"shelf_index":3,
"product_index":4,
"facing_x":6,
"facing_y":1,
"width":132,
"height":30,
"created_at":"2018-09-02T18:53:39.743058Z",
"updated_at":"2018-09-02T18:53:39.743081Z",
"planogram":1,
"sku":11
}​Response parameters
id string
Unique ID.
rack_index integer
Rack number, from left to right starting from 0.
shelf_index integer
Shelf number in the rack, from top to bottom starting from 0.
product_index integer
Record position in the planogram. Positions are numbered left to right and top to bottom starting from 0, i.e. top left SKU in the planogram has product_index = 0 , and the bottom right one has a maximal product_index.
facing_x integer
A number of horizontal SKU facings.
facing_y integer
A number of vertical SKU facings (a pile).
width integer
Width of a product.
height integer
Height of a product.
planogram string
Planogram ID.
sku string
SKU ID.

Update some fields in the planogram record.
- idstringrequiredDescriptionPlanogram ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionUnique ID.
- rack_indexNumberDescriptionRack number, from left to right starting from 0.
- shelf_indexNumberDescriptionShelf number in the rack, from top to bottom starting from 0.
- product_indexNumberDescriptionRecord position in the planogram. Positions are numbered left to right and top to bottom starting from 0, i.e. top left SKU in the planogram has product_index = 0 and bottom right one has a maximal product_index.
- facing_xIntegerDescriptionNumber of horizontal SKU facings.
- facing_yIntegerDescriptionNumber of vertical SKU facings (a pile).
- widthstringDescriptionWidth of a product.
- heightstringDescriptionHeight of a product.
- planogramstringDescriptionPlanogram ID.
- skustringDescriptionSKUÂ ID.
curl –i –X PATCH
https://test.eyrene.com/api/v1.5/planogram_records/1/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=3" \
-F "rack_index=1" \
-F "shelf_index=3" {
"id":3,
"rack_index":1,
"shelf_index":3,
"product_index":0,
"facing_x":6,
"facing_y":1,
"width":null,
"height":null,
"created_at":"2018-09-02T18:53:39.743058Z",
"updated_at":"2018-09-02T18:53:39.743081Z",
"planogram":32,
"sku":7386
}Response parameters​
id string
Unique ID.
rack_index integer
Rack number, from left to right starting from 0.
shelf_index integer
Shelf number in the rack, from top to bottom starting from 0.
product_index integer
Record position in the planogram. Positions are numbered left to right and top to bottom starting from 0, i.e. top left SKU in the planogram has product_index = 0 , and the bottom right one has a maximal product_index.
facing_x integer
A number of horizontal SKU facings.
facing_y integer
A number of vertical SKU facings (a pile).
width integer
Width of a product.
height integer
Height of a product.
planogram string
Planogram ID.
sku string
SKU ID.

Delete planogram record by ID.
- idstringrequiredDescriptionPlanogram ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
curl –i –X DELETE
https://test.eyrene.com/api/v1.5/planogram_records/1/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’{
"result":"OK"
}