Retrieve a business's balance
/v1/businesses/{id}/balanceRequires an API client bearer token.
Reads the balance of the business's spending account straight from the ledger: the account every card of the business spends from (an API client's balance read of a business card is refused; this is where it is read). 409 no_funding_account before the first card or top-up created the account. An API client names its acting person in X-Rigid-Acting-Person; the person needs an active membership with role admin, else 403 acting_person_not_permitted. Every read writes one business.read audit intent. While the `business-cards` release flag is off for the caller's mode this route answers 404.
Parameters
Path parameters
| Name | Required | Description |
|---|---|---|
| id | required |
Header parameters
| Name | Required | Description |
|---|---|---|
| X-Rigid-Acting-Person | optional |
Example
curl https://api.rigid.fi/v1/businesses/{id}/balance \
-H "Authorization: Bearer $RIGID_API_TOKEN"Responses
200The business account's balance.
400Validation error
401Authentication required
403Forbidden
404Business not found, or the business routes are not released
409no_funding_account: the business has no account yet
500Internal server error