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:

FieldSub-fieldAdditional Information
typeOptional
criteriaMandatory
ruleTypeMandatory
supplierIdsOptional
ConditionMandatory
amountFromOptional
amountToOptional

Example Request


{
 "type" : "PLASTIQ_ROUTING_RULE",
 "criteria": [
   {
       "ruleType": "CHK",
       "condition": "between",
       "amountTo": 200,
       "amountFrom": 100
   }
 ]
}

Example Response

👍

204 no content


Priority Technology Holdings Logo