...
The Reseller API is a RESTful service. All data is returned in JSON format. The API is located at:
No Format |
---|
https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/ |
...
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/getCredit.json -u USERNAME:PASSWORD |
...
Fetch the amount of credit available under your account.
No Format |
---|
GET https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/getcredit.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/getcredit.json -u USERNAME:PASSWORD |
...
Fetches all available reseller packages.
No Format |
---|
GET https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/getpackages.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/getpackages.json -u USERNAME:PASSWORD |
...
Fetches pricing for a specific package.
No Format |
---|
GET https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/getpackagepricing.json?package_id=PACKAGE_ID |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/getpackagepricing.json?package_id=PACKAGE_ID -u USERNAME:PASSWORD |
...
Adds a new license.
No Format |
---|
POST https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/addlicense.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/addlicense.json -u USERNAME:PASSWORD -d "vars[pricing_id]=PRICING_ID&vars[test_mode]=true" |
...
Cancels a license.
No Format |
---|
POST https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/cancellicense.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/cancellicense.json -u USERNAME:PASSWORD -d "vars[license]=LICENSE_KEY&vars[test_mode]=true" |
...
Suspends a license.
No Format |
---|
POST https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/suspendlicense.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/suspendlicense.json -u USERNAME:PASSWORD -d "vars[license]=LICENSE_KEY&vars[test_mode]=true" |
...
Unsuspends a license.
No Format |
---|
POST https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/unsuspendlicense.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/unsuspendlicense.json -u USERNAME:PASSWORD -d "vars[license]=LICENSE_KEY&vars[test_mode]=true" |
...
Updates a license to set it into a reissue state.
No Format |
---|
POST https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/updatelicense.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/updatelicense.json -u USERNAME:PASSWORD -d "vars[license]=LICENSE_KEY&vars[reissue_status]=reissue&vars[test_mode]=true" |
...
Returns all licenses that match the search criteria, which includes license key, domain, IP, and install path. Only non-canceled licenses are returned. Up to 25 results are returned for each response. To fetch additional results, increment the vars[page] parameter.
No Format |
---|
GET https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/search.json |
Code Block |
---|
language | bash |
---|
title | Example Request |
---|
|
curl https://wwwaccount.blesta.com/plugin/blesta_reseller/v2/index/search.json?vars[search]=SEARCH_STRING&vars[page]=1 -u USERNAME:PASSWORD |
...