Saltar al contenido principal
GET
JavaScript
API obsoleta: Las claves de licencia ahora se gestionan a través del sistema de Derechos. Utiliza Listar Concesiones de Cliente (filtrar con integration_type=license_key) para recuperar la concesión de una clave y sus detalles license_key. Este endpoint será eliminado en una futura versión.

Autorizaciones

Authorization
string
header
requerido

Send your API key as a bearer token: Authorization: Bearer <api_key>. A test mode key starts with dodo_test_, for example dodo_test_AbCd1234EfGh5678.<secret>. A live mode key starts with dodo_live_. Use a test mode key on test.dodopayments.com and a live mode key on live.dodopayments.com. Keys from before these tags have no tag and operate as before.

Parámetros de ruta

id
string
requerido

License key ID

Respuesta

License key found

brand_id
string
requerido

Brand id this license key belongs to

business_id
string
requerido

The unique identifier of the business associated with the license key.

created_at
string<date-time>
requerido

The timestamp indicating when the license key was created, in UTC.

Ejemplo:

"2024-01-01T00:00:00.000Z"

customer_id
string
requerido

The unique identifier of the customer associated with the license key.

Ejemplo:

"cus_123"

id
string
requerido

The unique identifier of the license key.

Ejemplo:

"lic_123"

instances_count
integer<int32>
requerido

The current number of instances activated for this license key.

key
string
requerido

The license key string.

product_id
string
requerido

The unique identifier of the product associated with the license key.

source
enum<string>
requerido

The source of the license key - 'auto' for keys generated by payment/subscription flows, 'import' for merchant-imported keys.

Opciones disponibles:
auto,
import,
manual
status
enum<string>
requerido

The current status of the license key (e.g., active, inactive, expired).

Opciones disponibles:
active,
expired,
disabled
activations_limit
integer<int32> | null

The maximum number of activations allowed for this license key.

Ejemplo:

5

expires_at
string<date-time> | null

The timestamp indicating when the license key expires, in UTC.

Ejemplo:

"2024-12-31T23:59:59.000Z"

payment_id
string | null

The unique identifier of the payment associated with the license key, if any.

subscription_id
string | null

The unique identifier of the subscription associated with the license key, if any.

Última modificación el 9 de julio de 2026