Create Tier
/admin/tiersA new tier, with no resellers yet. discountBps comes off every SKU's list price unless a fixed price applies. A tier's policy says what its resellers may do: a support action not in allowedActions is refused; a quota limits an allowed action per UTC day, ISO week or calendar month, and an allowed action without a quota has no limit. Past an hwid_reset quota, a reset costs hwidResetOverageMinor, or is refused when that is null. A reseller's overrides replace single fields of its tier's policy (GetReseller).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
0 <= value <= 10000Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/admin/tiers" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "discountBps": 0, "policy": { "allowedActions": [ "hwid_reset" ], "quotas": [ { "action": "hwid_reset", "limit": 0, "period": "day" } ], "maxKeysPerOrder": 1, "monthlyPurchaseCapMinor": 0, "approvalThresholdMinor": 0, "hwidResetOverageMinor": 0, "extendPricing": "free" } }'{ "id": "string", "name": "string", "discountBps": 0, "policy": { "allowedActions": [ "hwid_reset" ], "quotas": [ { "action": "hwid_reset", "limit": 0, "period": "day" } ], "maxKeysPerOrder": 1, "monthlyPurchaseCapMinor": 0, "approvalThresholdMinor": 0, "hwidResetOverageMinor": 0, "extendPricing": "free", "mayInviteSubResellers": true, "maxSubResellers": 0, "subResellerPayLaterLimitMinor": 0 }, "createdAt": "string", "updatedAt": "string"}Create Product POST
A new product resellers may buy keys of, at one or more durations. Each duration is a SKU: durationMinutes is how long its keys last once activated, and null makes lifetime keys. listPriceMinor is the price before tier discounts and price rules. The provider product cannot change afterwards. With connectionId "store" the product sells the store's own keys: providerProductId is one of ListStoreKeyProducts, and it sells at one duration, which you state as its keys last.
Delete Price Rule DELETE
Next Page
