Skip to content

Generate License

This documentation helps you generate a license by providing the necessary details via headers.

Generating a License

You can generate a license by making a request to the following API endpoint:

POST https://api.ricardoneud.com/v2/reseller/licenses/generate

Request Headers:

HeaderTypeRequiredDescription
AuthorizationstringBearer token with a valid reseller API key
X-Registered-TostringThe new name of the registered user for the license
X-Domain-Or-IPstringThe new domain or IP address associated with the license
X-StatusstringThe new status of the license (e.g., valid, invalid)

Example Request:

POST https://api.ricardoneud.com/v2/reseller/licenses/generate
Authorization: Bearer your-reseller-token
X-Registered-To: John Doe
X-Domain-Or-IP: example.com
X-Status: valid

Example Response:

{
"message": "License generated successfully",
"data": {
"registered_to": "John Doe",
"domain_or_ip": "example.com",
"license_key": "RicardoNeud-generated_key",
"status": "valid"
}
}

Error Responses:

  • 401 Unauthorized: If the reseller token is invalid or does not match the license.
  • 400 Bad Request: If no valid update fields are provided.
  • 500 Internal Server Error: If a database error occurs.

Notes:

  • You must provide all fields (X-Registered-To, X-Domain-Or-IP, and X-Status).
  • The reseller token must match the license’s reseller_id to allow updates.