novinzodevelopers
Your store's APIApps referenceResellers

Suspend Resellers

POST/admin/resellers/suspend

Suspends several resellers, each as SuspendReseller would, one after another, and answers what became of each. With revokeUnusedKeys every unused key of theirs is revoked too, which costs a request as much as a reseller does; the dashboard sends those one reseller at a time.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

membershipIds*array<>
Items1 <= items <= 20
revokeUnusedKeys*boolean
reason*string|null

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/admin/resellers/suspend" \  -H "Content-Type: application/json" \  -d '{    "membershipIds": [      "string"    ],    "revokeUnusedKeys": true,    "reason": "string"  }'
[  {    "_tag": "Done",    "id": "string",    "value": {      "membership": {        "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"      },      "revokedKeys": -9007199254740991,      "failedRevocations": -9007199254740991    }  }]