Skip to main content
Weavr API
Spend controls

Update spend rules for a card

PATCH/managed_cards/{id}/spend_rules

Updates the card-level spend rules of the managed card identified by the id path parameter. Use this once the card has rules; to set them for the first time, use Create spend rules.

The same fields are accepted as on create: merchant, MCC, and country allow and block lists, the allow* transaction-type switches, transaction size bounds, and spendLimit.

Updating spend limits

updateSpendLimitMethod controls how the spendLimit you send is applied:

MethodEffect
OVERWRITEReplaces the existing limits with the ones supplied. This is the default.
INCREMENTAdds the supplied value to the existing limit for that interval.

INCREMENT combined with an ALWAYS interval is how you top a card up on your own schedule. Incrementing a lifetime limit monthly, for instance, leaves any unused allowance from earlier periods available to spend, which a fixed MONTHLY limit would not.

Rollover

Set rolloverPolicy.rolloverNegative to true on a spend limit to carry overspend into subsequent intervals. This applies per card; to change it across many cards at once, use Update spend rules in bulk.

Request

Available on
SandboxProduction

Path parameters

Header parameters

Request body

*
application/json
{}
UpdateCardLevelSpendRulesUpdateCardLevelSpendRules · object · 16 fields

Responses

204No Content

Success - No Content.

Headers