Enable, change, or disable automatic prepaid managed-test-call funding
PUT
/v1/billing/prepaid/auto-fund
const url = 'https://api.vocapable.com/v1/billing/prepaid/auto-fund';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true,"threshold_minor":1,"amount_minor":1,"period_cap_minor":1,"period":"calendar_month","cadence":"as_needed","mandate_accepted":true,"idempotency_key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.vocapable.com/v1/billing/prepaid/auto-fund \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "threshold_minor": 1, "amount_minor": 1, "period_cap_minor": 1, "period": "calendar_month", "cadence": "as_needed", "mandate_accepted": true, "idempotency_key": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
AutoFundConfigRequest
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
AutoFundResponse
object
available
required
Available
boolean
funding_min_minor
required
Funding Min Minor
integer
funding_max_minor
required
Funding Max Minor
integer
period_cap_max_minor
required
Period Cap Max Minor
integer
enabled
required
Enabled
boolean
status
required
Status
string
period
Period
string
period_used_minor
Period Used Minor
integer
period_pending_minor
Period Pending Minor
integer
setup
Any of:
AutoFundSetup
null
active_operation
Any of:
AutoFundActiveOperation
null
applies_to
Applies To
string
byo_campaigns_chargeable
Byo Campaigns Chargeable
boolean
schedule
Schedule
string
cadence
Cadence
string
minimum_charge_interval_seconds
Minimum Charge Interval Seconds
integer
cadence_options
Cadence Options
Array<object>
AutoFundCadenceOptionOne server-supported automatic-funding cadence choice.
minimum_charge_interval_seconds is an elapsed UTC duration measured from the prior
submitted provider request. It is not a scheduled future charge time.
object
cadence
required
Cadence
string
minimum_charge_interval_seconds
required
Minimum Charge Interval Seconds
integer
mandate_version
Mandate Version
string
mandate_text
Mandate Text
string
Example
{ "period": "calendar_month", "period_used_minor": 0, "period_pending_minor": 0, "setup": { "pending": false }, "applies_to": "managed_verified_number_test_calls_only", "byo_campaigns_chargeable": false, "schedule": "server_threshold_polling", "cadence": "as_needed", "minimum_charge_interval_seconds": 0, "cadence_options": [ { "cadence": "as_needed" } ], "mandate_version": "2026-08-12-cadence-v2", "mandate_text": "I authorize Vocapable to charge the payment method I set up for future automatic prepaid managed verified-number test-call credit when my eligible prepaid balance is at or below my selected threshold, for my selected amount, up to my selected calendar-month cap and no more often than my selected cadence measured from the prior submitted charge attempt. Vocapable does not promise a clock time or catch up a missed attempt. I can disable this at any time before a charge is submitted."}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}