Skip to content

Record a business verification (open the spend gate)

POST/v1/businesses/{id}/verification

Requires an API client bearer token.

Opens the business's spend gate on the customer's attestation (basis customer_attested, with a rationale and an evidence reference). Admin scope only. The gate opens once: an open gate, a disabled or a closed business is a 409. Requires an Idempotency-Key. Emits business.spend_enabled. 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

NameRequiredDescription
idrequired

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

basis"customer_attested"required
rationalestringrequired
evidence_refstringrequired

Example

curl -X POST https://api.rigid.fi/v1/businesses/{id}/verification \
  -H "Authorization: Bearer $RIGID_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "basis": "customer_attested",
  "rationale": "string",
  "evidence_ref": "string"
}'

Responses

200

Record a business verification (open the spend gate) — 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

Admin scope required (admin_scope_required), or the acting person is not permitted

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Business not found, or the business routes are not released

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

Idempotency-Key reused with a different payload; spend_already_enabled; business_disabled; business_closed

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring