Service


Action: order

Creates an order

Params Description Required
pid Product ID (Can be obtained thru listproducts) Yes
domain Domain of the product Yes
billingcycle Billing cycle of the product (valid values: monthly, quarterly, semiannually, annually, biennially, triennially) Yes
customfields Custom fields for the product (Can be obtained thru listproducts). Must be passed as a json array (Example: {"368":"CentOS 7 x64"}) No
configoptions Configurable options for the product (Can be obtained thru listproducts). Must be passed as a json array (Example: {"368":"CentOS 7 x64"}) No
autorenew Auto renew option for the service. Means that it will be automatically renewed when an invoice is created No

{info} The order will be created along with an invoice that will be paid with the account balance.

Request Parameters

$curl_url = 'https://api.jump.bg/api.php';

$curl_post = [
    'api_userid' => 'API_USER_ID',
    'api_password' => 'API_PASSWORD',
    'type' => 'service',
    'action' => 'order',
    'pid' => 64,
    'domain' => 'example.com',
    'billingcycle' => 'monthly',
    'customfields' => '{"368":"CentOS 7 x64"}',
    'configoptions' => '{"368":"CentOS 7 x64"}',
    'autorenew' => 0,
];

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => $curl_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => $curl_post,
]);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response); //It will return the result in JSON

Response Parameters:

{
    "success": 1,
    "price": 23.9,
    "domain": "example.com",
    "id": "7661",
    "invoice_url": "https:\/\/www.jump.bg\/members\/viewinvoice.php?id=8888"
}

Action: upgrade

Upgrading an existing product

Params Description Required
serviceid Service Id (Can be obtained thru listservices) Yes
newpid New Product Id (Can be obtained thru listproducts) This or/and newbillingcycle
newbillingcycle New Billing Cycle (valid values: monthly, quarterly, semiannually, annually, biennially, triennially) This or/and newpid

Request Parameters

$curl_url = 'https://api.jump.bg/api.php';

$curl_post = [
    'api_userid' => 'API_USER_ID',
    'api_password' => 'API_PASSWORD',
    'type' => 'service',
    'action' => 'upgrade',
    'serviceid' => 1234,
    'newpid' => 64,
    'newbillingcycle' => 'annually',
];

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => $curl_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => $curl_post,
]);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response); //It will return the result in JSON

Response Parameters:

{
    "success": 1,
    "upgradeamount": "4.00"
}

Action: renew

Manual renew for a service.

Params Description Required
serviceid Service Id that will be renewed (Can be obtained thru listservices). Yes
billingcycle Billing Cycle (valid values: monthly, quarterly, semiannually, annually, biennially, triennially) Yes

Request Parameters

$curl_url = 'https://api.jump.bg/api.php';

$curl_post = [
    'api_userid' => 'API_USER_ID',
    'api_password' => 'API_PASSWORD',
    'type' => 'service',
    'action' => 'renew',
    'serviceid' => 1234,
    'billingcycle' => 'monthly',
];

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => $curl_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => $curl_post,
]);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response); //It will return the result in JSON

Response Parameters:

{
    "success": 1,
    "invoiceid": 29329,
    "amount": "78.00"
}

Action: autorenew

Enables or disables auto renew for a service. It will be renewed with the next automtically created invoice by our billing system.

Params Description Required
serviceid Service Id (Can be obtained thru listservices). Yes
autorenewaction Can be 'add' or 'remove' Yes

Request Parameters

$curl_url = 'https://api.jump.bg/api.php';

$curl_post = [
    'api_userid' => 'API_USER_ID',
    'api_password' => 'API_PASSWORD',
    'type' => 'service',
    'action' => 'autorenew',
    'serviceid' => 7662,
    'autorenewaction' => 'add',
];

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => $curl_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => $curl_post,
]);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response); //It will return the result in JSON

Response Parameters:

{
    "success": 1
}

Action: listservices

Listing all client's services

{info} No special parameters are required

$curl_url = 'https://api.jump.bg/api.php';

$curl_post = [
    'api_userid' => 'API_USER_ID',
    'api_password' => 'API_PASSWORD',
    'type' => 'service',
    'action' => 'listservices',
];

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => $curl_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => $curl_post,
]);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response); //It will return the result in JSON

Response Parameters:

{
    "success": 1,
    "count": 228,
    "services": [
        {
            "id": 5753,
            "orderid": 9372,
            "ordernumber": 8215995424,
            "pid": 426,
            "regdate": "2020-02-04",
            "name": "Test Service",
            "domain": "test.domain.test",
            "dedicatedip": "",
            "suspensionreason": "",
            "firstpaymentamount": "4.90",
            "recurringamount": "4.90",
            "paymentmethod": "paypal",
            "paymentmethodname": "PayPal",
            "billingcycle": "Monthly",
            "nextduedate": "2021-02-04",
            "status": "Active",
            "username": "тtest",
            "password": " ",
            "lastupdate": "2020-04-28 09:04:55",
            "customfields": {
                "customfield": [
                    {
                        "id": 424,
                        "name": "Delta Account ID",
                        "translated_name": "Delta Account ID",
                        "value": ""
                    },
                    {
                        "id": 425,
                        "name": "Операционна система",
                        "translated_name": "Операционна система",
                        "value": "CentOS 8 x64"
                    }
                ]
            },
            "configoptions": {
                "configoption": [
                    {
                        "id": 164,
                        "option": "Контролен панел \/ Control Panel",
                        "type": "dropdown",
                        "value": "Без контролен панел"
                    },
                    {
                        "id": 139,
                        "option": "Допълнително дисково пространство",
                        "type": "quantity",
                        "value": 0
                    },
                    {
                        "id": 165,
                        "option": "CloudLinux лиценз",
                        "type": "dropdown",
                        "value": "Не"
                    },
                    {
                        "id": 140,
                        "option": "Допълнителен трафик (TB)",
                        "type": "quantity",
                        "value": 0
                    },
                    {
                        "id": 141,
                        "option": "IP адреси",
                        "type": "dropdown",
                        "value": "1 IP адрес"
                    },
                    {
                        "id": 166,
                        "option": "Пространство за резервни копия (snapshots)",
                        "type": "quantity",
                        "value": 0
                    }
                ]
            }
        }
    ]
}

{info} The id of the contact is the actual key of the returned json array

Action: listproducts

Lists all available products.

Params Description Required
products Can be passed for a specific product ids. Can be multiple ids, separated by comma (Example: 43,45,46) No

Request Parameters

$curl_url = 'https://api.jump.bg/api.php';

$curl_post = [
    'api_userid' => 'API_USER_ID',
    'api_password' => 'API_PASSWORD',
    'type' => 'service',
    'action' => 'listproducts',
    'products' => 64,
];

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => $curl_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => $curl_post,
]);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response); //It will return the result in JSON

Response Parameters:

{
    "success": 1,
    "products": [
        {
            "name": "Старт",
            "pid": 64,
            "type": "hostingaccount",
            "paytype": "recurring",
            "product_url": "https:\/\/www.jump.bg\/members\/store\/hosting\/start-1",
            "pricing": {
                "BGN": [
                    {
                        "monthly": "8.50",
                        "quarterly": "24.00",
                        "semiannually": "45.60",
                        "annually": "78.00",
                        "biennially": "151.20",
                        "triennially": "223.20"
                    }
                ],
                "EUR": [
                    {
                        "monthly": "4.35",
                        "quarterly": "12.27",
                        "semiannually": "23.32",
                        "annually": "39.88",
                        "biennially": "77.31",
                        "triennially": "114.12"
                    }
                ],
                "USD": [
                    {
                        "monthly": "5.24",
                        "quarterly": "14.81",
                        "semiannually": "28.13",
                        "annually": "48.12",
                        "biennially": "93.28",
                        "triennially": "137.70"
                    }
                ]
            },
            "configoptions": [
                {
                    "name": "Избор на локация2",
                    "id": 9,
                    "options": [
                        {
                            "name": "България - Използван датацентър 3DC\/Equinix, София",
                            "id": 20,
                            "value": "bg",
                            "pricing": {
                                "BGN": [
                                    []
                                ],
                                "USD": [
                                    []
                                ],
                                "EUR": [
                                    []
                                ]
                            }
                        },
                        {
                            "name": "Германия - Използван датацентър OVH",
                            "id": 19,
                            "value": "de",
                            "pricing": {
                                "BGN": [
                                    []
                                ],
                                "USD": [
                                    []
                                ],
                                "EUR": [
                                    []
                                ]
                            }
                        },
                        {
                            "name": "Франция - Използван датацентър OVH",
                            "id": 306,
                            "value": "fr",
                            "pricing": {
                                "BGN": [
                                    []
                                ],
                                "USD": [
                                    []
                                ],
                                "EUR": [
                                    []
                                ]
                            }
                        }
                    ]
                },
                {
                    "name": "Допълнителено дисково пространство",
                    "id": 184,
                    "options": [
                        {
                            "name": "10",
                            "id": 488,
                            "value": null,
                            "pricing": {
                                "BGN": [
                                    {
                                        "monthly": "6.00",
                                        "quarterly": "18.00",
                                        "semiannually": "36.00",
                                        "annually": "72.00"
                                    }
                                ],
                                "USD": [
                                    []
                                ],
                                "EUR": [
                                    []
                                ]
                            }
                        }
                    ]
                },
                {
                    "name": "Персонален IP адрес",
                    "id": 185,
                    "options": [
                        {
                            "name": "Вече може да направите Вашия уеб сайт уникален, като използвате услугата Dedicated IP address. Тази услуга Ви дава идентичност в уеб пространството. С Dedicated IP address на Вашата страница ще отговаря само един IP адрес.",
                            "id": 489,
                            "value": null,
                            "pricing": {
                                "BGN": [
                                    {
                                        "monthly": "3.80",
                                        "quarterly": "3.40",
                                        "semiannually": "3.80",
                                        "annually": "3.60"
                                    }
                                ],
                                "USD": [
                                    []
                                ],
                                "EUR": [
                                    []
                                ]
                            }
                        }
                    ]
                },
                {
                    "name": "Dev пакет",
                    "id": 312,
                    "options": [
                        {
                            "name": "SSH, WP-CLI, GIT & Composer за Laravel",
                            "id": 321,
                            "value": null,
                            "pricing": {
                                "BGN": [
                                    {
                                        "monthly": "3.5",
                                        "quarterly": "1.50",
                                        "semiannually": "1.00",
                                        "annually": "1.00"
                                    }
                                ],
                                "USD": [
                                    []
                                ],
                                "EUR": [
                                    []
                                ]
                            }
                        }
                    ]
                }
            ],
            "customfields": []
        }
    ]
}