Packages

Get all packages

GET https://plugin.tebex.io/packages

Get a list of all packages on your webstore.

Query Parameters

NameTypeDescription

verbose

boolean

Include descriptions of packages.

Headers

NameTypeDescription

X-Tebex-Secret

string

The secret key of a server.

[
    {
        "id": 12,
        "name": "My first package",
        "image": false,
        "price": 10,
        "expiry_length": 0,
        "expiry_period": "month",
        "type": "single",
        "category": {
            "id": 34,
            "name": "My Packages"
        },
        "global_limit": 0,
        "global_limit_period": "none",
        "user_limit": 0,
        "user_limit_period": "none",
        "servers": [
            {
                "id": 7,
                "name": "Test Server"
            }
        ],
        "required_packages": [],
        "require_any": false,
        "create_giftcard": false,
        "show_until": false,
        "gui_item": "",
        "disabled": false,
        "disable_quantity": false,
        "custom_price": false,
        "choose_server": false,
        "limit_expires": false,
        "inherit_commands": false,
        "variable_giftcard": false,
    },
    {
        "id": 125,
        "name": "$100 package",
        "image": "https://dunb17ur4ymx4.cloudfront.net/packages/images/45tdfgsdfg43tfgdfzzftt.png",
        "price": 100,
        "expiry_length": 0,
        "expiry_period": "month",
        "type": "single",
        "category": {
            "id": 684,
            "name": "Packages"
        },
        "global_limit": 0,
        "global_limit_period": "none",
        "user_limit": 0,
        "user_limit_period": "none",
        "servers": [
            {
                "id": 7,
                "name": "Test Server"
            }
        ],
        "required_packages": [],
        "require_any": false,
        "create_giftcard": false,
        "show_until": false,
        "gui_item": "",
        "disabled": false,
        "disable_quantity": false,
        "custom_price": false,
        "choose_server": true,
        "limit_expires": false,
        "inherit_commands": false,
        "variable_giftcard": false
    }
]

Retrieve a package

GET https://plugin.tebex.io/package/{package}

Retrieve a package from the webstore.

Path Parameters

NameTypeDescription

package

string

The ID of a package.

Headers

NameTypeDescription

X-Tebex-Secret

string

The secret key of a server.

{
    "id": 12,
    "name": "My first package",
    "image": false,
    "price": 10,
    "expiry_length": 0,
    "expiry_period": "month",
    "type": "single",
    "category": {
        "id": 34,
        "name": "My Packages"
    },
    "global_limit": 0,
    "global_limit_period": "none",
    "user_limit": 0,
    "user_limit_period": "none",
    "servers": [
        {
            "id": 7,
            "name": "Test Server"
        }
    ],
    "required_packages": [],
    "require_any": false,
    "create_giftcard": false,
    "show_until": false,
    "gui_item": "",
    "disabled": false,
    "disable_quantity": false,
    "custom_price": false,
    "choose_server": false,
    "limit_expires": false,
    "inherit_commands": false,
    "variable_giftcard": false
}

Update a package

PUT https://plugin.tebex.io/package/{package}

Update a package on your webstore.

Path Parameters

NameTypeDescription

package

string

The ID of a package.

Headers

NameTypeDescription

X-Tebex-Secret

string

The secret key of a server.

Request Body

NameTypeDescription

disabled

boolean

If the package is disabled.

name

string

The name of the package.

price

integer

The price of the package.

Last updated