Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

RulesEngine /GetValuesFromExisting

Allows 150 calls per minute

Response: List<TestpadValue>



Use this call to get test values from an existing object based on the fields used by a given rule.

Parameters

NameTypeDescription
pkRuleIdInt32The rule id
idObjectThe id (rule-type specific, for orders it is the Linnworks Order Id).

Permissions

GlobalPermissions.OrderBook.RulesEngineNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/RulesEngine/GetValuesFromExisting

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.

pkRuleId=1&id={}

Response

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

[
  {
    "FieldName": "sample string 1",
    "Key": "sample string 2",
    "Values": [
      "sample string 1"
    ]
  }
]