Creates a new customer object with the given Customer Data parameters. You may invoke this method whenever someone registers in your website or App. JusPay will respond with a customer_id that you can persist in your Database. Pass this ID at the time of order creation to ensure proper linking of orders/payments belonging to a customer.
Returns: Customer Object (click to view)
Customer ID generated by JUSPAY.
Object type of entity, in this case it’ll be customer.
Object containing two client_auth_token parameters Token required for SDK integration Expiration date of client_auth_token
A "customer_id" should be returned, not "id", as shown in the main document.
A Juspay Object (client_auth_token parameters) is included in the Customer Object response for the Create Customer API only if options.get_client_auth_token is set to true in the request .
The request consists of Customer Data, merchant_id, object_reference_id, and an optional get_client_auth_token parameter. (click to open table)Each parameter in tables is listed below:
Customer Data parameters: (click to view)
Customer’s mobile number.wwwwwwwwww
Customer’s e-mail address.
Customer’s first name.
Customer’s last name.
Mobile country code. No need to prefix “+”.
* = Required only for the Create Customer API
The merchant id that a merchant hold at Juspay. Must be in Header.
Unique ID that you use to represent the customer in your database. This must be atleast 8 characters and must be unique. The typical value for this field would be email address or mobile number or auto increment ID that you have in your DB
This is required to obtain the client_auth_token which is used for SDK integration
* = Required
Click Try It! to start a request and see the response here!