Budget

Assign cards to a balance group

Binds one or more cards to this balance group, moving each from any previous group (a card belongs to at most one group). A prepaid card carries its loaded balance with it, growing this group's pool.

Requires admin or the budgets_manage permission. If the group has been dissolved, the request is rejected with 422. Returns the updated group (reloaded).

post/v1/budgets/{id}/assign_cards

Request

  • Base URL
    https://api.cardda.com
  • URL
    https://api.cardda.com/v1/budgets/{id}/assign_cards
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

The UUID of the balance group (budget).

Parameters

#/paths/~1v1~1bills/get/parameters/0 (unresolved $ref)

Request body

card_idsstring[] required

UUIDs of the cards to bind to this group. Each card is moved from any previous group (a card belongs to at most one group). A prepaid card carries its loaded balance with it, growing this group's pool.

Example request

{
  "card_ids": [
    "789a1234-b56c-78d9-e012-345678901234",
    "bcd23456-7890-abcd-ef01-234567890123"
  ]
}

Response

The updated balance group.

OR

Example response

{
  "name": "Marketing",
  "description": "Presupuesto del equipo de marketing",
  "currency": "CLP",
  "mode": "funded",
  "allocated_amount_cents": 5000000,
  "committable_cents": 3200000,
  "available_cents": 3500000,
  "consumed_balance_cents": -1500000,
  "used_cents": 1500000,
  "remaining_cents": 3500000,
  "vendor_cards": [
    {
      "last4": "4242",
      "limit_currency": "CLP"
    }
  ],
  "recurrence_unit": "month",
  "recurrence_every": 1,
  "base_amount_cents": 5000000,
  "period_ends_on": "2026-11-20",
  "ends_on": "2026-12-01"
}

Changes

No recorded changes to this operation across all 1 revision of this API.