Billing

Enable or disable email pack auto-recharge

When enabled, the platform automatically repurchases a $5 email pack when email_credits_remaining drops below the threshold. Threshold must be a non-negative safe integer. Unknown organizations return 404. Requires a saved Stripe payment method, admin key, or an org role of billing or higher. 3 consecutive failures automatically disable auto-recharge.

patch/orgs/v1/{org_id}/billing/auto-recharge

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/orgs/v1/{org_id}/billing/auto-recharge
  • Auth: one of:
    • API key in header SIGN-IN-WITH-X
    • API key in header x-admin-key

Path parameters

org_idstring uuid required

Organization UUID

Request body

enabledboolean required
thresholdinteger

Response

Auto-recharge updated

status'ok' required
org_idstring required
enabledboolean required
thresholdinteger nullable required

Changes

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