This flow is provided as an example scenario for initializing an Onboarding SDK 3 instance.
Your experience may differ depending on your contract with Worth services.
invite_token to initialize an Onboarding SDK 3 instance.
This flow consists of two sequential API calls that handle signing into the Worth platform as a customer and inviting a business to complete an application.
Overview
The business onboarding process follows a linear sequence of API calls: This diagram shows the complete sequence of API calls required for the business onboarding process:Note: In this scenario, the customer application in which the Onboarding SDK is mounted does not send requests to thecustomer/sign-inorbusinesses/inviteendpoints
Key Points
Step 1 - Customer Sign-in:-
Using the POST
/auth/api/v1/customer/sign-inendpoint, a customer may sign into the Worth platform with their email and password- See Customer Sign In for a complete reference of this endpoint
-
Upon successfully signing in, an
id_tokenwill have been returned in the request response. This token should be used when authenticating subsequent requests
Important: Always use the id_token for secure API communication in subsequent steps
Step 2 - Send Business Invite:
- Using the POST
/case/api/v1/customers/{customerID}/businesses/inviteendpoint, a customer may send an invite to a business to complete a Worth onboarding application - The
id_tokenthat is received from the sign-in step should be passed into theAuthenticationheader when POSTing to this endpoint - Within the body of this request, the following attributes must be provided:
business,applicants, andtemplate_version_id- See Send Business Invite for a complete reference of this endpoint
- Upon successfully sending a business invite, an
invitation_urlwill have been returned in the request response. This URL will contain the token that should be passed into the SDK 3 instance
- In the customer application in which the SDK is mounted, call
createWorthOnboardingwith the extractedinvite_token- See the full Quick Start Guide for a step-by-step walkthrough, including cleanup and error handling
Related Documentation
- Check the Getting Started guide for key concepts
- Explore Business Onboarding Flows for additional use cases