accountSetupSession
Overview
This query gets data from the active account setup session.
Special Considerations
None.
Inputs
None.
Returns
Promise<AccountSetupSessionResult>
This query returns a promise containing the following object / data:
AccountSetupSessionResult {
slug: string
accountType: string
addressLine1: string
addressLine2: string
city: string
zoneCode: string
postalCode: string
country: Country
uploadedId: boolean
identificationType: string
bankName: string
firstName: string
middleName: string
lastName: string
phone: string
phoneCountryCode: Country
date of Birth: DateTime
personalTaxId: string
citizenship: string
name: string
displayName: string
businessType: string
businessTaxId: string
industry: string
estimatedMonthlyVolume: float
estimatedMonthlyTransactions: int
businessSize: int
jobTitle: string
zoneCodeOfIncorporation: string
}
Example
Running this query:
query {
accountSetupSession {
slug
accountType
addressLine1
addressLine2
city
postalCode
country
uploadedId
identificationType
bankName
firstName
lastName
dateOfBirth
}
}
Gives us:
{
"data": {
"accountSetupSession": {
"slug": "testing-slug",
"accountType": "PERSONAL",
"addressLine1": "123 Fouveaux Street",
"addressLine2": null,
"city": "Sydney",
"postalCode": "0844",
"country": "AU",
"uploadedId": false,
"identificationType": "SSN",
"bankName": "Test Bank",
"firstName": "John",
"lastName": "Smith",
"dateOfBirth": 1990-06-12T18:53:03.128Z
}
}
}
Common Errors
- Session expired. (I-4310)
- The setup sesssion expired. Start a new setup session.