Converting BNFCR from a Script: the API
If you hold BNFCR and would rather drive the conversion from a script than from a web form, there is a documented way to do it: bnfcrconvert.com publishes its whole public flow as JSON, in an API guide and an OpenAPI 3.1 specification, with a plain-text summary for agents at /llms.txt. This page is the human-readable version of those documents: what the endpoints do, what they return, and where a script will get stuck.
1. What the API does, and the one thing it does not automate
The API is not a broader service with a programmable interface — it is the same single operation the website performs: BNFCR → BNB, executed on your own Binance USDⓈ-M Futures account with an API key you create. There is no selectable output asset, the BNB is credited to that same Futures wallet, and the service never pays out USDT, USDC, BTC, ETH or fiat. Funds never leave your Binance account, so there is nothing to withdraw from us and no balance of yours that we hold.
The part worth knowing before you write any code: the fee payment cannot be automated through this API. The service fee is an on-chain USDT or USDC transfer that you send to the address on the invoice, and there is no endpoint that pays it. A script can do steps 1, 2, 4 and 5 unattended; step 3 needs an actual on-chain send, which means the flow is at best semi-automatic unless you drive a wallet yourself.
2. The five steps
| Step | Call | Body / action | Returns |
|---|---|---|---|
| 1 | POST /api/balance | api_key, api_secret | balance — your BNFCR, as a float |
| 2 | POST /api/invoice/create | api_key, api_secret, conversion_amount, asset (USDT or USDC), chain (solana, polygon or bsc), optional email | invoice_id, fee_amount_exact, fee_asset, fee_chain, fee_address, expires_at |
| 3 | — (yours) | Send exactly fee_amount_exact of fee_asset on fee_chain to fee_address, on-chain | — |
| 4 | GET /api/invoice/{invoice_id} | Poll every 10 s | status, time_left in seconds |
| 5 | POST /api/invoice/{invoice_id}/convert | api_key, api_secret — the same key that created the invoice | bnb_amount, bnfcr_amount, invoice_id |
Two details that save a debugging session. conversion_amount is any value above zero up to your BNFCR balance, so you can convert part of a balance rather than all of it — an amount above the balance is a validation error, not a clamp. And the email field on step 2 is optional but useful for an unattended run: it receives the invoice ID plus the payment and conversion receipts, which is the difference between a crashed script you can reconstruct and one you cannot.
The status values you will see at step 4 are AWAITING_PAYMENT, EXPIRED, PAID, PAID_LATE, CONVERTING, DONE and FAILED. The documented polling rule is to continue until the status is PAID or PAID_LATE and to stop on EXPIRED or FAILED.
3. The four rules that decide whether your payment is matched
Matching is mechanical, and these are the published critical rules — three of the four are about the amount that arrives, not the amount you send:
- Send the exact
fee_amount_exact. The fee is 0.5% of the converted amount, clamped to a minimum of 5.00 and a maximum of 10.00 USDT or USDC, plus a small random fractional tail below 0.10. That tail is the matching key — rounding it off fails. - Exchanges deduct their withdrawal fee from the amount you send, and require at least 5 USDT or USDC per withdrawal. Set the send amount so that exactly
fee_amount_exactarrives. - An exchange "internal" or "free" transfer will not be matched — it leaves no on-chain deposit record. Force a real on-chain withdrawal.
- Timing: payment is matched roughly 60 seconds after on-chain confirmation. The payment window is 1,800 seconds, and a late payment is still credited for 24 hours — which is what
PAID_LATErecords.
The chain you pick only affects gas, which goes to the network rather than to us: roughly $0.001 on Solana, $0.015 on Polygon and $0.02 on BSC. Note that the fee is never taken in BNFCR and never in BNB, so an unattended run needs USDT or USDC that is not part of the BNFCR balance you are converting.
4. Rate limits and error handling
| Endpoint | Limit |
|---|---|
POST /api/balance | 10/min, 100/h |
POST /api/invoice/create | 5/min, 30/h |
GET /api/invoice/{invoice_id} | 60/min, 600/h |
POST /api/invoice/{invoice_id}/convert | 5/min, 30/h |
A 10-second poll interval sits comfortably inside the 60/min budget for the status endpoint. On 429 the response body is {error, detail} and a Retry-After header gives the wait in seconds — use it rather than a fixed backoff.
/api/balance returns HTTP 200 with success=false when Binance rejects the credentials. Check the success field, not just the status code. Error responses carry the shape {"success": false, "error": "human-readable reason"}, with 400 for a validation error, malformed JSON or an amount above your balance, 403 when the credentials do not match the invoice, 404 for an unknown invoice, 409 when the invoice is not in a convertible state, 413 for too large a payload, 415 when the Content-Type is not application/json, and 502 for a Binance upstream error on the balance check, the quote or the accept.
That 403 deserves its own line, because it is the one that can strand a paid invoice: the conversion is refused if the credentials do not match the ones the invoice was created with. Do not rotate or delete the key between step 2 and step 5. If the fee is paid and the Binance-side swap then fails, write to support@bnfcrconvert.com — the terms describe a best-effort refund of the fee minus on-chain gas, at the operator's discretion, rather than an automatic entitlement.
- Permission "Enable Futures" only — no withdrawals, no spot trading, no margin.
- IP access either Unrestricted, or restricted to our server IP
46.101.148.146. The swap is executed from that address, so a key restricted to your own IP will fail. - Delete the key immediately after the conversion.
- The API secret is never stored — it travels over HTTPS for the immediate operation and is then discarded, and you supply it again at convert time. A hash of the key is kept for the conversion record.
POST /api/balance → POST /api/invoice/create → pay the fee on-chain yourself → GET /api/invoice/{invoice_id} → POST /api/invoice/{invoice_id}/convert, all JSON over HTTPS, with the fee payment as the step no endpoint can do for you. Everything on this page comes from the API guide; the OpenAPI specification has the request and response schemas. bnfcrconvert.com performs one operation — BNFCR → BNB on your own Binance Futures account, non-custodial, with the BNB credited to that same Futures wallet — and is operated by ESA DEVELOPMENT s.r.o. (Czech Republic); it is not an exchange, not regulated and not affiliated with Binance. See also the 3-step route, what a rejected balance check means and how the fee payment is matched.
- How to convert BNFCR in 3 steps
- What is BNFCR?
- BNFCR to USDC
- BNFCR to USDT
- Fees & transparency
- Is bnfcrconvert.com safe?
- BNFCR Swap option missing?
- Fee payment not detected? Invoice matching explained
- BNFCR is now BNB — getting it out of Futures
- Balance check failed? The API key error explained
- How much BNB do you get for your BNFCR?
- Converting BNFCR from a script (the API)
- Paying the fee: USDT or USDC, and on which chain?
- Credits Trading Mode: why your balance says BNFCR