Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /SearchVariationGroups

Allows 150 calls per minute

Response: GenericPagedResult<VariationGroup>



Use this call to search for a variation group

Parameters

NameTypeDescription
searchTypeVariationSearchTypeThe search method to use
searchTextStringThe search term (either in part of full)
pageNumberInt32The page number (e.g. 1).
entriesPerPageInt32The number of entries to return per page.

Example Request

The following request format is required for this method.

Endpoint URL

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

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.

searchType=0&searchText=sample string 1&pageNumber=1&entriesPerPage=1

Response

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

{
  "PageNumber": 1,
  "EntriesPerPage": 2,
  "TotalEntries": 3,
  "TotalPages": 2,
  "Data": [
    {
      "VariationSKU": "sample string 1",
      "pkVariationItemId": "5a7b6b3a-09e8-4a81-8177-d529be67c633",
      "VariationGroupName": "sample string 3"
    }
  ]
}