Store APIsLicenses
Verify license
Verifies a license key against a product and returns its activation status. Intended for first-party software activation flows. Requires the LICENSES_READ scope.
AuthorizationBearer <token>
Bearer token authentication. Pass the secret directly in the Authorization header. Token secrets start with sk_.
In: header
Path Parameters
storeId*string
Length
12 <= length <= 48Header Parameters
idempotency-key?string
Length
8 <= length <= 32Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/stores/stringstring/licenses/verify" \ -H "Content-Type: application/json" \ -d '{ "key": "string" }'{ "ok": true, "data": { "valid": true, "status": "CLAIMED", "productId": "prd_8h4t6sqzy3x9w5n2k1m0vqbf", "customerId": "cus_j8h0r1n4tzcbfp2v8q1mzwx5", "expiresAt": null }}