Top up a card from the programme float
/v1/cards/{id}/topupRequires an API client bearer token.
Moves money from the programme float onto the funding account the named card draws on. For a person card that account belongs to the card's CARDHOLDER, not the card: every card that draws on it spends from the same balance, so a top-up addressed to one card raises the balance available to all of them. A card issued while the ledger module was off (or switched on but not yet known to the cards service), before its cardholder had an account, draws on none and cannot be topped up. This moves money; it does not create it — see CardTopupRequest. A business card spends from its business's shared account, which is topped up only through POST /v1/businesses/{id}/topup: this route refuses it 409 business_card_topup_refused. Refused in live mode (403 live_mode_card_read_only) pending scheme certification. Requires an Idempotency-Key header.
Parameters
Path parameters
| Name | Required | Description |
|---|---|---|
| id | required |
Header parameters
| Name | Required | Description |
|---|---|---|
| Idempotency-Key | required | Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409. |
Request body
+ show properties− hide properties
Example
curl -X POST https://api.rigid.fi/v1/cards/{id}/topup \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"amount": {
"amount": "string",
"currency": "EUR"
}
}'Responses
200Result of the top-up.
+ show properties− hide properties
400Validation error — including a missing/never-minted programme float, a currency mismatch between the top-up and the funding account, or a programme float that needs filling before it can fund this card
401Authentication required
403Forbidden — the caller may not act on this programme, or (code `live_mode_card_read_only`) live mode refuses every top-up, a retry included, pending scheme certification
404Card not found
409Idempotency-Key reused with a different payload, the card has no funding account (issued pre-#214; while the ledger module was off, or switched on but not yet known to the cards service, and before its cardholder had one; or, for a card issued before issuance began refusing the case, before its programme's configuration had reached the cards service), or the programme does not have the ledger module enabled (code `module_not_enabled`), or the card is a business card, funded through its business's top-up (code `business_card_topup_refused`)
500Internal server error
503This programme's module configuration has not been received yet (code `config_cold`) — retry