Line Management
Create Trial Line
Create a trial line but does not deduct any credits.
POST
/
v1
/
lines
/
trial
Create Trial Line
curl --request POST \
--url https://api.reselliptv.com/v1/lines/trial \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"duration": 48,
"username": "<string>",
"password": "<string>",
"label": "My TV Line",
"macaddress": "67:21:4C:24:76:97",
"parental_code": "0000",
"bouquets": [
1,
2,
3
],
"enabled": true
}
'import requests
url = "https://api.reselliptv.com/v1/lines/trial"
payload = {
"duration": 48,
"username": "<string>",
"password": "<string>",
"label": "My TV Line",
"macaddress": "67:21:4C:24:76:97",
"parental_code": "0000",
"bouquets": [1, 2, 3],
"enabled": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
duration: 48,
username: '<string>',
password: '<string>',
label: 'My TV Line',
macaddress: '67:21:4C:24:76:97',
parental_code: '0000',
bouquets: [1, 2, 3],
enabled: true
})
};
fetch('https://api.reselliptv.com/v1/lines/trial', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reselliptv.com/v1/lines/trial",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'duration' => 48,
'username' => '<string>',
'password' => '<string>',
'label' => 'My TV Line',
'macaddress' => '67:21:4C:24:76:97',
'parental_code' => '0000',
'bouquets' => [
1,
2,
3
],
'enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reselliptv.com/v1/lines/trial"
payload := strings.NewReader("{\n \"duration\": 48,\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"label\": \"My TV Line\",\n \"macaddress\": \"67:21:4C:24:76:97\",\n \"parental_code\": \"0000\",\n \"bouquets\": [\n 1,\n 2,\n 3\n ],\n \"enabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reselliptv.com/v1/lines/trial")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"duration\": 48,\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"label\": \"My TV Line\",\n \"macaddress\": \"67:21:4C:24:76:97\",\n \"parental_code\": \"0000\",\n \"bouquets\": [\n 1,\n 2,\n 3\n ],\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reselliptv.com/v1/lines/trial")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"duration\": 48,\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"label\": \"My TV Line\",\n \"macaddress\": \"67:21:4C:24:76:97\",\n \"parental_code\": \"0000\",\n \"bouquets\": [\n 1,\n 2,\n 3\n ],\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"line": {
"id": "<string>",
"hostname": "<string>",
"username": "<string>",
"password": "<string>",
"label": "<string>",
"enabled": true,
"connections": 123,
"is_trial": true,
"exp_date": "2026-05-15T15:13:02.991Z",
"start_date": "2026-05-15T15:13:02.992Z",
"created_at": "2026-05-15T15:13:02.992Z",
"macaddress": "<string>",
"parental_code": "<string>"
},
"deducedCredits": 0,
"newBalance": 5000
}{
"code": "request_errors",
"message": "Request error occurred.",
"data": {
"errors": [
{
"code": "<string>",
"message": "<string>",
"path": [
"<string>"
]
}
]
}
}{
"code": "not_authorized",
"message": "Not authorized to perform this action."
}{
"code": "insufficient_balance",
"message": "Insufficient balance to perform this action.",
"balance": 500,
"minBalance": 600
}{
"message": "Username already exists."
}{
"code": "rate_limit",
"message": "Rate limit exceeded."
}{
"code": "server_error",
"message": "Internal server error occurred.",
"requestId": "<string>"
}Authorizations
API Key
Body
application/json
The duration of the line in hours. Valid values are 12, 24, or 48.
Example:
48
The username of the line. Must be RFC 3986 compliant. If not provided, a random username will be generated.
Required string length:
12 - 30The password of the line. Must be RFC 3986 compliant. If not provided, a random password will be generated.
Required string length:
14 - 30The label of the line.
Maximum string length:
30Example:
"My TV Line"
The MAC address to assign to the line.
Example:
"67:21:4C:24:76:97"
The parental code of the MAG access. Should be 4 digits.
Required string length:
4Example:
"0000"
The IDs of the bouquets to link on creation of the line.
Example:
[1, 2, 3]
Specifies whether the created line should be active or not.
Last modified on May 22, 2026
Previous
Simulate Create Line CostReturn the credit cost of creating a regular line without persisting it.
Next
⌘I
Create Trial Line
curl --request POST \
--url https://api.reselliptv.com/v1/lines/trial \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"duration": 48,
"username": "<string>",
"password": "<string>",
"label": "My TV Line",
"macaddress": "67:21:4C:24:76:97",
"parental_code": "0000",
"bouquets": [
1,
2,
3
],
"enabled": true
}
'import requests
url = "https://api.reselliptv.com/v1/lines/trial"
payload = {
"duration": 48,
"username": "<string>",
"password": "<string>",
"label": "My TV Line",
"macaddress": "67:21:4C:24:76:97",
"parental_code": "0000",
"bouquets": [1, 2, 3],
"enabled": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
duration: 48,
username: '<string>',
password: '<string>',
label: 'My TV Line',
macaddress: '67:21:4C:24:76:97',
parental_code: '0000',
bouquets: [1, 2, 3],
enabled: true
})
};
fetch('https://api.reselliptv.com/v1/lines/trial', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reselliptv.com/v1/lines/trial",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'duration' => 48,
'username' => '<string>',
'password' => '<string>',
'label' => 'My TV Line',
'macaddress' => '67:21:4C:24:76:97',
'parental_code' => '0000',
'bouquets' => [
1,
2,
3
],
'enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reselliptv.com/v1/lines/trial"
payload := strings.NewReader("{\n \"duration\": 48,\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"label\": \"My TV Line\",\n \"macaddress\": \"67:21:4C:24:76:97\",\n \"parental_code\": \"0000\",\n \"bouquets\": [\n 1,\n 2,\n 3\n ],\n \"enabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reselliptv.com/v1/lines/trial")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"duration\": 48,\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"label\": \"My TV Line\",\n \"macaddress\": \"67:21:4C:24:76:97\",\n \"parental_code\": \"0000\",\n \"bouquets\": [\n 1,\n 2,\n 3\n ],\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reselliptv.com/v1/lines/trial")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"duration\": 48,\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"label\": \"My TV Line\",\n \"macaddress\": \"67:21:4C:24:76:97\",\n \"parental_code\": \"0000\",\n \"bouquets\": [\n 1,\n 2,\n 3\n ],\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"line": {
"id": "<string>",
"hostname": "<string>",
"username": "<string>",
"password": "<string>",
"label": "<string>",
"enabled": true,
"connections": 123,
"is_trial": true,
"exp_date": "2026-05-15T15:13:02.991Z",
"start_date": "2026-05-15T15:13:02.992Z",
"created_at": "2026-05-15T15:13:02.992Z",
"macaddress": "<string>",
"parental_code": "<string>"
},
"deducedCredits": 0,
"newBalance": 5000
}{
"code": "request_errors",
"message": "Request error occurred.",
"data": {
"errors": [
{
"code": "<string>",
"message": "<string>",
"path": [
"<string>"
]
}
]
}
}{
"code": "not_authorized",
"message": "Not authorized to perform this action."
}{
"code": "insufficient_balance",
"message": "Insufficient balance to perform this action.",
"balance": 500,
"minBalance": 600
}{
"message": "Username already exists."
}{
"code": "rate_limit",
"message": "Rate limit exceeded."
}{
"code": "server_error",
"message": "Internal server error occurred.",
"requestId": "<string>"
}