API Guide for Personal Cabinet
This document covers the control panels' APIs. You need to be logged in with the appropriate privileges to call a function. GET" and "POST" methods are supported.
Last updated
This document covers the control panels' APIs. You need to be logged in with the appropriate privileges to call a function. GET" and "POST" methods are supported.
Last updated
You can use this method when working with a control panel through your web browser.
Follow the link:
You should specify this session id in the auth parameter to each call to a control panel. The session id is valid for one hour. If you do not send any requests to the control panel during that period, you will have to get authorized again.
This method can be used for remote function calls. To call a BILLmanager function, you need to add the authinfo parameter and specify a login and password of the user who will call that functions:
You must send the authinfo parameter with each call to the control panel. Authorization via "authinfo" can be restricted to the "white list" of IP addresses and/or networks. You can configure the "white list" through the "RestrictAuthinfoRange" and "Option RestrictAuthinfo" parameters of theor through the .
To get the desired function and its parameter values, study the URL of the form in the billing platform.
For example, the URL for a specific payment. Go to Clients β Clients β select a client β click Payments β select a payment β click Edit. The URL of the payment modification form will look like this:
Payment URL
func=payment.edit β function for changing the object, viewing its parameters and creating a new object (payment)
plid β client id
elid β payment id
elname β payment number (payment name)
To get the link in the interface, click the icon next to the title of the section you are in.
To call an function with the privileges of another user, add su=user_name to the URL. A server administrator can call functions as any user; resellers can do so with the privileges of their user accounts. All other users cannot use this method.
To get function results or error messages in your native language, add the lang=language to request (e.g. lang=en). If you specify a non-existent language, a default language will be used (normally, it is English, en)
Output can be generated in XML, JSON and text format. If you wish to receive output results in a specific format, specify the out=format_name parameter.
The out parameter can have one of the following values:
xml β data structures in XML will be generated.
devel β similar to XML, but the document will contain data describing the user's interface.
text β data structures in the text format will be generated
JSONdata β similar to JSON. Only data are described
print β html for printing. Can be used only for data lists
xxxx β you can create a custom output format if needed
If the out parameter is missing, such data are considered to be used by the browser and are converted into HTML.
The "sok=ok" parameter in the request emulates clicking on the action confirmation button (Ok, Apply, Add to Cart, etc.) to submit various forms in the BILLmanager interface. For example, editing a tariff plan.
Sending a request without the "sok=ok" parameter is similar to opening a form. To apply the passed values, add the "sok=ok" parameter to the request.
Not all functions that change something are forms. In such functions, the "sok=ok" parameter may not be used.
In queries that aim to get current values, the "sok=ok" parameter is not used.
calls are sent directly to the control panel (they do not depend on the web-server)
there is no need to store a password, as authentication is always made with permissions of the user who run the script (if you need to perform operations as another user, use the su parameter described above).
has built-in hints to all functions and their parameters relevant to your server
PHP enables to use URL like standard files. The DOM XML library is used to handle XML documents:
Requests are described as follows:
Function: a function name to be passed in the func parameter.
Parameters: a list of parameters and their brief description. If a function has no parameters, they are not specified. Parameters are passed in the format parameter=value.
Result: results may vary depending on the requested function:
The XML document will look like this:
Result: only the element parameters are described. They are one or several XML-nodes containing all possible attributes and values. For example:
The XML document will look like this:
Result: the object parameters are only described. These are one or several XML nodes with all possible attributes and values that describe the properties of that object. For example:
When creating, changing, removing, enabling or disabling an object, the XML document will look like this:
Delete requests return a response code of "200" even if no record is found. To verify that a record has been deleted, you can submit a request to edit the record. If the record is deleted, the request returns an error message.
If an error occurred while processing your request, the XML document will look like this:
json β data structures in JSON will be generated. More information can be found .
For local calls to the control panel, you can use the internal utility , which has a number of advantages