POST /wp-json/slswc/v1/add_domain
Add a domain to a license. This will add the domain to the list of activated domains for the license.
Parameter | Datatype | Example | Description |
---|---|---|---|
license_key | String required | Ss23dhsjhdjshjhfddfr | The license key to be activated. This must be a valid. |
slug | String required | testplugin | The slug of the software. This must be a valid slug unique to each software product |
domain | String optional | example.com | The domain the license is activated on. |
environment | String optional | live | The server environment the license is activated on. Expects live or staging, default live |
Example Response
{ "status": "ok", "message": "Domain added to license." "domains": { "example.com": { "domain": "example.com", "status": "", "version": "", "date_time": "2019-06-22 00:00", "environment": "" }, } }