Before continuing, please read the basics article.
Endpoint used to remotely deactivate an activation (activated product).
Request parameters
action
string
This identifies the endpoint wanted. Should always be `license_key_deactivate` for this endpoint. This parameter should be omitted from the request when using REST-based handlers.
store_code
string
Store code provided in the License Keys API settings page. This is a security code used to validate the store.
sku
string
Product SKU.
license_key
string
Customer’s license key code.
domain
string
Domain. (optional) This parameter is not required for desktop products.
activation_id
string
The Activation ID returned when a license key was activated (see activation endpoint).
Request example
Use the following piece of code (at Code Pen) as an example (WP Ajax handler):
Responses
All responses are returned in JSON format.
Successful response
{ "error": false, "status": 200, "message": "Activation has been deactivated." }
Failed response
{ "error": true, "status": 500, "errors": { "license_key": [ "Invalid license key." ], "activation_id": [ "Invalid activation." ] } }
View this article to change the way errors are returned.