IBExWalletAPI
PrivacyUserdata

Write company (KYB) userdata (company-first)

Writes company (KYB) tenant userdata (safe.tenant.*, documents, partner CRM keys). The URL is company-scoped: pass `companyRegistrationNumber` (SIREN, 9 digits) plus exactly one person selector (email or externalUserId) — IBEX resolves the representative dossier internally. Company PA mandate PDF: upload with key mandat (or custom mandateKey on push) via this route — not POST /domain/users/:id/userdata. Same upstream store as legacy POST /domain/users/:id/company/userdata. Individual (KYC) userdata remains on POST /domain/users/:id/userdata. Returns 409 when several dossiers match the same person + SIREN.

POST
/v1.2/domain/companies/userdata

Authorization

x-api-key<token>

In: header

Request Body

application/jsonRequired
companyRegistrationNumberRequiredstring

French SIREN (9 digits) — selects the company dossier

Pattern: "^[0-9]{9}$"
dataRequiredobject

Key/value pairs to write on the KYB store.

externalUserIdstring

Partner person id (UUID) — one selector only

emailstring

Trusted login email — resolves person via contact lookup

Format: "email"
kyCustomerIdinteger

Reserved — not supported as sole selector yet; use email or externalUserId

curl -X POST "https://passkeys-productionv2.ibex.fi/v1.2/domain/companies/userdata" \
  -H "x-api-key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "companyRegistrationNumber": "string",
    "data": {},
    "externalUserId": "string",
    "email": "user@example.com",
    "kyCustomerId": 0
  }'

Default Response

{
  "success": true
}