customers.php¶
Customer management module for handling ACL updates, order status synchronization, and customer data operations
API Methods¶
| Method | Action | Description |
|---|---|---|
set_order_status | set order status | Updates the status of a WHMCS order associated with the customer. |
update_acl | update IP ACL | Updates the IP Access Control List (ACL) for a specific customer. If the provided list is empty, existing tags are removed. |
customers/update_acl¶
Updates the IP Access Control List (ACL) for a specific customer. If the provided list is empty, existing tags are removed.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: update_acl |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Customer ID |
| ips | ✅ | string | Space-separated list of IP addresses to allow. If empty, the ACL is cleared. |
Request example
customers/set_order_status¶
Updates the status of a WHMCS order associated with the customer.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: set_order_status |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Customer ID |
| params[status] | ✅ | string | The new status for the order. |
| status | ✅ | string | Параметр status |
| location | ❌ | string | The physical or logical location for the order status update. |
Request example