Skip to content

Top up a business

POST/v1/businesses/{id}/topup

Requires an API client bearer token.

Moves money from the programme's float into the business's spending account, the one every card of the business spends from. The business's first top-up (or first card) creates the account, in the currency of that amount; one currency per business account. Requires an Idempotency-Key: a retry with the same key and body answers the stored transfer with replayed true before any state check, also after the business was disabled or its spend gate closed, to a caller who could top up again (the business visible, the acting person holding can_fund); the key with another body is 409 idempotency_key_reused. Refused on a disabled or closed business (409 business_disabled, business_closed), with its spend gate closed (409 business_spend_disabled), without the ledger module, and in live mode. An API client names its acting person in X-Rigid-Acting-Person; the person needs an active membership with can_fund, else 403 acting_person_not_permitted. Every call with a valid body is audited: the transfer, each replay of it, and every refusal with a code, the Idempotency-Key refusals included. While the `business-cards` release flag is off for the caller's mode this route answers 404 to every authenticated, well-formed request not replaying an outcome stored while it was on, as if absent.

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.

X-Rigid-Acting-Personoptional

Request body

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

Example

curl -X POST https://api.rigid.fi/v1/businesses/{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

The transfer and the business account balance after it.

business_idstring (uuid)required
funding_account_idstringrequired
source_account_idstringrequired
transfer_idstringrequired
availableobjectrequired
+ show properties
amountstringrequired
currency"EUR" | "GBP" | "USD"required
replayedbooleanrequired
400

Validation error

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 a business top-up, pending scheme certification

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Business not found, or the business routes are not released

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

business_disabled; business_closed; business_spend_disabled; business_account_sealed; module_not_enabled; or idempotency_key_reused, the Idempotency-Key used with a different payload

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring