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

Update a customer

Update one or more fields on a customer.

Path Parameters

NameTypeRequiredDescription
accountIdstring
Required
Customer (account) ID.

Request Body

PropertyTypeDescription
fullnamestringFull name.
emailstringEmail address.
phoneNumberstringPhone number.
statusstringAccount 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"
    }
  }
}