Top up a business
/v1/businesses/{id}/topupRequires 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
| 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. |
| X-Rigid-Acting-Person | optional |
Request body
+ show properties− hide properties
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
200The transfer and the business account balance after it.
+ show properties− hide properties
400Validation error
401Authentication required
403Forbidden — 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
404Business not found, or the business routes are not released
409business_disabled; business_closed; business_spend_disabled; business_account_sealed; module_not_enabled; or idempotency_key_reused, the Idempotency-Key used with a different payload
500Internal server error