Suspend Resellers
/admin/resellers/suspendSuspends 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.
1 <= items <= 20Response 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 } }]Suspend Reseller POST
Blocks the reseller's partner area and API in this store. With revokeUnusedKeys, their unused keys are revoked at the provider and refunded per the store's refund policy.
Create Order Review POST
Publishes the buyer's review of one line of one of the store's paid orders, such as one paid through your own checkout, as if they had left it on their order page: source "buyer", status "published", under the order's customer. orderItemId names the line. An empty message leaves a rating without words. A line takes one review, from either surface: a second is ReviewAlreadySubmittedError. An order of another store, or none the store has, is OrderNotFoundError; one not yet paid for is OrderNotPaidError. Only the store's owner, or an app API key, may call it: a team member is StoreOwnerRequiredError.
