Using this endpoint you can update product priority within a category.
You can request multiple updates at once; the maximum is 300 updates per request.
Each item must identify the product by either productGuid or productCode (exactly one must be provided per item).
In case of a partial failure, the response code will be 200 OK and the errorneous items will be
listed in the errors array. In case of a complete failure, response code will be 400 BAD REQUEST.
Minimum priority is 0, maximum priority is 65535.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/categories/{categoryGuid}/productsPriority
- https://api.myshoptet.comhttps://api.myshoptet.com/api/categories/{categoryGuid}/productsPriority
curl -i -X PATCH \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/categories/5c498fb7-70ac-11e9-9208-08002774f818/productsPriority \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": [
{
"productGuid": "0198418d-acde-708e-9389-0c5113d9b5f3",
"productCode": "ABC123",
"priority": 100
}
]
}'Response
{ "data": {}, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }