PATCH
/api/public/v1/customers/{accountId}Update a customer
Update one or more fields on a customer.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | Required | Customer (account) ID. |
Request Body
| Property | Type | Description |
|---|---|---|
fullname | string | Full name. |
email | string | Email address. |
phoneNumber | string | Phone number. |
status | string | Account status. |
PATCHExample request
curl
curl -X PATCH "https://www.pxb.app/api/public/v1/customers/{accountId}" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"status": "ACTIVE"
}'200Example response
json
{
"message": "Customer updated successfully!",
"content": {
"customer": {
"id": "cust_1"
}
}
}