Skip to content

List the velocity controls of a business

GET/v1/businesses/{id}/velocity-controls

Requires an API client bearer token.

Lists the velocity controls (windowed count and amount limits) of one scope: pass scope and scope_id together, or neither for the business itself. scope and scope_id name the business itself, one of its memberships or one of its card groups; any other scope_id is 400 scope_not_of_business. Every row carries its scope and scope_id; the list is not paginated. An API client names its acting person in X-Rigid-Acting-Person (400 acting_person_required without it); the person needs an active membership of the business, else 403 acting_person_not_permitted. Every call, allowed or refused, writes one audit intent with the API client, the asserted person, the business and the decision. While the `business-cards` release flag is off for the mode of the caller this route answers 404, as if absent.

Parameters

Path parameters

NameRequiredDescription
idrequired

Query parameters

NameRequiredDescription
scopeoptional
scope_idoptional

Header parameters

NameRequiredDescription
X-Rigid-Acting-Personoptional

Example

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

Responses

200

List the velocity controls of a business — the page.

dataarray of objectrequired
+ show properties
window"hour" | "day" | "month"required
max_countinteger
max_amountstring
idstringrequired
scope"business" | "membership" | "card_group"required
scope_idstringrequired
has_morebooleanrequired
next_cursorstring | nullrequired
400

scope_query_incomplete; scope_not_of_business; acting_person_required

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
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring