/
/
/
/
Reselling BitnNinja module licenses

Reselling BitnNinja module licenses

This article is about BitNinja module licenses, which can be purchased in the LicensesIspmanager modules section of your Client area. This version can be used only on a server with ispmanager installed. Installation and configuration are performed using ispmanager web interface.

Order BitNinja module

To order, use the addition.order.paramfunction with the following parameters:

  • item — ID of the ispmanager license for which the module is purchased;
  • period — service validity period. Possible values:
    • period=1 — 1 month license purchase;
    • period=6 — 6 months license purchase;
    • period=12 — 1 year license purchase;
    • period=-100 — order trial license.
  • pricelist — tariff plan code. Possible values:
    • pricelist=55371 — when ordered via https://api-eu.ispmanager.com.
  • skipbasket — debit and activate the service at once, ignoring the shopping cart. Possible values:
    • skipbasket=on — ignore the shopping cart. Order, charge, and activate the service immediately;
    • skipbasket=off — add to the shopping cart. Order, but not activate, the service is waiting for payment in the cart.
  • autoprolong — auto-renew. Must be equal to the period.value. If a different value is specified, auto-renewal will not be enabled for the service. Possible values:
    • autoprolong=1 — 1 month auto-renewal;
    • autoprolong=6 — 6 months auto-renewal;
    • autoprolong=12 — 1 year auto-renewal;
    • autoprolong=null — no auto-renewal.
Module order example
https://api-eu.ispmanager.com/manager/billmgr?authinfo=user:passwd&func=addition.order.param&item=1&period=1&pricelist=55390&bitninja_email=email&autoprolong=1&sok=ok&skipbasket=on

The request will result in payment and immediate activation of BitNinja module license for 1 month in eu.ispmanager.com client area, with the name specified in the Name field and auto-renewal for 1 month.

Renew BitNinja module

To renew the module license, use the service.prolong function with the following parameters:

  • elid — the service ID;
  • period — service validity period. Possible values:
    • period=1 — 1 month;
    • period=6 — 6 months;
    • period=12 — 1 year.

The service will be extended immediately after the request is fulfilled, so there should be enough funds on your client area balance.

Example of module license renewal
https://api-eu.ispmanager.com/manager/billmgr?authinfo=user:passwd&func=service.prolong&elid=123456789&period=1&sok=ok

As a result, the BitNinja module license with the ID 123456789 will be renewed for 1 month. The funds will be deducted from your account balance.

Delete BitNinja module

To delete the BitNinja module license, use the addition.delete function with the following parameters:

  • elid — the service ID.
Module deletion example
https://api-eu.ispmanager.com/manager/billmgr?authinfo=user:passwd&func=addition.delete&elid=123456789

As a result, the BitNinja module license with the ID 123456789 will be removed from your client area.

 

View BitNinja modules

To view BitNinja module licenses, use the addition function with the following parameters:

  • out — function with the following parameters:
    • out=xml — the data will be returned in XML format (with no pagination and no filters);
    • out=devel  — same as XML, but the document will contain data describing the user interface (useful for debugging your plugins);
    • out=text — the data in text format (with no pagination and no filters);
    • out=sjson —  the data in JSON format;
    • out=json — same as sjson, only Pretty Print (useful for debugging);
    • out=JSONdata — same as JSON, but without interface descriptions, just data (no pagination and no filters);
    • out=xjson — similar to the default output format (html), but in JSON format (recommended for creating custom themes);
    • out=print — printable HTML, works for data lists only;
Example of displaying information about modules
https://api-eu.ispmanager.com/manager/billmgr?authinfo=user:passwd&func=addition&out=json

The result will be a JSON string with an array of all BitNinja module licenses in elem.

To view the data of a single BitNinja module license, use the addition.edit function with the following parameters:

  • elid — service ID;
  • out — data output.
Example of displaying information about one module
https://api-eu.ispmanager.com/manager/billmgr?authinfo=user:passwd&func=addition.edit&elid=123456789&out=json

The result will be a JSON string that contains information about one BitNinja module license with ID 123456789.