Create a business spend control
/v1/businesses/{id}/authorization-controlsRequires an API client bearer token.
Stores a spend control (MCC, country, channel and entry-mode lists, a per-transaction cap) that binds every business card of the business, the membership or the card group it names. 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. A body naming no restriction is 422. Requires an Idempotency-Key. 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 with can_grant_cards, else 403 acting_person_not_permitted (403 admin_kyc_not_complete when the KYC of the admin no longer holds). Every call with a well-formed body and an Idempotency-Key not already used with a different body, 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 to every authenticated, well-formed request not replaying an outcome stored while it was on, as if absent.
Parameters
Path parameters
| Name | Required | Description |
|---|---|---|
| id | required |
Header parameters
| Name | Required | Description |
|---|---|---|
| Idempotency-Key | required | Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409. |
| X-Rigid-Acting-Person | optional |
Request body
Example
curl -X POST https://api.rigid.fi/v1/businesses/{id}/authorization-controls \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"scope": "business",
"scope_id": "uuid"
}'Responses
201Create a business spend control — the stored control, with its scope.
400scope_not_of_business; invalid_body; acting_person_required
401Authentication required
403Forbidden
404Business not found, or the business routes are not released
409Idempotency-Key reused with a different payload; business_closed
422control_restricts_nothing: the body names no restriction
500Internal server error