Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

RulesEngine /TestEvaluateRule

Allows 150 calls per minute

Response: RuleEvaluationResult



Use this call to test a rule against a set of test values

Parameters

NameTypeDescription
testValuesList<TestpadValue>Test values
pkRuleIdInt32The rule to test against

Permissions

GlobalPermissions.OrderBook.RulesEngineNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/RulesEngine/TestEvaluateRule

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.

testValues=[
  {
    "FieldName": "sample string 1",
    "Key": "sample string 2",
    "Values": [
      "sample string 1"
    ]
  }
]&pkRuleId=1

Response

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

{
  "LastConditionId": 1,
  "LastActionId": 2
}