This method set given products (minimum 0, maximum 50), defined with guid to the alternative product list. After product
is successfully saved, complete list of alternative product is returned in response.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/{guid}/alternativeProducts
- https://api.myshoptet.comhttps://api.myshoptet.com/api/products/{guid}/alternativeProducts
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X PUT \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/93bc0dbe-7481-11e8-8216-002590dad85e/alternativeProducts \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"alternativeProducts": [
{
"guid": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed"
}
]
}
}'Response
{ "data": { "items": [ … ] }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }