Skip to main content
PATCH
/
v1
/
billing
/
balance
Update auto-reload settings
curl --request PATCH \
  --url https://reelmirror.com/api/v1/billing/balance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "auto_reload": true,
  "reload_threshold_cents": 2500,
  "reload_amount_cents": 2550
}
'
{
  "data": {
    "balance_cents": 123,
    "balance_dollars": "<string>",
    "auto_reload": true,
    "reload_threshold_cents": 123,
    "reload_amount_cents": 123
  }
}

Authorizations

Authorization
string
header
required

API key (rm_xxx) or JWT token

Body

application/json
auto_reload
boolean

Enable or disable automatic balance reload

reload_threshold_cents
integer

Balance level (in cents) that triggers an auto-reload. Min 0, max 5000.

Required range: 0 <= x <= 5000
reload_amount_cents
integer

Amount (in cents) to reload when the threshold is hit. Min 100 ($1), max 5000 ($50).

Required range: 100 <= x <= 5000

Response

Updated balance settings, or a Stripe setup URL when no payment method is on file

data
object