Create preorder

POST https://exchange-core.whitebird.io/api/v1/merchant/orders/request

Request headers

NameTypeRequiredDescription
x-api-keyStringYesMerchant security key

Request body

TypeNameRequiredDescription
assetNumberYesRequested amount for calculation. Should be positive
assetPositionStringYesExchange assetPosition
currencyPairObjectYesExchange currencyPair
orderTypeStringYesExchange orderType
externalOrderIdStringYesOrder id from merchant system. Link between Whitebird and Merchant orders
limitNumberNoSee here
paymentTokenStringNoSee here
providerTypeStringNoSee here
cryptoAddressStringNoSee here
bonusNumberNoAdditional field for internal bonus program. Not used for external merchants.

Bonus based on crypto currency, should be < than crypto amount of operation

Response

{
  "id": "string",
  "asset": 100,
  "assetPosition": "INPUT",
  "currencyPair": {
    "fromCurrency": "USD",
    "toCurrency": "BTC"
  },
  "externalOrderId": "string",
  "orderType": "DEPOSIT",
  "exchangeType": "SELL",
  "limit": 100,
  "bonus": 0.1,
  "cryptoAddress": "string",
  "paymentToken": "UUID",
  "providerType": "ASSIST"
}

Example request

{
  "asset": 100,
  "assetPosition": "INPUT",
  "currencyPair": {
    "fromCurrency": "USD",
    "toCurrency": "BTC"
  },
  "externalOrderId": "1234-1234-1234",
  "orderType": "DEPOSIT",
  "limit": null,
  "bonus": null,
  "cryptoAddress": null,
  "paymentToken": null,
  "providerType": null
}
curl -X POST 'https://exchange-core.whitebird.io/api/v1/merchant/orders/request' \
  -H 'Content-Type: application/json' \
  -d '{
  "asset": 100,
  "assetPosition": "INPUT",
  "currencyPair": {
    "fromCurrency": "USD",
    "toCurrency": "BTC"
  },
  "externalOrderId": "1234-1234-1234",
  "orderType": "DEPOSIT",
  "limit": null,
  "bonus": null,
  "cryptoAddress": null,
  "paymentToken": null,
  "providerType": null
}'