Skip to main content
POST
/
v2
/
reseller
/
licenses
/
generate
Generate License
curl --request POST \
  --url https://api.ricardoneud.com/v2/reseller/licenses/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Domain-Or-IP: <x-domain-or-ip>' \
  --header 'X-Registered-To: <x-registered-to>' \
  --header 'X-Status: <x-status>'
{
  "message": "License generated successfully",
  "data": {
    "registered_to": "John Doe",
    "domain_or_ip": "example.com",
    "license_key": "RicardoNeud-generated_key",
    "status": "valid"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Registered-To
string
required

The new name of the registered user for the license

X-Domain-Or-IP
string
required

The new domain or IP address associated with the license

X-Status
string
required

The new status of the license (e.g., valid, invalid)

Response

200 - application/json

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.
message
string
required
data
object
required
I