Technical Guides April 14, 2026 Admin

XUI.ONE Line API: Create, Edit & Manage IPTV Lines with Laravel 2026

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 ID
  • create_line – create new line
  • edit_line – update package/password/limits
  • disable_line / enable_line
  • ban_line / unban_line
  • delete_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

  • CreateAccountcreate_line
  • SuspendAccountdisable_line
  • UnsuspendAccountenable_line
  • TerminateAccountdelete_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

Automate XUI Line Provisioning in WHMCS

Our XUI modules already map Create/Suspend/Unsuspend/Terminate actions to panel API calls.

Get XUI Reseller Panel Module