admin

Update Auto Charge

Update a user's auto-charge settings.

put/v1/admin/accounts/{user_id}/auto-charge

Path parameters

user_idstring required

Headers

authorizationstring

Request body

enabledboolean nullable

Enable/disable auto-charge

thresholdinteger nullable

Balance threshold to trigger auto-charge

amountinteger nullable

Top-up amount

Response

Successful Response

user_idstring required

User ID

emailstring nullable

Account email

billing_typestring

'prepaid' or 'postpaid'

spending_limitinteger nullable

Spending limit per period in dollars

balance_dollarsnumber nullable

Prepaid shadow balance (dollars)

created_atstring nullable

Account creation timestamp

updated_atstring nullable

Last update timestamp

Example response

{
  "rate_limits": {
    "rpm": {
      "usage": 12,
      "limit": 100
    },
    "concurrency": {
      "usage": 12,
      "limit": 100
    }
  }
}

Changes

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