Integrating Binance Connect: Onboarding, Quotes, and Delivery

 / 
 / 
4

Before integrating Binance Connect, you need to accept one premise: this product has undergone renames and documentation migrations within the Binance developer ecosystem. What you find when searching for "Binance Connect" may point to two different things. The fiat on-ramp channel currently aimed at regular applications (wallets, dApps) has been moved into the Hosted Ramp section of Binance Pay Onchain. The product for institutions embedding buy and sell capabilities is Connect Prime (formerly Binance Connect Prime). This article focuses on the Hosted Ramp path for regular applications, with separate notes for institutional solutions.

Binance Exchange
The world's largest cryptocurrency exchange by trading volume,leading in security and liquidity.
New user benefit: Enjoy 20% off trading fees upon registration!

The core of onboarding is not technical; it is business coordination. Binance does not provide a public, self-service registration API endpoint for Connect. The official documentation on the Binance Pay Onchain page clearly states that, depending on the integration scope confirmed with Binance, most clients should start from a single product documentation area, and that access-related questions should be directed to This email address is being protected from spambots. You need JavaScript enabled to view it.. This means before you write a single line of code, you need to confirm your application type, target user regions, and business model with the Binance Connect team to obtain the appropriate integration eligibility and credentials.

Onboarding: What You Can and Cannot Get

After obtaining integration eligibility, the technical core of onboarding is authentication credentials. Connect Prime's quote and order execution APIs use a request header signature system, including X-Tesla-ClientId, X-Tesla-SignAccessToken, X-Tesla-Timestamp, and X-Tesla-Signature. The authentication details for the Hosted Ramp path are not listed item by item in public documentation like they are for Prime, but the logic is the same: you need a client identity and signing key assigned by Binance to call any substantive interface.

Another easily overlooked onboarding requirement is user eligibility. Binance Connect is only available to users from eligible countries and regions. Binance's official website maintains a dynamically updated list of eligible countries and explicitly notes that the list may change at any time. If your application targets global users, you need to handle geographic checks yourself before calling Connect, rather than assuming every user can complete the flow. Users in eligible regions also need a Binance account with completed KYC to use full functionality. If a large portion of your user base consists of new users who have not registered with Binance, the Hosted Ramp flow will guide them through registration and KYC, but this conversion loss should be factored into your product expectations.

Quotes: You Are Not Getting a "Price" but a Contract with an Expiry

Among the fields returned by the Get Quote API, the most important ones are expiredAt (a millisecond timestamp) and quoteId. Quotes have an expiry time. After expiry, the quoteId becomes invalid, and you need to request a new quote. This means your frontend cannot treat the quote shown to the user as a static number that can be displayed indefinitely. If the user stays on the confirmation page too long and submits with an expired quoteId, the execution will fail.

customSpread is a parameter that integrators need to understand. It is set by you, the merchant. For example, 0.01 represents a 1% spread. The revenue generated by this spread is denominated in fiat currency and reflected in the returned spreadAmount field. In other words, your application can add its own profit margin on top of Binance's base quote. This parameter is required and cannot be omitted. If you do not want to add a markup, pass 0, but you need to confirm whether Binance allows a zero spread. The documentation does not explicitly prohibit it, but whether it is actually accepted depends on your agreement with the Connect team.

The quote API for the Hosted Ramp path is a different endpoint (/papi/v1/ramp/connect/buy/estimated-quote). The parameters and response structure are slightly different and include a breakdown of feeAmount and networkFee. networkFee is the on-chain withdrawal fee, which is deducted from the final credited amount. feeAmount is the fee for the fiat payment channel. They are listed separately to help you explain to users why the credited amount is less than expected.

Delivery: On-chain Arrival Does Not Mean the Transaction Is Done

A typical Hosted Ramp buy flow is: frontend gets a quote → creates a PreOrder → redirects the user to a Binance page to complete payment → receives status updates via webhook → queries the order to confirm the final result. Delivery here is not finished when "Binance says the order is complete." It is finished when the cryptocurrency actually arrives at the user-specified wallet address.

The webhook callback contains fields such as withdrawTxHash, withdrawWalletAddress, and withdrawNetwork. These fields are your basis for delivery verification. If the order status changes to complete but withdrawTxHash is empty or the corresponding on-chain transaction has not been confirmed yet, it means the withdrawal is still being processed. The endpoint of delivery is when the user sees the balance in their wallet.

For the Prime path, the status returned by Execute Quote may be PROCESSING, FILLED, or FAILED. FILLED means Binance has finished processing on its side, but you still need to distinguish between "Binance has bought" and "the user has received." If a withdrawal to an external address is involved, on-chain confirmation is a separate step.

Refunds are an easily underestimated part of the delivery process. The Prime documentation explicitly requires merchants to provide an idempotent refund endpoint: Binance will call your refund API using clientOrderId as the unique identifier. Multiple calls with the same clientOrderId should not result in duplicate refunds. The reason for this design is that fiat funds are transferred out before Binance executes the quote in the buy flow. If Binance cannot process the quote, it needs to return the fiat to the user. If your application does not implement this endpoint or does not guarantee idempotency, funds can get stuck or duplicate refunds can occur when a quote fails or partially fails.

If Your Users Are Institutions, Not Individuals

Connect Prime is aimed at banks, fintech companies, brokers, and large platforms that want to embed buy and sell capabilities in their own financial products. Its quote API requires passing a userId (Binance sub-account ID), which means institutional integrators need a corresponding sub-account structure on Binance's side. Regular wallets or dApps do not need to take this path. The redirect flow of Hosted Ramp is more suitable—the trade-off is a less seamless user experience (users leave your app to complete payment on a Binance page), but the benefit is lower integration cost and no need to handle fiat fund flows.

What Completion Looks Like

The sign of a complete integration is not an API returning 200. It is: in a real buy flow, a user initiates from your app → redirects to Binance and completes payment → webhook receives an order completion notification → the on-chain transaction corresponding to withdrawTxHash is confirmed → the user's wallet balance increases. If any of these four steps is missing, the delivery loop is not closed. For sell flows, you also need to verify that the fiat actually arrived in the user's designated bank account or payment channel, not just that the order status changed.

If you find during testing that quotes expire frequently or webhooks are delayed, first check whether the time window between PreOrder creation and the user completing payment is too long, and whether your webhook callback URL is reachable and signature verification is correct. The Connect team provides a sandbox environment and test credentials when granting access. Running the full flow in the sandbox before going live is a necessary step.

Binance Exchange
The world's largest cryptocurrency exchange by trading volume,leading in security and liquidity.
New user benefit: Enjoy 20% off trading fees upon registration!

References

  1. Binance·Binance Pay Onchain Developer Documentation, page publish or update date: not indicated on page; verification date: 2026-10-20.
  2. Binance·Get Quote (Connect Prime), page publish or update date: not indicated on page; verification date: 2026-10-20.
  3. Binance·Eligible Countries for Web, page publish or update date: not indicated on page; verification date: 2026-10-20.
  4. Binance·Get estimated quote (Connect 2.0), page publish or update date: not indicated on page; verification date: 2026-10-20.
  5. Binance·Typical Buy Flow (Connect 2.0 On-ramp), page publish or update date: not indicated on page; verification date: 2026-10-20.
  6. Binance·Webhook, page publish or update date: not indicated on page; verification date: 2026-10-20.
  7. Binance·Execute Quote (Connect Prime), page publish or update date: not indicated on page; verification date: 2026-10-20.
  8. Binance·Merchant Side API requirements (Connect Prime), page publish or update date: not indicated on page; verification date: 2026-10-20.