Normal Buy
POST
/merchant/trade/v2/normal-buy
Request
Authorization
Add parameter in query
app-key
Example:
app-key: ********************
Query Params
app-key
string
optional
Default:
{{app-key}}
Body Params application/json
outTradeNo
string
required
tradeUrl
string
required
productId
integer
required
buyPrice
number | null
optional
Example
{
"outTradeNo": "string",
"tradeUrl": "string",
"productId": 0,
"buyPrice": 0
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://openapi.c5game.com//merchant/trade/v2/normal-buy?app-key' \
--header 'Content-Type: application/json' \
--data-raw '{
"outTradeNo": "string",
"tradeUrl": "string",
"productId": 0,
"buyPrice": 0
}'
Responses
🟢200Success
application/json
Body
success
boolean | null
optional
data
object
optional
actualPay
number | null
optional
delivery
integer | null
optional
orderAssetId
integer | null
optional
orderId
integer | null
optional
payStatus
integer | null
optional
orderStatus
integer | null
optional
requestId
integer | null
optional
errorCode
integer | null
optional
errorMsg
string | null
optional
errorData
object (Object)
optional
errorCodeStr
string | null
optional
Example
{
"success": false,
"data": {
"actualPay": 0.0,
"delivery": 0,
"orderAssetId": 0,
"orderId": 0,
"payStatus": 0,
"orderStatus": 0,
"requestId": 0,
"offerId": ""
},
"errorCode": 0,
"errorMsg": "",
"errorData": {},
"errorCodeStr": ""
}
Modified at 2023-11-14 12:17:02