Edit Customer Details
PUT/v1/customers/:idClick to copy
Use this endpoint to edit the customer details such as name, email and contact details. When editing a customer's details, ensure that the combination of the values in the email and contact attributes is unique for every customer.
Is this page helpful?
Path Parameters
id *
stringThe unique identifier linked to the customer.
Request Parameters
name 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.
contact string The customer's phone number. A maximum length of 15 characters. For example, +919876543210.
email string The customer's email address. A maximum length of 64 characters. For example, gaurav.kumar@example.com.
Response Parameters
idstring Unique identifier of the customer. For example, cust_1Aa00000000004.
entity stringIndicates the type of entity.
namestringCustomer's name. Alphanumeric, with period (.), apostrophe (') and parentheses allowed. The name must be between 3-50 characters in length.
contactstringThe customer's phone number. A maximum length of 15 characters including country code.
emailstringThe customer's email address. A maximum length of 64 characters.
gstinstring GST number linked to the customer. For example, 29XAbbA4369J1PA.
notesstring 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”.
created_atinteger UNIX timestamp, when the customer was created. For example, 1234567890.
Errors
The API <key/secret> provided is invalid.
Error Status: 4xx
The 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.
Solution
Contact number should be at least 8 digits, including country code.
Error Status: 400
The contact number is less than 8 digits.
Solution
id is not a valid id.
Error Status: 400
The customer_id passed is invalid.
Solution
Edit Customer Details
PUT/v1/customers/:idClick to copy
Use this endpoint to edit the customer details such as name, email and contact details. When editing a customer's details, ensure that the combination of the values in the email and contact attributes is unique for every customer.
Is this page helpful?
Path Parameters
id *
stringThe unique identifier linked to the customer.
Request Parameters
name 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.
contact string The customer's phone number. A maximum length of 15 characters. For example, +919876543210.
email string The customer's email address. A maximum length of 64 characters. For example, gaurav.kumar@example.com.
Response Parameters
idstring Unique identifier of the customer. For example, cust_1Aa00000000004.
entity stringIndicates the type of entity.
namestringCustomer's name. Alphanumeric, with period (.), apostrophe (') and parentheses allowed. The name must be between 3-50 characters in length.
contactstringThe customer's phone number. A maximum length of 15 characters including country code.
emailstringThe customer's email address. A maximum length of 64 characters.
gstinstring GST number linked to the customer. For example, 29XAbbA4369J1PA.
notesstring 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”.
created_atinteger UNIX timestamp, when the customer was created. For example, 1234567890.
Errors
The API <key/secret> provided is invalid.
Error Status: 4xx
The 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.
Solution
Contact number should be at least 8 digits, including country code.
Error Status: 400
The contact number is less than 8 digits.
Solution
id is not a valid id.
Error Status: 400
The customer_id passed is invalid.
Solution