novinzodevelopers
Your store's APIApps referenceReseller catalog

Update Tier

PUT/admin/tiers/{tierId}

Replaces the tier's name, discount and whole policy with these, for every reseller of the tier at once: a field left as it was must be sent as it was. 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).

Path Parameters

tierId*string
Match^([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})$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name*string
discountBps*integer
Range0 <= value <= 10000
policy*

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/admin/tiers/string" \  -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"}