novinzodevelopers
ResellersReferenceReseller API

Run Key Action

POST/storefront-public/api/v1/keys/{licenseId}/actions

Runs a support action on a key the reseller owns. A key of another reseller or store is not found, and the provider is never called for it. The key is read from the provider first, and the action refused unless the key is in a state it applies to. A priced action is charged before the provider is called and released if the provider refuses it; a provider that does not answer leaves the action pending with its charge held, asked again under the same id when the key is next opened, and the key takes no other action meanwhile.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

licenseId*string

The key's id (a UUID), not its code. A purchase answers it in licenses[].id; GET /keys?q=<code> finds it from a code.

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})$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

_tag*"HwidReset"

Value in

  • "HwidReset"

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/keys/string/actions" \  -H "Content-Type: application/json" \  -d '{    "_tag": "HwidReset"  }'
{  "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"  }}