Your store's APIApps referenceResellers
Remove Resellers
POST
/admin/resellers/removeRemoves several resellers, each as RemoveReseller would, one after another, and answers what became of each.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
membershipIds*array<>
Items
1 <= items <= 20Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/admin/resellers/remove" \ -H "Content-Type: application/json" \ -d '{ "membershipIds": [ "string" ] }'[ { "_tag": "Done", "id": "string", "value": { "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" } ] } }]Remove Reseller POST
Removes the reseller; they keep their keys and history, and the invites they sent sub-resellers are cancelled. Refused with 409 `ConflictError` (`has-sub-resellers`) while sub-resellers still buy through them.
Resend Invite POST
Issues a new token for a pending or expired invite, restarts its 7 days and emails the new link. The old token stops working.
