Write Off Statement
/admin/statements/{statementId}/write-offCredits what the statement still owes as a write-off and closes it, which lifts any purchase block it caused.
Path Parameters
^([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.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/admin/statements/string/write-off" \ -H "Content-Type: application/json" \ -d '{ "reason": "string" }'{ "id": "string", "membershipId": "string", "periodStart": "string", "periodEnd": "string", "amountDueMinor": 0, "amountPaidMinor": 0, "currency": "AED", "dueAt": "string", "status": "open", "issuedAt": "string", "writtenOffAt": "string"}Update Settings PUT
Replaces the store's reseller settings. refundPolicy is what a reseller gets back for an unused key it revokes. defaultTerms are the terms an invite offers as it is sent: changing them changes no existing reseller's terms (SetResellerTerms). subResellerLevels is how many levels of sub-resellers may buy below the store's own resellers.
Granted Product Revenue POST
What the products the store's owner granted the caller earned the store in the window, by name: for each duration, keys sold, what the store refunded, and what its resellers paid it less those refunds. No other product, and nothing of who bought them. Only a teammate granted products reads it; anyone else is refused and reads SellerProductRevenue. Each row's money is in its own `currency`: what was sold before the store changed its currency is converted into the store's currency now at the rate of each change since (GetCurrencyHistory), so a product has a row of its own in another currency only for what no recorded change converts.
