Replace a payment rule
Deletes this rule and creates its successor in one step. The successor carries a new ID and the metadata of the rule it replaced,.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"action": "review",
"conditions": {
"all": [
{
"field": "risk_score",
"operator": "gte",
"value": 70
}
]
}
}Response
The rule that replaced this one
Example response
{
"account_id": "biz_xxxxxxxxxxxxxx",
"action": "block",
"conditions": {
"all": [
{
"field": "risk_score",
"operator": "gte"
}
]
},
"created_at": "2026-01-01T12:00:00.000Z",
"id": "prule_xxxxxxxxxxxxxx",
"metadata": {},
"name": "Block high risk",
"status": "active",
"updated_at": "2026-01-01T12:00:00.000Z"
}Changes
Changed in 3 of the 74 revisions of this API.56
- ●
added the new
card_binenum value to the///response property for the response statusresponse-property-enum-value-added
- ○
added the new
card_binenum value to the request property///request-property-enum-value-added
- ●
- ●
added the new
amount_in_usdenum value to the///response property for the response statusresponse-property-enum-value-added
- ●
added the new
in_cidrenum value to the///response property for the response statusresponse-property-enum-value-added
- ●
added the new
ip_addressenum value to the///response property for the response statusresponse-property-enum-value-added
- ●
added the new
reviewenum value to theresponse property for the response statusresponse-property-enum-value-added
- ○
added the new
amount_in_usdenum value to the request property///request-property-enum-value-added
- ○
added the new
in_cidrenum value to the request property///request-property-enum-value-added
- ○
added the new
ip_addressenum value to the request property///request-property-enum-value-added
- ○
added the new
reviewenum value to the request propertyrequest-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
endpoint added
endpoint-added
- ○
Of the 74 revisions, 1 has no diff computed.