novinzodevelopers
Your store's APIApps referenceIssued keys

Replace License

POST/admin/licenses/{licenseId}/replace

Revokes 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

licenseId*string

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}