1. Home
  2. Docs
  3. WooCommerce License Keys
  4. API
  5. Endpoint: Deactivation

Endpoint: Deactivation

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_validate`for this endpoint.

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 license key was activated (see activation endpoint).

Request example

 the following piece of code (at Code Pen) as example:

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.

Was this article helpful to you? Yes No