Skip to content

Set product-set items

Request

This method set given products (minimum 0, maximum 50), defined by product variant code to the bundle of products (product-set). Product defined in url by guid, must be set as type : product-set. When successfully saved, complete list of products in the set is returned in response. It is not allowed to add a product of the product-set type to an existing product set.

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
guidstringrequired

Product guid - Must be product-set type.

Example:93bc0dbe-7481-11e8-8216-002590dad85e
Bodyapplication/json
dataobjectrequired
curl -i -X PUT \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/93bc0dbe-7481-11e8-8216-002590dad85e/set \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "setItems": [
        {
          "code": "0008",
          "amount": "1.000"
        }
      ]
    }
  }'

Responses

OK

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "items": [] }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }