Set Ecommerce URL

This function enables Sitejet Commerce and sets the URL for the store.

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

The url for the storefront.

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

HTTP Request was successful.

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