Vai al contenuto principale
GET
JavaScript
API Deprecato: Le chiavi di licenza sono ora gestite tramite il sistema di Entitlements. Usa List Customer Grants (filtra con integration_type=license_key) per recuperare la concessione di una chiave e i suoi dettagli license_key. Questo endpoint verrà rimosso in una versione futura.

Autorizzazioni

Authorization
string
header
obbligatorio

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.

Parametri del percorso

id
string
obbligatorio

License key ID

Risposta

License key found

brand_id
string
obbligatorio

Brand id this license key belongs to

business_id
string
obbligatorio

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

created_at
string<date-time>
obbligatorio

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

Esempio:

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

customer_id
string
obbligatorio

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

Esempio:

"cus_123"

id
string
obbligatorio

The unique identifier of the license key.

Esempio:

"lic_123"

instances_count
integer<int32>
obbligatorio

The current number of instances activated for this license key.

key
string
obbligatorio

The license key string.

product_id
string
obbligatorio

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

source
enum<string>
obbligatorio

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

Opzioni disponibili:
auto,
import,
manual
status
enum<string>
obbligatorio

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

Opzioni disponibili:
active,
expired,
disabled
activations_limit
integer<int32> | null

The maximum number of activations allowed for this license key.

Esempio:

5

expires_at
string<date-time> | null

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

Esempio:

"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.

Ultima modifica il 9 luglio 2026