Update Customer
PUT
/customers/{customer}This endpoint allows you to update customer details by passing the customer
as a path parameter.
:::tip[Note]
The existing values of all skipped parameters will remain unchanged.
:::
Request
The Customer ID. List of Customers ID can be found here.
Customer given name.
Customer family name.
The numerical contact information belonging to a customer that allows communication via telephone, without country code.
The numeric prefix indicating a customer's country for mobile communication.
Email address of the customer used for electronic communication.
The categorization of an individual as male, female, based on their biologically determined characteristics.
The customer date of brith.
A unique identifier for a group to which a customer belongs.
{
"first_name": "Ahmed",
"last_name": "Ali",
"email": "[email protected]",
"gender": "female",
"birthday": "1997-06-03"
}
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
Detailed structure of the customer model object showing its fields and data types.
A unique identifier for the customer.
The customer's first name.
The customer's last name.
The customer's mobile phone number without the country code.
The country code for the customer's mobile phone number.
The customer's email address.
A list of URLs associated with the customer, such as their website or social media profiles.
A URL to the customer's avatar image.
The customer's gender.
The city where the customer lives.
The country where the customer lives.
The country code for the customer's country.
The currency that the customer uses.
The customer's location, represented as a string.
The date and time when the customer's information was last updated.
A list of group IDs that the customer belongs to.
{
"status": 200,
"success": true,
"data": {
"id": 2075683582,
"first_name": "Ahmed",
"last_name": "Ali",
"mobile": 560716138,
"mobile_code": "999",
"email": "[email protected]",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiley"
},
"avatar": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"gender": "male",
"city": "Riyadh",
"country": "السعودية",
"location": "null",
"updated_at": {
"date": "2020-04-02 22:43:26.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"groups": [
11323141,
11323142
]
}
}