Set Commerce URL

This function enables Sitejet Commerce for all users and allows the hosting provider to set a custom URL for their payment platform, which customers can use to purchase the Sitejet Commerce upgrade.

SecurityBasicAuth
Request
query Parameters
allowCommerce
required
integer
  • 1 - Sitejet Commerce is enabled.
  • 0 - Sitejet Commerce is disabled.
Enum: 0 1
Example: allowCommerce=1
storeurl
string <url>

The URL for the hosting provider's payment platform. If this value is not set, the URL will default to the Sitejet Commerce store.

Example: storeurl=http://www.example-store.com/purchase
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/set_commerce
Request samples
whmapi1 --output=jsonpretty \
  Sitejet/set_commerce \
  allowCommerce='1'
Response samples
application/json
{
  • "metadata": {
    • "command": "set_commerce",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}