novinzodevelopers
ResellersReferenceReseller API

Mint Trial

POST/storefront-public/api/v1/trials

Mints one free trial key of a provider product listed by ListTrials, lasting minutes or, left out, the product's trial limit. Counts against the trial quota.

Authorization

bearer
AuthorizationBearer <token>

In: header

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

Response Body

application/json

application/json

application/json

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/storefront-public/api/v1/trials" \  -H "Content-Type: application/json" \  -d '{    "connectionId": "string",    "productId": "string",    "note": "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"  }}