Skip to main content
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
}
'
{
  "line": {
    "id": "<string>",
    "hostname": "<string>",
    "username": "<string>",
    "password": "<string>",
    "label": "<string>",
    "enabled": true,
    "connections": 123,
    "macaddress": "<string>",
    "parental_code": "<string>",
    "is_trial": true,
    "exp_date": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)",
    "start_date": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)",
    "created_at": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)"
  },
  "deducedCredits": 0,
  "newBalance": 5000
}

Authorizations

x-api-key
string
header
required

API Key

Body

application/json
duration
enum<string>
required

The duration of the line in hours. Valid values are '12', '24' or '48'.

Available options:
12,
24,
48
Example:

"48"

username
string

The username of the line. Must be RFC 3986 compliant. If not provided, a random username will be generated.

Required string length: 12 - 30
password
string

The password of the line. Must be RFC 3986 compliant. If not provided, a random password will be generated.

Required string length: 14 - 30
label
string

The label of the line.

Maximum string length: 30
Example:

"My TV Line"

macaddress
string

The MAC address to assign to the line.

Example:

"67:21:4C:24:76:97"

parental_code
string

The parental code of the MAG access. Should be 4 digits.

Required string length: 4
Example:

"0000"

bouquets
number[]

The IDs of the bouquets to link on creation of the line.

Example:
[1, 2, 3]
enabled
boolean
default:true

Specifies whether the created line should be active or not.

Response

Ok: Return created line

line
object
required
deducedCredits
number
required
Example:

0

newBalance
number
required
Example:

5000