Create Customer API
This API is responsible for creating a new customer object in Juspay systems. You can invoke this API whenever a new user registers in your App/Website and is triggering the payment process.
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:-
Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
Merchant ID provided by Juspay
Example:-
merchant_id
application/x-www-form-urlencoded
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
Example:-
cust_123489
Customers mobile number. We recommend passing number without appending "+" or mobile country code.
Example:-
987654321
Email address of the customer. If the backend gateway requires it, then you must send this value.
Constraints : You are allowed to use alphanumeric characters and the following special characters:!#$%&'*+-/=?^_.{|}~`@
_ and . cannot appear at the beginning or end of the local part of the email address (before and after the @ symbol).
First Name of customer. This value will be used for customer identification.
Constraints : You are allowed to use alphanumeric characters and the following special characters: ().-_
Last Name of customer. This value will be used for customer identification.
Constraints : You are allowed to use alphanumeric characters and the following special characters: ().-_
Mobile country code. No need to prefix +.
Example:-
55
This is required to obtain the client_auth_token which is used for SDK integration
Value: true | false
It is the ID with which merchant refers to a customer object. This id is used to access the stored payment methods, allow EMI transactions and setup subscriptions.
Customers mobile number
Cusomter's mobile country code
Customer's last name
Customer's first name
Customer's e-mail address
It is the ID with which merchant refers to a customer object. This id is used to access the stored payment methods, allow EMI transactions and setup subscriptions.
Customers mobile number
Cusomter's mobile country code
Customer's last name
Customer's first name
Customer's e-mail address
Bad Request
Details of keys missing
Example:-
Mandatory fields are missing
Further Details of keys missing

