Update a card

Updates the specified card. Use this endpoint to:

  • Activate or deactivate a card
  • Allocate funds to a card
  • Configure recurring allocations
  • Set spending limits

Permissions

ActionRequired permission
Change status_preference or nameCard owner, admin, or vendor_cards_manage permission
Change allocation paramsAdmin or vendor_cards_manage permission
Change spending limit paramsAdmin or vendor_cards_manage permission

Top-up

If you send allocated_amount_preference_cents with the same value the card already has, but the card has spent some of those funds (i.e. the actual balance is lower), the system will automatically top-up the card back to the requested amount. This is useful for refilling a card to its original balance after spending.

Example: A card was allocated 50,000 CLP. The user spent 20,000 CLP, so the actual balance is 30,000 CLP. Sending {"allocated_amount_preference_cents": 50000} again will top-up the card back to 50,000 CLP.

For a complete guide with examples, see Card Allocations.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The id of the vendor card

Body Params
string

Display name for the card.

string
enum

Desired card status. Changing to 'active' activates the card, 'inactive' temporarily disables it, and 'canceled' permanently cancels it.

Allowed:
integer | null

Target amount to allocate to the card, in cents. The card will be loaded with funds up to this amount. If you send the same value the card already has but the actual balance is lower (because the card has spent funds), the system will automatically top-up the card back to this amount.

string | null
enum

Interval at which the recurring allocation is applied.

Allowed:
string | null
enum

Priority level for allocation when company funds are distributed across multiple cards.

Allowed:
integer | null

Amount in cents to automatically allocate on each recurring interval. Use this together with allocation_interval_preference for scheduled fund loads. While allocated_amount_preference_cents sets the target amount immediately, this field configures automatic reloads on a recurring schedule.

integer | null

Spending limit for the card, in cents. The card will block transactions once spending reaches this amount within the configured interval.

string | null
enum

Interval for the spending limit. Spending resets at the beginning of each interval.

Allowed:
Headers
uuid
required

UUID of the company that owns the card.

Responses

401

Unauthorized. The API key user does not have the required permissions (admin or vendor_cards_manage) to modify allocations or spending limits.

404

Vendor card not found (or not visible to the caller).

422

Unprocessable Entity. Possible causes: read-only spending-limit fields sent
(limit_amount_cents / limit_interval / allocated_amount_cents
{ "error_code": "vendor_cards/spending_limits_readonly" }), modifying a
canceled card, invalid interval value, insufficient company balance, a
missing user ({ "message": "User not found" }), or a generic update
failure ({ "error_code": "vendor_cards/update_failed" }).

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json