User API

Set Auto Recharge

Changed on

Set the user's auto-recharge settings.

put/me/billing/auto-recharge

Request

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

Request body

enabledboolean required
currency'usd' | 'eur' nullable

Response

Successfully updated auto-recharge settings

user_idstring required
stripe_customer_idstring required
plan_type'trial' | 'trial_ended' | 'pay_as_you_go' | 'subscription' required
has_payment_methodboolean
currency'usd' | 'eur'
auto_recharge_enabledboolean
auto_recharge_threshold_dollarsstring
auto_recharge_target_dollarsstring
auto_recharge_monthly_limit_dollarsstring nullable
subscription_period_startstring date-time nullable
subscription_period_endstring date-time nullable
subscription_status'incomplete' | 'incomplete_expired' | 'trialing' | 'active' | 'past_due' | 'canceled' | 'unpaid' | 'paused' nullable
interval'day' | 'week' | 'month' | 'year' nullable
cancel_at_period_endboolean nullable
price_idstring nullable
is_member_of_paid_organisationboolean

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status