This function returns the checkout URL to use for a cPanel Store or cPanel Market provider purchase.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ purchase_a_license \ provider='cPStore' \ url_after_checkout='http://hostname.example.com' \ login_token='1a676e6f-99fc-11e6-9ab6-e60a769b73bc'
{- "metadata": {
- "command": "purchase_a_license",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}