Check API Credit Balance
check_balanceQuery the remaining prepaid credit balance and active status for a FranchiseData Pro API key before running batch paid queries to confirm sufficient funds.
Instructions
FREE. Query the remaining prepaid credit balance (in USD and micro-USD) and active status for a FranchiseData Pro API key. Read-only operation requiring an API key passed via 'api_key' argument or 'Authorization: Bearer fc_live_...' header. Returns 400 if key is omitted, or 401 if key is invalid. WHEN TO USE: Use before executing batch paid queries to verify sufficient funds remain. WHEN NOT TO USE: Do not use for minting new keys or topping up funds; use 'topup_credits' instead. ALTERNATIVES: Use 'topup_credits' to deposit credits or create new credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional if Authorization HTTP header is set. The 'fc_live_...' API key to inspect. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_active | Yes | Whether the API key is active | |
| key_prefix | No | Public key prefix (e.g. 'fc_live_7321...') | |
| balance_usd | Yes | Formatted USD balance (e.g. '$4.50') | |
| balance_micro | Yes | Balance in micro-USD (1 USD = 1,000,000 micro) |