The onboarding flow
In certain usecases it is not possible to guide the user through a web-based onboarding flow. For these use cases, you can use the API-only onboarding flow.Your Account will require special permissions for this onboarding flow.
1
Create a Company
Create a Company. In this step you MUST provide all input data that is relevant for your company. See the entities page for a description of required information.
2
3
Wait for user to confirm their Email
All newly created users will be issued an invitation email that serves both as a verification that the user actually owns this email address and as a means for the user to set a password for their new account.
4
Start handing over Claims
The client is onboarded successfully and you can start handing over data using the Case Management API
X-User-Id to every request to the Case Management API alongside your Partner Token as the Authorization Header. The X-User-Id must contain the identifier of one of the users you created in the previous steps.
Please Note that when making requests to the Case Management API, both the user and the company must be fully onboarded, i.e. the
data_submission_completed flag on the company must be set to true and the email_verified flag must be set for the user.Notification channels
For each company or user email channel you supply, omittingnotification_types, sending null, or sending [] enables all default types:
REQUESTS_TO_CLIENT, STATUS_UPDATE, STATEMENTS, and ADVANCE_REQUESTS.
For example, this channel subscribes the address to all four:
notification_types list. The
existing compatibility rule still adds ADVANCE_REQUESTS whenever you include
STATEMENTS. Use the paywise portal to configure those two independently or
disable a channel’s subscriptions; an empty type list sent through the Partner
API now means the default selection.
This applies to company creation, replacement channels in company updates,
and user creation. User channels are associated with the user’s specified
company so they can receive that company’s notifications. Omitting the entire
notification_channels field remains unchanged: user creation generates a
default channel from the login email, company creation generates none, and a
company update preserves its existing channels. On company updates,
notification_channels: [] still removes the channels.
About Email Verification
When onboading a user you can decide whether they need to re-verify their email address with paywise. This is intended to further facilitate the onboarding process in cases where you already verified a user’s address and want to sign them up immediately to begin handing over claims. However, even if you choose to skip email verification, users will still receive an email prompting them to set an initial password for their paywise account.Email Duplications
In rare cases, it might happen that you try to onboard a user that was already created, either through the API or by regular registration. In this case, the User API will respond with a 400 status code and you can prompt the user to choose a different emailIf you want the existing account to be associated with the company you created, please contact our support
