Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Fetch the amount of credit available under your account.

No Format
GET https://www.blesta.com/plugin/blesta_reseller/v2/index/getcredit.json
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/getcredit.json -u USERNAME:PASSWORD

...

Fetches all available reseller packages.

No Format
GET https://www.blesta.com/plugin/blesta_reseller/v2/index/getpackages.json
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/getpackages.json -u USERNAME:PASSWORD

...

Fetches pricing for a specific package.

No Format
GET https://www.blesta.com/plugin/blesta_reseller/v2/index/getpackagepricing.json?package_id=PACKAGE_ID
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/getpackagepricing.json?package_id=PACKAGE_ID -u USERNAME:PASSWORD

...

Add License

Adds a new license.

No Format
POST https://www.blesta.com/plugin/blesta_reseller/v2/index/addlicense.json
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/addlicense.json -u USERNAME:PASSWORD -d "vars[pricing_id]=PRICING_ID&vars[test_mode]=true"

...

Cancel License

Cancels a license.

No Format
POST https://www.blesta.com/plugin/blesta_reseller/v2/index/cancellicense.json
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/cancellicense.json -u USERNAME:PASSWORD -d "vars[license]=LICENSE_KEY&vars[test_mode]=true"

...

Suspend License

Suspends a license.

No Format
POST https://www.blesta.com/plugin/blesta_reseller/v2/index/suspendlicense.json
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/suspendlicense.json -u USERNAME:PASSWORD -d "vars[license]=LICENSE_KEY&vars[test_mode]=true"

...

Unsuspend License

Unsuspends a license.

No Format
POST https://www.blesta.com/plugin/blesta_reseller/v2/index/unsuspendlicense.json
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/suspendlicenseunsuspendlicense.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://www.blesta.com/plugin/blesta_reseller/v2/index/updatelicense.json
Code Block
languagebash
titleExample Request
curl https://www.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.

No Format
GET https://www.blesta.com/plugin/blesta_reseller/v2/index/search.json
Code Block
languagebash
titleExample Request
curl https://www.blesta.com/plugin/blesta_reseller/v2/index/search.json?vars[search]=SEARCH_STRING&vars[page]=1 -u USERNAME:PASSWORD

...