Create a business
/v1/businessesRequires an API client bearer token.
Creates a business under the given programme with exactly one founding admin, who gets role admin and all seven permissions; the admin requirements apply (KYC complete and not failed, an authority-to-act evidence reference). An API client's acting person must be the founding admin. The spend gate is open (basis test_mode) in test mode and closed in live mode. Requires an Idempotency-Key. Emits business.created and business_membership.added. 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
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
+ show properties− hide properties
Example
curl -X POST https://api.rigid.fi/v1/businesses \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"programme_id": "uuid",
"legal_name": "string",
"legal_form": "company",
"registration_country": "string",
"founding_admin": {
"cardholder_id": "uuid",
"relationship": "owner",
"authority_evidence_ref": "string"
}
}'Responses
201Create 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
403Caller may not act on the programme, or (acting_person_not_permitted) the acting person is not the founding admin
404Not found (cardholder_not_found), or the business routes are not released
409Idempotency-Key reused with a different payload; or (admin_requirements_not_met) the founding admin misses kyc or authority_evidence
422The founding admin is a cardholder of another programme (cardholder_not_in_programme)
500Internal server error