Application sessions and platform identifiers
Pre-fill sign-up, and use the platform identifier to avoid duplicate applications.
An application session lets you pre-fill the sign-up form with what you already know about the applicant, and ties the application to the matching record in your own system.
Create the session on your server with POST /v1/applicationSessions, and pass the sessionId from the response to the form. For the hosted form, send the applicant to the sign-up URL with sessionId in the query string. For an embedded form, pass it to Dhango.signup. Embed sign-up has the full walkthrough.
Platform identifier
platformIdentifier is your own id for the applicant, such as a customer id in your system. Use a stable value that belongs to exactly one applicant. dhango includes it on the ApplicationSubmitted webhook so you can match the submitted application to your record.
That webhook fires when the applicant submits, before any account exists. So Data has no merchant account key, and the AccountKey header on the delivery is your platform account. See Webhooks.
Avoid duplicate applications
Applicants do not always finish in one sitting, and every new session could otherwise leave another abandoned application behind. The platform identifier prevents that. When you create a new session with a platformIdentifier you have used before, dhango looks for your platform's applications with that identifier and reuses an in-progress one instead of creating a duplicate.
- If an application is still in progress, meaning the terms have not been agreed and no account was created from it, the new session reuses it. If several are in progress, the most recently updated one is reused.
- If the matching application was already submitted or converted to an account, the session starts a new application.
- If the old application is submitted at the same moment the new session tries to reuse it, the session starts a new application.
- Opening the same session in a second browser tab does not create or change anything.
Reusing an application does not restore what the applicant entered before. The individuals and documents on it are cleared, including the organization documents from step 2, and the applicant fills in the form again. Only the contact and organization fields you pre-fill on the new session are carried in.
Delete a stale application
Underwriters can delete an application that should not continue. Delete an incomplete application that was abandoned, or a completed one that is clearly not a real applicant, such as one with obviously false data, before you convert it.
Deleting does not stop the applicant from trying again. A new session with the same platform identifier simply starts a new application.