Documentation · API reference
POST/api/v1/admin/accounts/{id}/withdraw

Withdraw a consumer's account from the agreement

Withdraw a consumer's account from the agreement, for one who wrote in.

Parameters

idin the address
neededThe account

What to send

AdminWithdraw A consumer's withdrawal, for one who wrote in rather than use the button: their name, where to confirm, and the day they sent it (ISO; empty is today). A withdrawal counts from when it was sent.

email
stringneeded
name
stringneeded
reason
stringneeded
sent_on
string

The answer

Status 200

AdminAccount

agreed
integer or nullWhen the agreement now running was made.
audit
list of AdminLineneededWhat its members did, newest first.
buyer
stringWho the account buys as: empty, `business` or `consumer`.
deletion_by
stringneeded
events
list of AdminEventneededThe provider's events about it, newest first.
invited
string or nullThe note of the invite code it was made with, if it was: "for Ana".
invoices
list of InvoiceViewneeded
limits
AdminLimits or null
log
list of AdminLineneededWhat operators did to it, newest first.
members
list of AdminMemberneeded
notes
list of AdminNoteneeded
now
integerneeded
plan
PlanViewneededThe plan as it applies to this account: its own limits in place.
plans
list of PlanViewneeded
row
AdminAccountRowneeded
sites
list of AdminSiteneeded
subscription
AdminSubscription or null
suspended_why
stringneeded
terms_ts
integer or null
terms_version
stringThe version of the terms its owner accepted at sign-up, and when (doc/audit-fixes.md 3.4). Empty where none were published.

Asking

With your token from Settings
curl -X POST https://tidekeeper.eu/api/v1/admin/accounts/{id}/withdraw \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"email": "…", "name": "…", "reason": "…"}'
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/admin/accounts/{id}/withdraw", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"email": "…", "name": "…", "reason": "…"}),
}).then((r) => r.json());