Update a payment rule
Changes the rule's name or metadata, keeping its ID and everything recorded against it. What the rule does is fixed once created, so the payments it decided keep naming the rule that decided them; use replace to change that.
Request body
Example request
{
"metadata": {
"team": "risk"
},
"name": "Review risky cards"
}Response
The updated rule
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.51
- ●
added the new
card_binenum value to the///response property for the response statusresponse-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
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.