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/v3/reseller/licenses/generate
Request Headers:
Header | Type | Required | Description |
---|---|---|---|
Authorization | string | ✅ | Bearer token with a valid reseller API key |
X-Registered-To | string | ✅ | The new name of the registered user for the license |
X-Domain-Or-IP | string | ✅ | The new domain or IP address associated with the license |
X-Status | string | ✅ | The new status of the license (e.g., valid , invalid ) |
Example Request:
POST https://api.ricardoneud.com/v2/reseller/licenses/generateAuthorization: Bearer your-reseller-tokenX-Registered-To: John DoeX-Domain-Or-IP: example.comX-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
, andX-Status
). - The reseller token must match the license’s reseller_id to allow updates.