billing

Update auto-recharge settings

Update the user's auto-recharge settings.

Enabling requires a saved card (add one via POST /billing/auto-recharge/setup); an enable-without-card attempt or invalid input returns 400.

put/billing/auto-recharge

Request

  • Base URL: https://api.whoisgeni.us (the document declares no server; this is the origin it was published from)
  • URL: https://api.whoisgeni.us/billing/auto-recharge
  • Auth: HTTP bearer

Headers

X-API-Keystring nullable

Request body

enabledboolean required
threshold_creditsinteger required

Top up when balance drops below this.

pack'100_credits' | '500_credits' | '2000_credits' required
monthly_cap_usdinteger nullable

Optional monthly USD spend ceiling.

Response

Successful Response

metaobject nullable

Example response

{
  "error": {
    "code": "JOB_NOT_FOUND",
    "message": "No job found with the given ID."
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.