ExpressionEngine Docs

Importing a License via the API

Importing a license into our system allows add-on developers to ensure that users who purchased their add-ons outside of our platform can validate their licenses. This documentation outlines the process for add-on developers to import licenses into our system.

Requesting API Key

Before importing licenses, add-on developers must contact us to request an API key. The API key is necessary to authenticate requests made to our system. Once the API key is obtained, developers can proceed with the import process.

API Endpoint

Add-on developers can import licenses by making a JSON POST request to the following API endpoint:

POST https://expressionengine.com/vendor-api/import-license

Required Data

The following data fields are required when making a POST request to import a license:

Optional Fields

In addition to the required fields, developers may include optional fields in the POST request:

Example Request

{
    "auth_key": "your_api_key",
    "addon_shortname": "your_addon_shortname",
    "customer_name": "John Doe",
    "email": "john.doe@example.com",
    "license_key": "ABC123XYZ",
    "purchase_date": "2024-01-15",
    "expiration_date": "2025-01-15",
    "notes": "This is a test license import.",
    "price": 49.99
}

Response

Upon successful import, the API will return a response indicating the success status. If there are any errors or issues with the import request, appropriate error messages will be returned along with the response.