Update Rule
Overview
This route will allow user to update rule for PlastiqPay. The user can update the criterias under the rule using the PUT API. To update any existing criteria or to add a new criteria, user must pass the existing criterias as well, else the criterias that are not passed with get overridden/deleted.
Resource Access
PUT https://<hostname>/buyer/v1/buyer/<buyerID>/rule/<ruleID>
Arguments
The requested criteria can be a combination of one or more of the following fields:
Field | Sub-field | Additional Information |
---|---|---|
type | Optional | |
criteria | Mandatory | |
ruleType | Mandatory | |
supplierIds | Optional | |
Condition | Mandatory | |
amountFrom | Optional | |
amountTo | Optional |
Example Request
{
"type" : "PLASTIQ_ROUTING_RULE",
"criteria": [
{
"ruleType": "CHK",
"condition": "between",
"amountTo": 200,
"amountFrom": 100
}
]
}
Example Response
204 no content
Updated 3 days ago