Place Order
The API endpoint for this interface contains two URLs:
For testing purposes, the URL is: http://api.testbonuspay.network/sgs/api/otcfundout/placeOrder
For production purposes, the URL is: https://api.bonuspay.network/sgs/api/otcfundout/placeOrder
Request Parameters
Submit OTC Payout Request. This is an idempotent API. When the same request is submitted multiple times, the current order status will be returned. The idempotent request does not validate the request timestamp; if multiple requests are made, the timestamp from the first request will be used.
Http Header
Language
Content-Language
Optional
String(10)
en
en-English (default)
Signature
sign
Required
String
Partner ID
Partner-Id
Required
String(12)
Http Body
Request Time
requestTime
Required
Timestamp(3)
1581493898000
Business Content
bizContent
Required
PlaceAcquireOrderRequest
-
Business Content
OtcFundoutRequest
Merchant Order Numbe
merchantOrderNo
Required
String(64)
-
Backend Notification URL
notifyUrl
Optional
String(200)
-
The URL to which the notification of the order status will be sent
Fiat Currency Code
fiatCurrency
Required
String(32)
USD
Crypto Currency Code and Amount
cryptoAmount
Required
Money
-
Amount of crypto to fiat settlement
Request Example
Response Parameters
If the order status is CREATED, different interActionParams will be returned based on different paySceneCode.
Http Header
Signature
sign
Required
String
-
The body field in Http Body is returned only when applyStatus is SUCCESS and code is 0.
Http Body
Response Header
head
Required
ResponseHeader
-
Response Body
body
Optional
PlaceOrderResponse
-
响应样例
Response Code
80002
CURRENCY_CODE_NOT_SUPPORTED
crypto currency unsupported
change to another crypto currency
80003
INVALID_CURRENCY_PRECISION
Incorrect currency precision
Adjusting the currency’s decimal precision
80004
CRYPTO_AMOUNT_TOO_LOW
The amount of crypto currency is too small
Adjusting the amount of crypto currency
80005
INSUFFICIENT_FUNDS
Insufficient merchant balance
Adjusting the amount
80008
CHANNEL_ROUTE_NOT_EXIST
Channel routing does not exist
Contact Bonuspay or agent
Last updated