Disable a business
/v1/businesses/{id}/disableRequires an API client bearer token.
Moves the business from active to disabled, with a rationale. One way: there is no re-enable, by any route. Every card of the business is declined at authorization from then on; no card, grant or membership is changed. A disabled business refuses opening its spend gate, issuance, top-up and new grants. Requires an Idempotency-Key. Emits business.updated with changed [status]. 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 role admin, else 403 acting_person_not_permitted. 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 caller's mode 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}/disable \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"rationale": "string"
}'Responses
200Disable a business — the result.
+ show properties− hide properties
One of
Option 1
{
"type": "string",
"enum": [
"test_mode",
"customer_attested"
]
}Option 2
{
"type": "null"
}Option 3
{
"type": "null"
}400Validation error
401Authentication required
403Forbidden
404Business not found, or the business routes are not released
409Idempotency-Key reused with a different payload; business_already_disabled; business_closed
500Internal server error