Skip to content

List the spend controls of a business

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

Requires an API client bearer token.

Lists the spend controls 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. A control binds every business card of its business, membership or card group, and nothing else. 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
limitoptional
starting_afteroptional

Header parameters

NameRequiredDescription
X-Rigid-Acting-Personoptional

Example

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

Responses

200

List the spend controls of a business — the page.

dataarray of objectrequired
+ show properties
mcc_allowarray of string
mcc_denyarray of string
country_allowarray of string
country_denyarray of string
channels_denyarray of "pos" | "ecommerce" | "atm" | "moto"
entry_mode_denyarray of "contactless" | "chip" | "magstripe" | "manual"
max_amountstring
idstringrequired
activebooleanrequired
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