Get License
/admin/licenses/{licenseId}Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/admin/licenses/string"{ "license": { "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 }, "customerEmail": "string", "replacedByKey": "string"}Modify Coupon PUT
Replaces a live coupon's terms with these: one left out is cleared, so without active the coupon is live until archived. Refused once an order or a checkout still in progress has claimed the coupon; a claim of a checkout that ends unpaid stops counting. To change a coupon in use, archive it and add a new one. A "percentage" discount's amount is a percent from 0 to 100, so 15 takes 15% off, not 0.15. A "fixed" discount's amountInMinorUnits comes off the cart's subtotal, and never more than it. Its code must be one no other live coupon of the store has. scope {"_tag":"store"} takes the discount off the whole cart; {"_tag":"chosen","productIds":[...],"variantIds":[...]} (ids from ListStoreVariants, at least one and at most 100 together) takes it off only the cart lines of those products and variants: a percentage off each such line, a fixed amount shared between them and never more than they cost, and a cart holding none of them is refused the coupon.
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.
