PATCH
/api/public/v1/customers/{accountId}

Update a customer

Update one or more fields on a customer.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Dev Tools → API, to an assistant or CLI sign-in when you approve or edit it under Dev Tools, and to a teammate under Employee → Permissions.

customers:write

Path Parameters

NameTypeRequiredDescription
accountIdstringRequiredCustomer (account) ID.

Request Body

PropertyTypeDescription
fullnamestringFull name.
emailstringEmail address.
phoneNumberstringPhone number.
birthdaystringISO date of birth.
notesstringFree-form notes.
statusstringAccount status.
PATCHExample request
curl
curl -X PATCH "https://www.pxb.app/api/public/v1/customers/{accountId}" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "ACTIVE"
  }'
200Example response
json
{
  "message": "Customer updated successfully!",
  "content": {
    "customer": {
      "id": "cust_1"
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

xRM → Accounts
/xrm
  1. Open a customer and edit their details.