Payment Rules
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,.
post/payment_rules/{id}/replace
Headers
Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"action": "block",
"conditions": {
"all": [
{
"field": "risk_score",
"operator": "gte"
}
]
}
}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"
}