GET
Get the KYC form schema
When currentStep is KYC_FORM, fetch the form definition and render it. Each program has its own form, so build the UI from the schema rather than from a fixed list of fields. Collect the answers and send them to Submit KYC data (companies: Submit KYB data).

Schema layout

data.schema is an object with three kinds of key: stepImage is a file name such as art-employment-status.svg, not a URL. Treat it as a hint for which illustration to show, from your own assets, or leave it out.

Fields

Each entry in a step is a field:
Any other property on a field is for internal use. Ignore it, and don’t send it back.

Groups

A group field (KYB forms, e.g. beneficial owners) is a repeatable sub-form. Its inputs are in fields, an array of fields in the same format. repeatable: true means the user can add several entries, minEntries is the fewest entries allowed, and entryLabel titles the section. See Submit KYB data for how entries are submitted.

Headings

A field with kyc_type: "heading" (and input_type: "heading") is a section title, not an input. Show its label, and don’t submit an answer for it.

Validation

validation can carry these rules. The “Checked on submit” column says whether the submit endpoint rejects an answer that breaks the rule. Check every rule in your form anyway, so the user sees the problem before submitting. Dropdown answers must be one of the field’s option values. The submit rejects anything else.

Conditions

A condition is an object with a key and a value list:
It holds when the field named by key currently has an answer equal to any entry in value. Compare against the option value, not the label. An unanswered field matches nothing, so the condition doesn’t hold. A condition names one field; the value list is an OR across answers. There is no AND/OR across fields within one condition. Rules for combining them:
  • A field can carry more than one condition. Apply each one on its own. Fields usually pair a visibility rule with a required rule on the same answer, for example show_if + required_if (shown and required only for “Yes”), or hide_if + required_if_not (hidden for some answers, required for the rest).
  • required: true always makes a field required, whatever its conditions say.
  • key names a field in the same step. Inside a group entry, it can also name another field of that entry. A condition can’t depend on a field in another step, because only the answers sent for this step are checked.
  • Conditions chain. A field that is hidden has no answer, so any field that depends on it is hidden as well. For example, moreInfoOnTiesToCountry shows only for a “Yes” to nationalCountryTies, which itself shows only for a “Yes” to confirmationOfResidence.
  • Don’t submit answers for hidden fields. The submit validates and stores every answer you send, including one for a field the user can’t see.
On submit, the server checks required and required_if against the answers in the same request. It does not evaluate show_if, hide_if or required_if_not, so your form must apply them.

Example

A trimmed basic-kyc-consumer schema (option lists shortened, internal properties left out):
Here employmentSector is shown and required unless the user is unemployed, retired or a student. confirmationOfResidenceDocument is shown and required only when confirmationOfResidence is Yes. Submit KYC data shows the matching submission.

Authorizations

Authorization
string
header
required

The user's access_token from authentication. The program and environment (sandbox/prod) are read from the token.

Path Parameters

applicationId
string
required

The application id from create / get.

Response

The KYC/KYB form schema

success
boolean
Example:

true

data
object