Update the interval of transaction rule
PATCH {{baseUrl}}/transactionRules/:transactionRuleId
Updates a transaction rule. * To update only the status of a transaction rule, send only the status
parameter. All other parameters not provided in the request are left unchanged. * When updating any other parameter, you need to send all existing resource parameters. If you omit a parameter in the request, that parameter is removed from the resource.
Request Body
{"description"=>"Allow only point-of-sale transactions", "reference"=>"{{$guid}}_4F7346", "entityKey"=>{"entityType"=>"paymentInstrument", "entityReference"=>"PI3227C223222B5FG88SB8BHR"}, "status"=>"inactive", "interval"=>{"type"=>"weekly"}, "ruleRestrictions"=>{"processingTypes"=>{"operation"=>"noneMatch", "value"=>["pos"]}}, "type"=>"blockList"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"aggregationLevel":"paymentInstrument","description":"Up to 1000 EUR per card for the last 12 hours","entityKey":{"entityReference":"PG3227C223222C5GXR3M5592Q","entityType":"paymentInstrumentGroup"},"interval":{"duration":{"unit":"hours","value":12},"timeZone":"UTC","type":"sliding"},"outcomeType":"hardBlock","reference":"YOUR_REFERENCE_2918A","requestType":"authorization","ruleRestrictions":{"totalAmount":{"operation":"greaterThan","value":{"currency":"EUR","value":100000}}},"startDate":"2022-11-17T00:07:09.10057663+01:00","status":"inactive","type":"velocity","id":"TR3227C223222C5GXR3XP596N"}