RawFrame

Update auto-recharge settings

PUT
/v1/account/auto_recharge

When enabled, the saved card is charged amount_micros whenever the available balance falls below threshold_micros (checked every minute). Enabling needs a card saved by a previous top-up (payment_method_required otherwise). Requires the billing:write scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key, e.g. rf_live_3f9k2q_….

Request Body

application/json
  1. body
enabled*boolean
threshold_micros?integer
Formatint64
Range0 <= value <= 10000000000
amount_micros?integer
Formatint64
Range10000000 <= value <= 10000000000

Response Body

Updated settings.

application/json
  1. response
object*unknown
enabled*boolean
threshold_micros*|
Formatint64
amount_micros*|
Formatint64
payment_method_saved*boolean
last_failure*null|
Example Request
curl -X PUT 'https://api.rawframe.dev/v1/account/auto_recharge' \  -H 'Content-Type: application/json' \  -d '{  "enabled": true}'
Example Response
{  "object": "auto_recharge",  "enabled": true,  "threshold_micros": 0,  "amount_micros": 0,  "payment_method_saved": true,  "last_failure": null}