Skip to content

List businesses

GET/v1/businesses

Requires an API client bearer token.

Lists businesses, oldest first; pass the last row's id as starting_after. An API client must name its acting person and lists only the businesses where that person holds an active membership; console staff list by programme visibility. Every business returned writes one business.read audit intent. A list refused before any business is read (no or a malformed acting person, a programme outside the caller's) decides on no business and writes none. While the `business-cards` release flag is off for the caller's mode this route answers 404 to every authenticated, well-formed request, as if absent.

Parameters

Query parameters

NameRequiredDescription
programme_idoptional
limitoptional
starting_afteroptional

Header parameters

NameRequiredDescription
X-Rigid-Acting-Personoptional

Example

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

Responses

200

List businesses — the result.

dataarray of objectrequired
+ show properties
idstring (uuid)required
programme_idstring (uuid)required
mode"test" | "live"required
legal_namestringrequired
trading_namestring | nullrequired
legal_form"company" | "partnership" | "sole_trader" | "trust" | "foundation" | "other"required
registration_countrystringrequired
registration_numberstring | nullrequired
status"active" | "disabled" | "closed"required
spend_enabledbooleanrequired
spend_enabled_basisone ofrequired
+ show properties

One of

Option 1

{
  "type": "string",
  "enum": [
    "test_mode",
    "customer_attested"
  ]
}

Option 2

{
  "type": "null"
}

Option 3

{
  "type": "null"
}
spend_enabled_atstring (date-time) | nullrequired
funding_account_idstring | nullrequired
funding_currencystring | nullrequired
created_atstring (date-time)required
disabled_atstring (date-time) | nullrequired
closed_atstring (date-time) | nullrequired
has_morebooleanrequired
next_cursorstring (uuid) | nullrequired
400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

The business routes are not released

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring