Skip to content

Retrieve a business's balance

GET/v1/businesses/{id}/balance

Requires 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

NameRequiredDescription
idrequired

Header parameters

NameRequiredDescription
X-Rigid-Acting-Personoptional

Example

curl https://api.rigid.fi/v1/businesses/{id}/balance \
  -H "Authorization: Bearer $RIGID_API_TOKEN"

Responses

200

The business account's balance.

business_idstring (uuid)required
funding_account_idstringrequired
asset"EUR" | "GBP" | "USD"required
ledgerstringrequired
availablestringrequired
pending_instringrequired
heldstringrequired
400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Business not found, or the business routes are not released

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

no_funding_account: the business has no account yet

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring