Customers
Fetch Customer With ID
Fetch Customer With id using Razorpay Customers API.
GET
Available in🇮🇳 India🇺🇸 United States
Use this endpoint to retrieve details of a customer with id.
Path Parameters
string
required
The unique identifier linked to the customer.
Response Parameters
string
Unique identifier of the customer. For example,
cust_1Aa00000000004.string
Indicates the type of entity.
string
Customer’s name. Alphanumeric, with period (.), apostrophe (’), forward slash (/), at (@) and parentheses allowed. The name must be between 3-50 characters in length. For example,
Gaurav Kumar.string
The customer’s phone number. A maximum length of 15 characters including country code. For example,
+919876543210.string
The customer’s email address. A maximum length of 64 characters. For example,
gaurav.kumar@example.com.string
GST number linked to the customer. For example,
29XAbbA4369J1PA.object
This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example,
"note_key": "Beam me up Scotty”.integer
UNIX timestamp, when the customer was created. For example,
1234567890.object
The customer’s shipping address. An address object with
line1, line2, city, state, country, and zipcode fields. Empty when none is set.Errors
The API `<key/secret>
` provided is invalid.
The API `<key/secret> ` provided is invalid.
Code:
4xxThe API credentials passed in the API call differ from the ones generated on the Dashboard. Possible reasons:- Different keys for test mode and live modes.
- Expired API key.
id is not a valid id.
id is not a valid id.
Code:
400The customer_id passed is invalid.Solution: Use a valid customer_id.The id provided does not exist.
The id provided does not exist.
Code:
400The customer_id does not exist or does not belong to the requestor.Solution: Ensure that you use a valid customer_id that belongs to the requestor.