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
Field Name
Variable Name
Required
Type
Example
Description
Language
Content-Language
Optional
String(10)
en
en-English (default)
Signature
sign
Required
String
Partner ID
Partner-Id
Required
String(12)
Http Body
Field Name
Variable Name
Required
Type
Example
Description
Request Time
requestTime
Required
Timestamp(3)
1581493898000
Business Content
bizContent
Required
PlaceAcquireOrderRequest
-
Business Content
OtcFundoutRequest
Field Name
Variable Name
Required
Type
Example
Description
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
Field Name
Variable Name
Required
Type
Example
Description
Signature
sign
Required
String
-
The body field in Http Body is returned only when applyStatus is SUCCESS and code is 0.