Skip to content
Zaraftis API
Esc
↑↓navigate↵open⌘Jpreview

Update auto-reload settings

Changes the wallet’s auto-reload settings. Needs the billing:write scope.

PATCH/billing/wallet
Authorization
AuthorizationBearer token · headerrequired

API key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.

or
AuthorizationOAuth2 access token · headerrequired

OAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.

Request body
requiredapplication/json
enabledboolean
threshold_creditsinteger
min 100 · max 1000000
target_creditsinteger
min 500 · max 5000000
Responses
200

The wallet's credit facts after the change

WalletEnvelope
400

bad_request or validation_failed

successbooleanrequired
errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsobject
field_errorsobject[]
Show properties
Array of object
fieldstringrequired
codestringrequired
Allowed:requiredformattoo_smalltoo_largeunrecognized_keyinvalid
messagestringrequired
request_idRequestIdrequired
Request
curl -X PATCH 'https://api.zaraftis.com/v1/billing/wallet' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "enabled": true,
  "threshold_credits": 100,
  "target_credits": 500
}'
Response
The wallet's credit facts after the change

Was this page helpful?