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. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20