Update Customer API
The API can be used to update the customer details like phone number, email, first name etc.
Please keep a note of the following constraints while updating customer’s email address, First Name and Last Name-
email address - 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/Last Name - You are allowed to use alphanumeric characters and the following special characters:
().-_
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
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.
Example:-
customer-id-007
Customers mobile number. We recommend passing number without appending "+" or mobile country code.
Example:-
99889988
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:-
65
Unique ID that you use to represent the customer in your database. The typical value for this field would be email address or mobile number or auto increment ID that you have in your DB..
Customers mobile number
Cusomter's mobile country code
Customer's last name
Customer's first name
Customer's e-mail address
invalid_request_error
object_not_found
Cannot find what you are looking for
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

