/V3/Banxa/Buy

Building a Payment Token Request for Buy Orders
Buy orders require the following mandatory fields:

  • bill_cardholder: the customer's unique ID
  • bill_currencycode: a supported fiat currency e.g. USD
  • target_currency: a supported cryptocurrency e.g. BTC
  • wallet_address: the address associated with the cryptocurrency being purchased
  • returnUrl: used to return the customer to your website once the order is completed
  • serverUrl:used to send webhooks when certain order statuses are reached.

The iframe_domain should be the exact domain that you will be using to host the iFrame e.g. binance.beta.io, and NOT your Banxa domain that was provided to you e.g. binance.banxa.com. Our CSP headers will then allow this frame-ancestor to be using Banxa checkout in an iFrame element.

Do not include https:// in front of the domain.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The request.

string
required
string
required
double
required
string
required
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
required
string
required
string
string
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json