Allows your customer to create a Fiat to NFT order with Banxa. Upon success, the response will contain a checkout URL which will be unique for the order. The customer will be redirected to this URL to complete the checkout process, which will expire after 1 minute if a redirect does not occur.
Unique customer reference provided by you to identify the order in our system
Blockchain network code. If not provided, the default blockchain configured for the cryptocurrency will be used. Refer to the Get Crypto Currencies endpoint to retrieve a list of supported blockchain network codes.
Used if you are embedding an iFrame. This must be the exact domain where the iFrame will be hosted. e.g. [yourCompany].com. Do not include https:// in front of the domain.
- Mock serverhttps://docs.banxa.com/_mock/products/legacy-api/openapi/api/orders/nft/buy
- https://api.banxa.comhttps://api.banxa.com/api/orders/nft/buy
curl -i -X POST \
https://docs.banxa.com/_mock/products/legacy-api/openapi/api/orders/nft/buy \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-H 'X-Request-Id: string' \
-d '{
"account_reference": "string",
"payment_method_id": 0,
"source": "string",
"source_amount": "string",
"target": "string",
"target_amount": "string",
"wallet_address": "string",
"blockchain": "string",
"return_url_on_success": "string",
"return_url_on_cancelled": "string",
"return_url_on_failure": "string",
"iframe_domain": "string",
"meta_data": {
"purchase_reference": "string",
"nft": {
"name": "string",
"collection": "string",
"media": {
"type": "string",
"link": "string"
}
}
}
}'