Archive Product
/admin/products/{productId}/archiveArchives every duration of a product for good: resellers can no longer buy it, and nothing unarchives it. Keys already bought keep working. ListProducts still lists it, with its archivedAt.
Path Parameters
^([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})$Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/admin/products/string/archive"{ "id": "string", "name": "string", "connectionId": "string", "providerProductId": "string", "visibility": { "_tag": "Everyone" }, "skus": [ { "id": "string", "productId": "string", "connectionId": "string", "providerProductId": "string", "name": "string", "durationMinutes": 1, "listPriceMinor": 0, "minOrderQuantity": 1, "visibility": { "_tag": "Everyone" }, "archivedAt": "string", "createdAt": "string", "updatedAt": "string" } ], "archivedAt": "string", "createdAt": "string", "updatedAt": "string"}Update Variant PUT
Turns license keys on for a product variant, or sets the terms of its licenses. validForMs is how long a license lasts from its sale, in milliseconds, and 0 means it never expires; maxUses is how many times its key may be activated, and 0 means unlimited. Licenses already sold keep the terms they were sold with. A "generated" keySource makes a key for each sale; a "supplied" one sells its keys, and either replaces the variant's unsold keys, so saving "generated" drops them. You never see those keys: the form keeps them, whereas with "review": "approval" this payload runs as it is and replaces them, so use the form for a variant whose keys the store supplies.
Create Price Rule POST
A new price rule. Per unit, one of the store's own resellers pays its own FixedPrice of the SKU, else its tier's, else the SKU's listPriceMinor less its tier's discountBps; then the largest promotion running for it comes off that, never several together, and then the largest volume bracket its line's quantity reaches. Brackets apply to every reseller. Percentages are basis points: 1000 is 10%. A sub-reseller pays its upline's unit cost plus the markup its upline set instead. PreviewPricing answers what a reseller would pay.
