POST
Submit KYC data
Submit the user’s answers against the schema. The body is keyed by step. Each step is an array of { key, data } pairs, where key is a field’s key and data is the answer:
This example is shortened: a real step must include every required field of that step in your program’s schema. This is the only accepted shape. A flat body such as { "employmentStatus": "Employed" } is rejected, because every top-level key is read as a step name: 400 VALIDATION_ERROR, Step 'employmentStatus' does not exist in schema. You don’t need to send kyc_type, label or any other schema property, only key and data.

Answer encodings

Fields with kyc_type: "documents" can’t currently be submitted through the API, so don’t send them. Use documentUrls fields (presign, PUT, then submit the s3:// URL) for uploads.
For a documentUrls field, the file extension at the end of the URL must be one of the field’s formats. A URL that isn’t s3:// is rejected with Field '<key>' document URLs must use the s3:// scheme. Base64 file contents in a documentUrls field are also rejected this way.

Required fields and conditions

The server checks each step you send. Inside that step:
  • every field with required: true, or whose required_if holds, must be present with a non-empty answer (not null, not a blank string, not an empty array);
  • every key must exist in that step of the schema, and every entry must have a data property;
  • answers must pass the field’s validation rules and, for dropdowns, match an option value.
The server doesn’t evaluate show_if, hide_if or required_if_not, so apply those in your form, and leave out answers for fields the user can’t see. See Conditions.

Saving step by step

You can send one step at a time or several at once. Each step you send replaces the answers saved for that step, so always send a step’s full set of answers, not just the changed field. Steps you don’t send are left as they were. The response tells you where the form stands: isComplete only reports whether every step has been saved. Required fields are checked when each step is submitted, not again at the end. After a complete submission, keep polling GET /v2/applications. Right after it, currentStep is PROCESSING with no requiredActions while we process the form. Show a loader, and don’t show the form again. Then the application moves to the next currentStep, usually IDENTITY_VERIFICATION. (On GET /v1/applications the form step stays for those few seconds, so keep a loader up after a successful submit until currentStep changes.)

Errors

A failed check returns 400 with code: VALIDATION_ERROR. The message starts with Request validation failed: and lists every problem, separated by commas, for example:
Messages you may see include Step '<step>' does not exist in schema, Required field '<key>' is missing, Field '<key>' does not exist in schema, Field '<key>' must be one of the valid options, and a field’s own validation.errorMessage when its regex fails. None of the answers in a failed request are saved, and previously saved steps are kept. A re-submission can also be refused with 409, with the code saying why: KYC_RESUBMISSION_IN_REVIEW while a submission is still with the verification provider — nothing is wrong, keep polling and it clears once the result arrives; KYC_RESUBMISSION_RATE_LIMITED when the attempt limit has been reached, with data.retryAfter giving the time it lifts; and KYC_RESUBMISSION_NOT_ALLOWED when verification is finished and cannot be attempted again. Show the message and don’t retry on a loop.
Upload files for documentUrls fields before submitting the step: get a presigned URL with documentType set to the field’s key (for example confirmationOfResidenceDocument), PUT the file, then submit s3://<bucket>/<key> as the answer, using the bucket and key from the presign response for that field. For companies, the main submission goes to KYB submit instead.

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.

Body

application/json

Answers keyed by step id (step-1, step-2, …, as in the schema). Each step is an array of { key, data } objects: key is the schema field's key, data is the answer. Dropdowns take the option value; dates are YYYY-MM-DD; multiple fields take an array. A documentUrls field takes the s3://<bucket>/<key> URL of a file uploaded through Document presign URL (or an array of them). A documents field can't currently be submitted through the API. A top-level key that isn't a step of the schema fails with Step '<key>' does not exist in schema. This example is shortened: a real step must include every required field of that step in your program's schema.

{key}
(Answer · object | Group entry · object)[]

One answer: key is a field's key and data is the answer. Send only key and data, no other schema property.

Response

KYC data accepted

success
boolean
Example:

true

data
object