Menu
Update Customer By Id
This API lets you make changes to a customer.
PUT
/customers/{customerId}Use it in a workflow
- Add a step and choose the WooCommerce connector.
- Pick the Update Customer By Id action (under Customers).
- Fill in the fields below, then reference the result from later steps as
{{updateCustomerById.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"id": 0,
"date_created": "2025-01-01T00:00:00Z",
"date_created_gmt": "2025-01-01T00:00:00Z",
"date_modified": "2025-01-01T00:00:00Z",
"date_modified_gmt": "2025-01-01T00:00:00Z",
"email": "string",
"first_name": "string",
"last_name": "string",
"role": "string",
"username": "string",
"password": "string",
"billing": {
"first_name": "string",
"last_name": "string",
"company": "string",
"address_1": "string",
"address_2": "string",
"city": "string",
"state": "string",
"postcode": "string",
"country": "string",
"email": "string",
"phone": "string"
}
}
Response
Returns 200 with an object. Read it in later steps with {{updateCustomerById.response.data.<field>}}.
{
"id": 0,
"date_created": "2025-01-01T00:00:00Z",
"date_created_gmt": "2025-01-01T00:00:00Z",
"date_modified": "2025-01-01T00:00:00Z",
"date_modified_gmt": "2025-01-01T00:00:00Z",
"email": "string",
"first_name": "string",
"last_name": "string",
"role": "string",
"username": "string",
"password": "string",
"billing": {
"first_name": "string",
"last_name": "string",
"company": "string",
"address_1": "string",
"address_2": "string",
"city": "string",
"state": "string",
"postcode": "string",
"country": "string",
"email": "string",
"phone": "string"
}
}
Need more? See the WooCommerce guide for connection setup and behaviour shared by every action.
Was this page helpful?