Sync App Registration Status

PUT https://api.verifik.co/v2/app-registrations/{appRegistrationId}/sync

The App Registration Sync endpoint updates the status and step of an app registration process. This endpoint is useful for syncing the registration status, especially when specific conditions or criteria have been met.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer {YOUR_ACCESS_TOKEN}

Query Parameters

Name
Type
Description

appRegistrationId

string

ID for the App Registration record you would like to sync

Body

Name
Type
Required
Description

step

string

Yes

Specifies the step to update, e.g., skipKYC.

status

string

Yes

The new status of the registration, e.g., COMPLETED_WITHOUT_KYC.

Step Options and Status Combinations

skipKYC Step

Status
Description
What Happens

COMPLETED_WITHOUT_KYC

Skip KYC verification

- Validates sign-up form requirements - Updates status to ONGOING if KYC steps are not mandatory - Sends data to HubSpot integration - Returns sign-up form response with token

Note: This step only works if all mandatory KYC steps (basicInformation, document, form, liveness) are not set to "mandatory" in the project flow configuration.

instructions Step

Status
Description
What Happens

ONGOING

Continue with instructions

- Updates status to ONGOING - Moves to next step in the flow

signUpForm Step

Status
Description
What Happens

ONGOING

Continue with sign-up form

- Validates sign-up form requirements - Updates status to ONGOING - Returns sign-up form response with token

basicInformation Step

Status
Description
What Happens

ONGOING

Continue with basic information

- Updates status to ONGOING - Moves to next step in the flow

document Step

Status
Description
What Happens

ONGOING

Continue with document verification

- Updates status to ONGOING - Returns sign-up form response with token

liveness Step

Status
Description
What Happens

ONGOING

Continue with liveness verification

- Updates status to ONGOING - Returns liveness response with token

form Step

Status
Description
What Happens

ONGOING

Continue with form completion

- Updates status to ONGOING - Moves to next step in the flow

end StepCRUCIAL FOR ONBOARDING FLOWS

Status
Description
What Happens

COMPLETED

Complete registration successfully

- Validates all required fields and verifications - Updates status to COMPLETED - Returns authentication token for user login - Sends completion data to HubSpot integration - Triggers webhook events

FAILED

Mark registration as failed

- Updates status to FAILED - Returns authentication token for user login - Triggers webhook events

NEEDS_MANUAL_VERIFICATION

Require manual review

- Updates status to NEEDS_MANUAL_VERIFICATION - Returns authentication token for user login - Triggers webhook events

Example Body

Skip KYC Example

{
  "step": "skipKYC",
  "status": "COMPLETED_WITHOUT_KYC"
}

Complete Registration Example

{
  "step": "end",
  "status": "COMPLETED"
}

Mark as Failed Example

{
  "step": "end",
  "status": "FAILED"
}

Require Manual Verification Example

{
  "step": "end",
  "status": "NEEDS_MANUAL_VERIFICATION"
}

Request

curl -X PUT 'https://api.verifik.co/v2/app-registrations/{appRegistrationId}/sync' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "step": "end",
    "status": "COMPLETED"
  }'

Response

{
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "firstName": "John",
    "lastName": "Doe",
    "fullName": "John Doe",
    "step": "signUpForm",
    "steps": {
      "signUpForm": "mandatory",
      "basicInformation": "skip",
      "document": "mandatory",
      "liveness": "mandatory",
      "form": "skip"
    },
    "appRegistrationId": "507f1f77bcf86cd799439011",
    "status": "ONGOING"
  }
}

What Happens After Each Step

Validation and Status Updates

  • skipKYC: Validates sign-up form requirements before allowing KYC skip

  • signUpForm: Ensures all mandatory sign-up information is complete

  • end: Performs comprehensive validation of all required fields and verifications

Integration Points

  • Webhook Events: Triggers webhook notifications for status changes

  • Token Generation: Provides authentication tokens for user access

Status Flow Control

  • ONGOING: Continues the registration process to the next step

  • COMPLETED: Finalizes registration and provides full access

  • FAILED: Marks registration as unsuccessful but still provides access token

  • NEEDS_MANUAL_VERIFICATION: Requires human review before completion

Important Notes

  1. Token Generation: The end step is the only step that guarantees token generation for user authentication

  2. Validation Requirements: Each step may have specific validation requirements that must be met

  3. KYC Skip Logic: Skipping KYC only works if no mandatory verification steps are configured

  4. Webhook Integration: All status changes trigger webhook events if configured in the project flow

Common Use Cases

  • Complete Registration: Use end step with COMPLETED status to finalize user registration

  • Skip Verification: Use skipKYC step to bypass verification requirements when appropriate

  • Manual Review: Use end step with NEEDS_MANUAL_VERIFICATION status for flagged registrations

  • Step Progression: Use intermediate steps to move users through the registration flow

This endpoint provides comprehensive control over the app registration process, allowing you to manage user progression, handle edge cases, and ensure proper authentication token generation for onboarding flows.

Last updated

Was this helpful?