DOCS
API reference

Application Sessions

Payments API operations for Application Sessions.

Payments API

These operations are generated from the Payments API Swagger document. Use the sandbox host https://api.dhangodemo.com while testing and https://api.dhango.com in production.

POST /v1/applicationSessions

Creates an application session.

Request body: PostApplicationSessionRequest.

PostApplicationSessionRequest

Field Type Required Description
platformIdentifier string The identifier for the applicant from the platform's system. Use a stable key that belongs to one applicant: a session whose identifier matches an unsubmitted application for the same platform continues that application, so applicants sharing an identifier would share it.
contactFirstName string The first name of the person filling out the application.
contactLastName string The last name of the person filling out the application.
contactEmailAddress string The email address of the person filling out the application.
contactPhoneNumber string The phone number of the person filling out the application.
organizationName string The legal name of the organization.
doingBusinessAs string The name of the DBA.
address Address
websiteUri string The URL of the website.
taxId string The tax id of the organization.
legalEntityType LegalEntityType
merchantCategoryCode string The merchant category code (MCC) describing the organization's industry.
supportPhoneNumber string The phone number of the organization's support team.
supportEmailAddress string The email address of the organization's support team.
offeringDescription string A description of the organization's products and services.
embedConfig ApplicationSessionEmbedConfig
autoOnboarding ApplicationSessionAutoOnboarding

Address

Field Type Required Description
name string The name at the address
streetAddress string The street address including the street and unit number.
city string The city of the address.
stateOrProvince string The abbreviated state or province of the address.
postalCode string The postal code of the address.
country string The two character country code.
phoneNumber string The phone number.

LegalEntityType values: PrivateOrganization, GovernmentEntity, NonProfit, SoleProprietorship, Trust, Individual, PublicOrganization.

ApplicationSessionEmbedConfig

Field Type Required Description
readOnlyFields array of string Field keys the sign-up form must render read-only.
skipSteps array of integer Sign-up step ids (1 = Contact, 2 = Organization, 3 = Controllers and Officers, 4 = Financial) the flow may skip. The confirmation step can never be skipped.
theme ApplicationSessionEmbedTheme

ApplicationSessionEmbedTheme

Field Type Required Description
backgroundColor string The page surface behind the card.
cardColor string The card/panel surface.
textColor string Headings, labels, and body text.
mutedTextColor string Secondary/help text.
primaryColor string Buttons, links, active step, and focus rings.
borderColor string Card and input borders.
fontFamily string A system font or any Google Fonts family name.
fontSizeBase integer Base font size in pixels (12-20); scales the whole flow.
borderRadius integer Corner radius in pixels (0-24) for cards, inputs, and buttons.

ApplicationSessionAutoOnboarding

Field Type Required Description
backgroundChecks array of string The background checks to run automatically once the applicant completes sign-up. Supported values: BankAccountAndName (bank account validation with account-holder name matching) and TinOnly (TIN verification). Names are matched case-insensitively and repeats are ignored; the canonical list is returned in the response. A non-empty list is the switch for automatic onboarding; omit the autoOnboarding object for the standard manual onboarding flow.
processors array of ApplicationSessionAutoOnboardingProcessor The processor to onboard the applicant to once the background checks pass. At most one entry; it requires a non-empty backgroundChecks list. An empty list is the same as omitting it. As for backgroundChecks, the processor name is matched case-insensitively and the region trimmed and matched case-insensitively; the response echoes the canonical processor name and the trimmed region.

ApplicationSessionAutoOnboardingProcessor

Field Type Required Description
processor string yes The processor to onboard to. Required. Supported value: StripeRecipient, matched case-insensitively and echoed in that canonical spelling.
region string yes The region of the platform's Stripe Platform credential to create the recipient under. Required and not blank. Trimmed and matched case-insensitively against the calling platform's own Stripe Platform credentials that have credits and debits enabled; echoed trimmed, in the caller's casing. It is not the merchant's country.

Responses:

Status Description Schema
201 The application session was created. PostApplicationSessionResponse
400 The application session was not created. Error messages can be found in the body of the response. ValidationProblemDetails