Credits

Preview a reseller's credits on delete

GET/credits/accounts/{id}/delete-quote/

read Read: looks, changes nothing. Scopes

What deleting this reseller would do with their balance: returned to the reseller above them, or written off.

Path parameters

  • idstring (uuid)required

Response

200 OK

  • balancestring (decimal)required

    Their balance (negative when they owe credits).

  • kindstringrequiredcan be null

    What happens to it: returned to the reseller above them, or written_off. Null: no credits.

    • returned - returned
    • written_off - written_off
  • goes_toobjectrequiredcan be null

    Who gets the balance back; null when nobody does.

    • idstring (uuid)required
    • usernamestringrequired
    • is_mebooleanrequired

      True when it is the signed-in account.

  • whystringrequired

    The same, in one sentence.

Errors

  • 401 No credential, or one that is wrong, expired or revoked.
  • 403 The account, or the key's or app's scopes, may not do this.
  • 404 Nothing with this id, or nothing the account can see.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means