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
| Action | Required permission |
|---|---|
| Change status_preference or name | Card owner, admin, or vendor_cards_manage permission |
| Change allocation params | Admin or vendor_cards_manage permission |
| Change spending limit params | Admin 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.
Path parameters
The id of the vendor card
Parameters
Request body
Example request
{
"name": "AWS",
"allocated_amount_preference_cents": 50000,
"recurring_allocation_amount_cents": 50000,
"limit_amount_preference_cents": 100000
}Response
Body of the updated vendor card.
Example response
{
"id": "Q2FyZDoxMDIwNjQ5Mw==",
"user_id": "U2MGkNZT6zNPKtB85OpJi9SjFvG2",
"type": "PomeloCard",
"name": "AWS",
"last4": "4163",
"status_preference": "inactive",
"migrated": true,
"limit_amount": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"limit_interval": "daily",
"limit_amount_preference": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"allocated_amount": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"allocated_amount_preference": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"recurring_allocation_amount_cents": 50000,
"remaining_balance": "2000.0",
"spent": 472025,
"company_expendable_balance_in_limit_currency": "3200000.0",
"spent_in_interval_with_limit_currency": 472025,
"vendor_max_allocation": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"preference_restricted_spendable": "2000.0",
"spent_in_interval": 472025,
"spent_in_vendor_interval": 472025
}Changes
No recorded changes to this endpoint across all 1 revision of this API.