The customer registration endpoint creates a customer account in the merchant's store. A registration request must provide the customer main information such as first name, email, phone, and more. Additionally, the login verification type should be stored in verfied_by field, so that later the verification code will be sent to that verification type.The register endpoint has been implemented in the Login Web Component, and It's all setup to save developer's time and effort. Payload#
Response#
Usage#
The register()
creates a new customer account. A registration request must provide a user with the following information: first_name
, last_name
, email
, phone
, country_code
, and country_key
. Additionally, the login verification type should be stored in verfied_by
, so that later the verification code
will be sent to that verification type.Events#
This endpoint may trigger two events, the onRegistered and onCodeNotReSent events.onRegistered#
This event is triggered when the customer registration process is done without having any errors coming back from the backend.onRegistrationFailed#
This event will be triggered when the register process is not completed, and an error has occurred. Modified at 2025-03-04 12:54:02