Individuals
Steps
-
The first step is to make a POST request to the
Accounts
endpoint. -
The response from Step 1 is a
onboardingUrl
. Upon receiving theonboardingUrl
from the first step, use it to launch the UI and authenticate the user into Beam. -
The first screen the user will see is the Terms and Conditions, it is required that the user agrees to our Terms and User Agreements
-
The second screen is the KYC collection screen. Users are required to provide a date of birth, social security number and a valid address.
At this time, we are unable to onboard users who are based in New York, Alaska, Hawaii, and Louisiana and they will be informed in the UI that we do not support their current region.
- The third screen is to collect their preferred payout method. The user can connect their bank account or input their Visa or Mastercard debit card
- Once the user has completed these 3 steps, beam will send a message to the parent window called
beamIframeCloseOnSuccess
in which we pass the userspublicToken
that can be used to query the users information- You can listen to these messages using the following
// Listening for messages in the parent window
window.addEventListener("message", function(event) {
// Parse the message data
const { eventName, publicToken } = event.data;
// Check the event name and handle the message
if (eventName === "beamIframeCloseOnSuccess") {
console.log("User public token:", publicToken); // Corrected line
// Handle the message as needed
}
});
Updated 5 months ago