Update a Customer
Update an existing customer profile using SenderWiz Admin API by passing updated personal or company information.
👤 Update a Customer
Use this endpoint to update an existing customer in SenderWiz. You may also update the associated company details if needed.
🔹 HTTP Request
PUT ADMIN-API-URL/customers/CUSTOMER-UID
🔸 URL Segments
CUSTOMER-UID
string
Yes
Unique identifier of the customer to update
🔐 Authorization Header
X-ADMIN-API-KEY: your-admin-api-key-here
📝 PUT Parameters
Below are the available parameters for updating a customer profile. You can include only the fields you want to update:
customer
array
Yes
Main customer details to be updated
company
array
No
Optional company-related information
🧍 Customer Block
Include only the fields you wish to update in the customer profile. You must specify the customer_uid
in the URL path.
first_name
string
No
First name of the customer
last_name
string
No
Last name of the customer
email
string
No
Email address (if changing email)
password
string
No
New password
timezone
string
No
Timezone (e.g., Asia/Kolkata)
group
string
No
Group name from Admin Panel
birthDate
string
No
Date of birth in YYYY-MM-DD format
status
string
No
Customer status: Active or Inactive
parent_uid
string
No
UID of an existing customer to set as parent. Leave blank to make it a normal (non-child) account.
🏢 Company Block (Optional)
Use this block to update any company-related information associated with the customer.
Include only the fields you wish to update in the customer profile. You must specify the customer_uid
in the URL path.
name
string
No
Company name
country
string
No
Country name
zone
string
No
State or zone
city
string
No
City name
zip_code
string
No
Postal or ZIP code
address_1
string
No
Primary address line
address_2
string
No
Secondary address line
💻 PHP Example
// UPDATE CUSTOMER
$response = $endpoint->update('ab382plq98zr7', [
'customer' => [
'first_name' => 'Emma Updated',
'timezone' => 'Asia/Kolkata',
'group' => 'Pro-Group'
],
'company' => [
'city' => 'Vancouver',
'address_1'=> '456 King St E'
],
]);
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
📦 Sample JSON Response
{
"status": "success",
"customer_uid": "hr359dca6g62b"
}
Last updated