XUI.ONE Line API: Create, Edit & Manage IPTV Lines with Laravel 2026
XUI.ONE Line API: Create, Edit & Manage IPTV Lines with Laravel 2026
The XUI.ONE Line API is used to control subscriber accounts (username/password, package mapping, expiry, and status). It is the main API for WHMCS provisioning when selling IPTV subscriptions.
Core Line Actions
get_line– fetch one line by IDcreate_line– create new lineedit_line– update package/password/limitsdisable_line/enable_lineban_line/unban_linedelete_line
Laravel Service Pattern
public function createLine(array $data): array
{
return $this->call('create_line', $data);
}
public function disableLine(int $id): array
{
return $this->call('disable_line', ['id' => $id]);
}
WHMCS Lifecycle Mapping
- CreateAccount →
create_line - SuspendAccount →
disable_line - UnsuspendAccount →
enable_line - TerminateAccount →
delete_line
Important Implementation Notes
- Persist the returned XUI line ID to your DB for future actions.
- Prevent duplicate account creation by checking existing username first.
- Log every create/suspend/terminate API result for reconciliation.
- When editing bouquets, pass arrays exactly as API expects.
With this model, billing status and panel account status stay aligned automatically.
FAQ
Q: Which action creates a subscriber line?
A: create_line.
Q: Which action should WHMCS suspend call?
A: disable_line (and enable_line for unsuspend).
Related XUI.ONE Guides
- XUI.ONE Admin API Setup and Authentication
- XUI.ONE Bouquets and Packages API
- XUI.ONE Sub Reseller API for WHMCS
Automate XUI Line Provisioning in WHMCS
Our XUI modules already map Create/Suspend/Unsuspend/Terminate actions to panel API calls.