Replace License
/admin/licenses/{licenseId}/replaceRevokes an issued key and issues another in its place, for the same order or the same sale of an app, with the same terms and the validity the first had left. The new key is generated, or taken from the product's unsold keys when the store supplies them; with none left, nothing changes. Answers the new key.
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/admin/licenses/string/replace"{ "id": 1, "key": "string", "status": "active", "variantId": "string", "orderId": "string", "customerId": "string", "sale": { "pluginCode": "string", "saleRef": "string" }, "validForMs": 0, "maxUses": 0, "uses": -9007199254740991, "createdAt": "string", "revokedAt": "string", "revokedReason": "seller", "replacedById": 1}List Licenses GET
The keys the store issued, newest first, a numbered page at a time with the count of all that match. status keeps keys of one status. q finds by an exact key, an order id or a customer's email address.
Revoke License POST
Revokes an issued key for good: it no longer activates, and the buyer sees it as revoked on their order. A key an app sold has no order: it stops activating, and the app is not told. A key already revoked is answered as it is.
