POST ?action=update_customer

Updates the customer name and/or email address on an activation. The change is applied to the activation and all linked work orders. At least one of customer_email or customer_name must be provided.

Request Parameters

activation_id — integer — Required. Activation ID.

customer_email — string — Optional*. New email address.

customer_name — string — Optional*. New full name.

At least one of customer_email or customer_name must be provided.

Response

{
  "success": true,
  "data": {
    "id": 321,
    "customer_email": "[email protected]",
    "customer_name": "Jane Doe",
    "updated_at": "2026-04-06 19:00:00"
  },
  "error": null
}

Example

curl -X POST "https://YOUR_DOMAIN/api/api.php?action=update_customer" \
  -H "X-Panelr-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "activation_id": 321,
    "customer_email": "[email protected]",
    "customer_name": "Jane Doe"
  }'