GET
/api/public/v1/billing/auto-refill

Get auto-refill settings

Return the credit balance plus the auto-refill threshold and amount configured for the organization.

GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/billing/auto-refill" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key"
200Example response
json
{
  "message": "Auto-refill settings retrieved successfully!",
  "content": {
    "creditBalance": 12500,
    "creditAutoRefillEnabled": true,
    "creditAutoRefillThreshold": 500,
    "creditAutoRefillAmount": 2000
  }
}