Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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=85c40190-a4ba-4801-a282-237eac0e3d2f&pkStockItemIds=[
  "8b6ce2d2-31aa-48ce-90ad-19c49c9f9dc2"
]

Response

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

[
  {
    "pkRowId": "0f5d1aaa-c7be-4fdd-96d8-dd03a0e581d8",
    "pkStockItemId": "cb6c2afb-edb5-4089-9114-017cf1e6b220",
    "ItemNumber": "sample string 3",
    "ItemTitle": "sample string 4"
  }
]