novinzodevelopers
Your store's APIApps referenceReseller purchases and keys

Admin Mint Trial

POST/admin/trials

Mints one free trial key of a product AdminListTrials lists for an active reseller, whose keys it joins, lasting minutes or, left out, the product's trial limit. The seller's own trial: the reseller's role, policy and trial quota do not apply, and nothing is charged.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

connectionId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
productId*string
Length1 <= length <= 200
minutes?integer
Range0 < value <= 9007199254740991
note*|null
membershipId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/trials" \  -H "Content-Type: application/json" \  -d '{    "connectionId": "string",    "productId": "string",    "note": "string",    "membershipId": "string"  }'
{  "action": {    "id": "string",    "kind": "hwid_reset",    "licenseId": "string",    "costMinor": 0,    "currency": "AED",    "status": "pending",    "error": "string",    "actor": "string",    "actorName": "string",    "createdAt": "string"  },  "license": {    "id": "string",    "code": "string",    "skuId": "string",    "skuName": "string",    "purpose": "sale",    "purchaseId": "string",    "status": "unused",    "durationMinutes": 1,    "activatedAt": "string",    "expiresAt": "string",    "holderDisplay": "string",    "lastSeenAt": "string",    "note": "string",    "tags": [      "string"    ],    "refreshedAt": "string",    "createdAt": "string"  }}