Documentation Index
Fetch the complete documentation index at: https://docs.baanx.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Submit user’s physical residential address. This is required for KYC verification and compliance purposes.
For US residents, you can optionally specify a separate mailing address. For non-US residents, mailing address must be the same as physical address.
Request
Body
Onboarding ID from previous step
Primary address lineExample: 23 Werrington Bridge Rd
Secondary address line (optional)Example: Milking Nook
City nameExample: Peterborough
Postal/ZIP codeExample: PE6 7PP
US state postal abbreviationRequired only if: countryOfResidence = USExample: CA
Whether mailing address is same as physicalMust be true unless: countryOfResidence = USExample: true
Response
Access token (only if registration complete)Returned when isSameMailingAddress = true OR non-US residentExample: US_100a99cf-f4d3-4fa1-c321-2e9833440ebb
Updated user object with address
Code Examples
const response = await fetch('https://dev.api.baanx.com/v1/auth/register/address', {
method: 'POST',
headers: {
'x-client-key': 'your-client-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
onboardingId: sessionStorage.getItem('onboardingId'),
addressLine1: '23 Werrington Bridge Rd',
addressLine2: 'Milking Nook',
city: 'Peterborough',
zip: 'PE6 7PP',
isSameMailingAddress: true
})
});
const { accessToken, user } = await response.json();
if (accessToken) {
// Registration complete
localStorage.setItem('access_token', accessToken);
console.log('Registration complete!');
} else {
// US resident - need mailing address
console.log('Proceed to mailing address step');
}
If accessToken is returned, registration is complete. Otherwise, proceed to mailing address step (US only).
Next Steps
Update Mailing Address
Add mailing address (US residents only)