Update Settings
/admin/settingsReplaces 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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
0 <= value <= 3Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/admin/settings" \ -H "Content-Type: application/json" \ -d '{ "refundPolicy": { "_tag": "NoRefund" }, "lowBalanceThresholdMinor": 0, "defaultTerms": { "creditLimitMinor": 0, "paymentTermsDays": 0, "billingPeriod": "weekly", "graceDays": 0, "autoSuspendAfterDays": 1 }, "subResellerLevels": 0 }'{ "refundPolicy": { "_tag": "NoRefund" }, "lowBalanceThresholdMinor": 0, "defaultTerms": { "creditLimitMinor": 0, "paymentTermsDays": 0, "billingPeriod": "weekly", "graceDays": 0, "autoSuspendAfterDays": 1 }, "subResellerLevels": 0}Remove Credit Variant DELETE
Stops selling the variant as reseller credit: units bought from then on credit no balance. The product and its variant stay in the store as they are, so they keep selling unless the seller hides or archives them.
Write Off Statement POST
Credits what the statement still owes as a write-off and closes it, which lifts any purchase block it caused.
