novinzodevelopers
Your store's APIApps referenceReseller catalog

Create Tier

POST/admin/tiers

A 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.

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

Response 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"}