Set the mobile monthly/daily spend guardrail after fresh browser confirmation
PUT
/v1/mobile/billing/budget
const url = 'https://api.vocapable.com/v1/mobile/billing/budget';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expected_version":1,"amount_minor":1}'};
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/mobile/billing/budget \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expected_version": 1, "amount_minor": 1 }'CAS one displayed cap, preserving the wallet’s non-mobile threshold and period.
A mobile retry with a lost response cannot replay the state change: the one-use grant is consumed and the revision has advanced. The client receives a conflict on retry, reloads the live value, and asks for a fresh browser proof rather than guessing.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
MobileBillingBudgetUpdateRequest
One displayed spend-cap edit bound to a browser step-up grant and a revision.
The server preserves the wallet’s existing low-balance threshold and known period. This keeps the small native editor from silently clearing a browser-configured setting.
object
Examplegenerated
{ "expected_version": 1, "amount_minor": 1}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MobileBillingBudget
The current spend guardrails; no payment method or provider data is representable.
object
Example
{ "period": "daily"}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": {} } ]}