wallet

Set Auto Recharge

Configure auto-recharge: below thresholdCents, charge the saved card for amountCents (max 3x/24h, 6h backoff after a failed charge).

Enabling requires a saved card RIGHT NOW (2026-07-17 decision): an opt-in that cannot charge is worse than none, because the user believes refills are armed while the sweep fails forever. Callers get a 400 with a machine-readable code (SDKs wrap this endpoint). Disabling is never blocked. The check is skipped only when Stripe itself is unconfigured (dev environments, where the sweep could not charge anyway).

post/api/wallet/auto-recharge

Request

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

Request body

enabledboolean required
thresholdCentsinteger nullable
amountCentsinteger nullable

Response

Successful Response

unknown required

Changes

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