Update Customer
PUT {{baseUrl}}/customers/:customer
Update a customer using this Endpoint. Provide the ID of the customer you want to update in the customer path parameter. The response will be all the customer updated data.
Note: The existing value of all skipped parameters will remain unchanged.
OAuth Scopes
customers.read_write
Request Body
{"first_name"=>"Ahmed", "last_name"=>"Ali", "email"=>"ahmed.ali@test.test"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":200,"success":true,"data":{"id":2075683582,"first_name":"Ahmed","last_name":"Ali","mobile":560716138,"mobile_code":"999","email":"ahmed.ali@test.test","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"}}}