Mint Trial
/storefront-public/api/v1/trialsMints 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 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
^([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})$1 <= length <= 2000 < value <= 9007199254740991Response 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" }}List Trials GET
The provider products the caller may mint trial keys of, each with the longest a trial may last. Empty when the store's policy does not allow trials. Fails with the provider's error when a connection's provider cannot list its products, rather than answer a list missing that connection's trials.
Quote Key Action POST
Prices a support action on a key without running it: what RunKeyAction would charge now, and what revoking the key would refund. Refused for the same reasons RunKeyAction would be, short of funds and the provider call.
