Run Key Action
/storefront-public/api/v1/keys/{licenseId}/actionsRuns 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 In: header
Path Parameters
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.
^([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.
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" }}Retry Purchase POST
Previous Page
Tag Keys POST
Adds and removes tags on up to 200 of the caller's own keys at once, and answers those keys as tagged. Their notes are left as they are. It is not a support action and costs nothing. Every key changes or none does: a key of anyone else, or of another store, is not found, and a key that would carry more than 20 tags fails the request with TagLimitExceededError naming every such key. A request that adds and removes the same tag, or names no tag, is refused with InvalidRequestError.
