Skip to content

Top up a card from the programme float

POST/v1/cards/{id}/topup

Requires 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

NameRequiredDescription
idrequired

Header parameters

NameRequiredDescription
Idempotency-Keyrequired

Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409.

Request body

amountobjectrequired
+ show properties
amountstringrequired
currency"EUR" | "GBP" | "USD"required
referencestring

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

200

Result of the top-up.

card_idstringrequired
funding_account_idstringrequired
source_account_idstringrequired
transfer_idstringrequired
availableobjectrequired
+ show properties
amountstringrequired
currency"EUR" | "GBP" | "USD"required
replayedbooleanrequired
400

Validation 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

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden — 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

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Card not found

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

Idempotency-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`)

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
503

This programme's module configuration has not been received yet (code `config_cold`) — retry

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring