Your store's APIApps referenceResellers
Set Reseller Terms
PUT
/admin/resellers/{membershipId}/termsPath Parameters
membershipId*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.
creditLimitMinor*integer
Range
0 <= value <= 9007199254740991paymentTermsDays*integer
Range
0 <= value <= 365billingPeriod*string
Value in
- "weekly"
- "monthly"
graceDays*integer
Range
0 <= value <= 90autoSuspendAfterDays*|null
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/admin/resellers/string/terms" \ -H "Content-Type: application/json" \ -d '{ "creditLimitMinor": 0, "paymentTermsDays": 0, "billingPeriod": "weekly", "graceDays": 0, "autoSuspendAfterDays": 1 }'{ "id": "string", "account": { "id": "string", "displayName": "string" }, "upline": { "membershipId": "string", "displayName": "string" }, "depth": 1, "subResellerCount": -9007199254740991, "status": "active", "suspendedReason": "seller", "tierId": "string", "terms": { "creditLimitMinor": 0, "paymentTermsDays": 0, "billingPeriod": "weekly", "graceDays": 0, "autoSuspendAfterDays": 1 }, "balance": { "balanceMinor": -9007199254740991, "creditLimitMinor": 0, "availableMinor": -9007199254740991, "overdue": true, "purchasesBlocked": true }, "createdAt": "string", "suspendedAt": "string", "commissionBps": 0, "overrides": { "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 }, "notes": "string", "effectivePolicy": { "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 }, "members": [ { "email": "string", "role": "owner" } ]}Set Reseller Overrides PUT
Replaces all of the reseller's overrides with these: one left out goes back to its tier's value, or, for a reseller without a tier, to no support action. An override replaces its whole field, so overriding allowedActions or quotas replaces the tier's whole list: to add one action, send the tier's list with it. Refused for a sub-reseller, whose policy is its upline's to set.
Set Reseller Tier PUT
Next Page
