# Error Handling This page covers the errors the BlockBee API returns and how to handle each one. ## Common Issues and Solutions ### Funds Stuck in Address **Issue**: Funds appear to be stuck in a cryptocurrency address and aren't being processed. **Possible Causes**: - Wrong cryptocurrency sent to the address. Eg. requested funds with `bep20/usdt` ticker and sent `bep20/usdc` - Wrong network (e.g., sending ERC-20 tokens to BSC address) - Minimum transaction amount not met **Solutions**: - Check if the address is valid for the specific cryptocurrency - Verify the minimum transaction amount for the cryptocurrency - If the wrong cryptocurrency was sent, contact [support](https://blockbee.io/contacts). ### Transaction Not Confirmed **Issue**: Transaction is sent but remains unconfirmed for an extended period. **Possible Causes**: - Network congestion - Transaction stuck in mempool **Solutions**: - Wait for network confirmation (can take 1-24 hours depending on the network) - Check transaction status using the blockchain explorer ### API Key Issues **Issue**: API requests failing with authentication errors. **Possible Causes**: - Missing or wrong API key in request - Account suspended or deactivated **Solutions**: - Verify your API key in the [BlockBee Dashboard](https://dash.blockbee.io/) - Ensure API key is included in all requests (as parameter or header) - Check if your account is active and in good standing - Generate a new API key if necessary ### Callback URL Problems **Issue**: Webhook notifications not being received. **Possible Causes**: - Invalid or inaccessible callback URL - Server not responding to webhook requests - Firewall blocking incoming requests - SSL certificate issues **Solutions**: - Ensure callback URL is publicly accessible - Test the URL manually to verify it responds - Check server logs for incoming webhook requests - Verify SSL certificate is valid (for HTTPS URLs) - Make sure your webhook signature verification is working - Allowlist BlockBee's IPs (`51.77.105.132` and `135.125.112.47`) in your firewall or Cloudflare rules. ## Error Response Format When a request fails, the API returns JSON with `"status": "error"` and an `error` field that describes the problem, as in this HTTP `401` answer to a request without an API key: ```json { "status": "error", "error": "API Key not provided, please use api.cryptapi.io if you don't have an API key" } ``` Check the `status` field as well as the HTTP status code. ## Common Errors Many endpoints share these errors. Each API reference page says which of them apply to it. | Error | HTTP | Cause | |---|---|---| | `API Key not provided, please use api.cryptapi.io if you don't have an API key` | 401 | The request has no `apikey` query parameter or header, or it is empty. | | `API Key not valid, please confirm your API key` | 401 | The key is wrong or no longer valid, its profile is disabled or deleted, or your account is deactivated. | | `API Key not allowed from IP address 203.0.113.7, check the IP whitelist in your BlockBee Dashboard` | 403 | Your API key has an IP whitelist, and the request came from an IP address that isn't on it. | | `Your KYC tier is insufficient to use this feature` | 401 | Your recent volume is above the limit of your [KYC level](/kb/get-started/is-kyc-verification-required). This applies when you create payment addresses, checkouts, deposits and subscriptions, and when you read payment address logs. | | `APIs down for maintenance, please check back in a few minutes` | 503 | The API is down for maintenance. Retry in a few minutes. | | `API down for maintenance, please check back in a few minutes` | 503 | This blockchain is down for maintenance. The create, logs, info and estimate ticker endpoints send it with HTTP `503`, the payout process endpoints with `400`. Retry in a few minutes. | | `Request contains characters that are not allowed.` | 400 | A parameter contains a character we can't store, such as a NUL character. | | `Domain 'shop.example.com' is not verified for this profile. Verify it in the BlockBee Dashboard.` | 400 | Domain verification applies to your account, and the URL's domain isn't verified for this profile. See [Domain verification](/get-started/domain-verification). | | `IP address URLs are not allowed. Use a verified domain.` | 400 | Domain verification applies to your account, and the URL uses an IP address instead of a domain. | | `Domain verification is temporarily unavailable, please try again later.` | 503 | We couldn't check the domain. Nothing is wrong with your domain: retry later. | | `Chain "XYZ" is not supported` | 400 | The network in `ticker` isn't supported, for example `xyz/usdt`. | | `BEP20 token "XYZ" is not supported` | 400 | The token in `ticker` isn't supported on that network. The message starts with the network, such as `ERC20`, `TRC20` or `POLYGON`. | | `SOL token "XYZ" is not supported` | 400 | The Solana token in `ticker` isn't supported. | | `TON token "XYZ" is not supported` | 400 | The TON token in `ticker` isn't supported. | | `Resource not found` | 404 | The URL matches no endpoint, for example because of a typo in the path or an unknown `ticker`. | | `Server error` | 500 | Something failed on our side. Retry later, and contact [support](https://blockbee.io/contacts) if it persists. | ## Errors by Endpoint Each API reference page lists the errors of its endpoint: - [Create a Checkout Payment Link](/api/create-checkout#errors) - [Get Checkout Logs](/api/get-checkout-logs#errors) - [List Checkout Payments](/api/list-checkouts#errors) - [Create Deposit Request](/api/create-deposit#errors) - [Get Deposit Logs](/api/get-deposit-logs#errors) - [List Deposit Requests](/api/list-deposits#errors) - [Create New Payment Address](/api/create-payment-address#errors) - [Check Payment Address Logs](/api/get-payment-logs#errors) - [List API Transactions](/api/list-transactions#errors) - [List Payout Requests](/api/list-payout-requests#errors) - [Create a Payout Request](/api/create-payout-request#errors) - [Bulk Create Payout Requests](/api/create-payout-requests-bulk#errors) - [Process Bulk Payout Requests](/api/process-payout-requests-bulk#errors) - [List Payouts](/api/list-payouts#errors) - [Process Payout by ID](/api/process-payout-by-id#errors) - [Create Payout](/api/create-payout#errors) - [Get Payout Status](/api/get-payout-status#errors) - [Get Address](/api/get-wallet-address#errors) - [Get Self-Custodial Wallet Balance](/api/get-wallet-balance#errors) - [Create Subscription](/api/create-subscription#errors) - [List Subscriptions](/api/list-subscriptions#errors) - [Fetch Subscription](/api/get-subscription#errors) - [BlockBee Service Information](/api/get-service-info#errors) - [Get Ticker Information](/api/get-ticker-info#errors) - [Payment QR Code Generator](/api/generate-qr-code#errors) - [Estimate Blockchain Fees](/api/estimate-fees#errors) - [Convert Price](/api/convert-price#errors) - [Convert Prices Using Ticker](/api/convert-price-by-ticker#errors)