Buy/Sell Orders

Endpoints to process crypto exchange orders and retrieve their details.

Create a New Order

POST https://live.betaapp.com/v1/order/exchange

Beta will freeze the quote for this order for 20 minutes.

If the User 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}

x-sub-account-id*

String

subaccount ID

accept*

String

application/json

Request Body

Name
Type
Description

source_asset*

String

Asset that user wants to provide in the transaction. It could be any Fiat or Crypto.

target_asset*

String

Asset that user wants to receive in the transaction. It could be any Fiat or Crypto.

network

String

Crypto network

source_amount

String

Amount that payer wants to deposit

pool_balance

Boolean

True or False.

target_amount

String

Amount that payer wants to receive

{
  "amount": 0,
  "asset": {
    "large_image_url": "string",
    "medium_image_url": "string",
    "name": "string",
    "small_image_url": "string",
    "symbol": "string",
    "type": "string"
  },
  "date_time": "string",
  "deposit": true,
  "exp_time": 0,
  "message": "string",
  "network": "string",
  "tag": "string",
  "wallet_address": "string"
}

Request Example:

Response Example:

Here is an example of how the New Order Response could be displayed on the Front-End.

Wallet address displayed on the Checkout

Retrieve Order List

GET https://live.betaapp.com/v1/order

This endpoint retrieves the Order List of a specific subaccount_id.

Query Parameters

Name
Type
Description

status

String

Parameters: open, pending, confirmed, canceled.

search

String

could be the e-mail or order description

order_by

String

Parameters: id, recipient_email, description, created_at, status

page*

Integer

Page number for this query

size*

integer

Number of items per page for this query

Headers

Name
Type
Description

Authorization*

String

Bearer {access_token}

x-sub-account-id

String

Subaccount ID

accept*

String

application/json

Request Example:

Response Example:

Retrieve Order Details

GET https://live.betaapp.com/v1/orders/details/{id}

This endpoint provides the details of a specific payment.

Query Parameters

Name
Type
Description

id*

String

Order ID

Headers

Name
Type
Description

Authorization*

String

Bearer {access_token}

x-sub-account-id*

String

Your user's subaccount_id

accept*

String

application/json

Request Example:

Response Example:

Last updated