These endpoints are meant for merchants and payment processors using Beta's Crypto Payment API to create orders and retrieve their details.
Create a New Order
POSThttps://live.betaapp.com/v1/order
Beta will freeze the quote for this order for 20 minutes.
If the payer deposits a different amount/asset than requested or after this timeframe, our platform will automatically trigger workflows for the payer to top-up the remaining amount or receive a refund for its deposit.
Headers
Name
Type
Description
Authorization*
String
Bearer {access_token}
accept*
String
application/json
x-sub-account-id
String
Subaccount ID, If any.
Request Body
Name
Type
Description
network*
String
Crypto Network: bitcoin, erc-20, ripple
source_asset*
String
Crypto Asset: BTC, ETH, XRP
target_asset*
String
Fiat Asset: USD, BRL, MXN
target_amount*
Number
Amount in Fiat
description*
String
Description of the product or service provided. It could be the Order ID If e-commerce.
recipient_email*
String
Payer's e-mail
recipient_language_code*
String
Payer's Prefered language: EN, PT
link_exp
integer
Time in hours for the payment link to expire. (Default is 72)
{"message":"success","orders": [ {"id":"abf4cbc6-65a8-4643-9d27-f04ba86e22dd","account_id":"a2b6b539...484097","sub_account_id":"94850a8c...881047""recipient_email": "testing@betaapp.com","description":"2x Tickets for England vs Germany football match","status":"pending","source_asset":"BTC","source_amount":0.20,"target_asset":"BRL","target_amount":3500,"valid_until":"2023-09-17T14:18:20.510288Z","created_at":"2023-09-14T14:18:20.510288Z" }, {"id":"ab6e6ed4-503a-46f3-a514-2cae05c4edda","account_id":"a2b6b539...99484097","sub_account_id":"94850a8c...881047""recipient_email": "testing@betaapp.com","description":"Testing Payment","status":"open","source_asset":"BTC","source_amount":0.0016,"target_asset":"MXN","target_amount":1000,"valid_until":"2023-09-16T19:04:22.407027Z","created_at":"2023-09-13T19:04:22.407027Z" } ],"page":1,"size":10,"total_page":1,"total_row":2}
Retrieve Order Details
GEThttps://live.betaapp.com/v1/order/details/{id}
This endpoint provides all the detail for a specific payment.
{"id":"abf4cbc6-65a8-4643-9d27-f04ba86e22dd","source_asset":"BTC","source_amount":0.20,"target_asset":"BRL","target_amount":3500,"description":"2x Tickets for England vs Germany football match","recipient_email":"testing@betaapp.com","status":"pending","settlement_status":"","created_at":"2023-09-14T14:18:20.510288Z","timelines": [ {"order_step":"Order Created","executed":true,"comments":"","executed_at":"2023-09-14T14:18:20.510288Z" }, {"order_step":"Payment Link Opened","executed":true,"comments":"","executed_at":"2023-09-14T14:18:23.291284Z" }, {"order_step":"Deposit Initiated","executed":true,"comments":"","executed_at":"2023-09-14T14:18:27.875453Z" }, {"order_step":"Paid","executed":false,"comments":"","executed_at":"0001-01-01T00:00:00Z" }, {"order_step":"Settlement","executed":false,"comments":"","executed_at":"0001-01-01T00:00:00Z" } ]}