Skip to content

Create a business

POST/v1/businesses

Requires 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

NameRequiredDescription
Idempotency-Keyrequired

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-Personoptional

Request body

programme_idstring (uuid)required
legal_namestringrequired
trading_namestring
legal_form"company" | "partnership" | "sole_trader" | "trust" | "foundation" | "other"required
registration_countrystringrequired
registration_numberstring
founding_adminobjectrequired
+ show properties
cardholder_idstring (uuid)required
relationship"owner" | "director" | "employee" | "contractor" | "sole_trader"required
authority_evidence_refstringrequired

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

201

Create a business — the result.

idstring (uuid)required
programme_idstring (uuid)required
mode"test" | "live"required
legal_namestringrequired
trading_namestring | nullrequired
legal_form"company" | "partnership" | "sole_trader" | "trust" | "foundation" | "other"required
registration_countrystringrequired
registration_numberstring | nullrequired
status"active" | "disabled" | "closed"required
spend_enabledbooleanrequired
spend_enabled_basisone ofrequired
+ show properties

One of

Option 1

{
  "type": "string",
  "enum": [
    "test_mode",
    "customer_attested"
  ]
}

Option 2

{
  "type": "null"
}

Option 3

{
  "type": "null"
}
spend_enabled_atstring (date-time) | nullrequired
funding_account_idstring | nullrequired
funding_currencystring | nullrequired
created_atstring (date-time)required
disabled_atstring (date-time) | nullrequired
closed_atstring (date-time) | nullrequired
400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Caller may not act on the programme, or (acting_person_not_permitted) the acting person is not the founding admin

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Not found (cardholder_not_found), or the business routes are not released

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

Idempotency-Key reused with a different payload; or (admin_requirements_not_met) the founding admin misses kyc or authority_evidence

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
422

The founding admin is a cardholder of another programme (cardholder_not_in_programme)

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring