Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /AddVariationItems

Allows 250 calls per minute

Response: List<VariationItem>



Use this call to add a new item to a variation group

Parameters

NameTypeDescription
pkVariationItemIdGuidThe variation group id
pkStockItemIdsList<Guid>The list of item ids to add

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Stock/AddVariationItems

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

pkVariationItemId=227d165b-a03c-4d30-b439-7134cb595a2b&pkStockItemIds=[
  "6c3e4eee-6e61-46d1-b1d2-fa823e7af803"
]

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  {
    "pkRowId": "c2410873-dde9-44ef-86d2-3898208bcc51",
    "pkStockItemId": "d4b020ec-0f49-4331-a96f-ce21b2a5c895",
    "ItemNumber": "sample string 3",
    "ItemTitle": "sample string 4"
  }
]