POST payment/trade_third_party
Request Information
URI Parameters
None.
Body Parameters
ApiCoreTradeThirdPartyRequestName | Description | Type | Additional information |
---|---|---|---|
order_id | integer |
Required |
|
payment_type_id | integer |
Required |
|
wechat_type_id | integer |
None. |
|
amount | decimal number |
None. |
|
trade_type_id | integer |
Required |
|
note | string |
None. |
|
attach | string |
None. |
|
to_user_id | integer |
None. |
|
client_id | integer |
None. |
|
app_id | integer |
None. |
|
date_frozen_to | string |
None. |
|
trade_line | Collection of TradeLineViewModel |
None. |
|
trade_promotion | TradePromotionViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "order_id": 1, "payment_type_id": 2, "wechat_type_id": 3, "amount": 4.0, "trade_type_id": 5, "note": "sample string 6", "attach": "sample string 7", "to_user_id": 1, "client_id": 1, "app_id": 1, "date_frozen_to": "sample string 8", "trade_line": [ { "product_id": 1, "product_name": "sample string 2", "price": 3.0, "quantity": 4, "discount_amount": 5.0 }, { "product_id": 1, "product_name": "sample string 2", "price": 3.0, "quantity": 4, "discount_amount": 5.0 } ], "trade_promotion": { "promotion_amount": 1.0, "promotion_note": "sample string 2" } }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DataResponseOfApiCoreTradeThirdPartyDataName | Description | Type | Additional information |
---|---|---|---|
code | integer |
None. |
|
message | string |
None. |
|
success | boolean |
None. |
|
data | ApiCoreTradeThirdPartyData |
None. |
Response Formats
application/json, text/json
Sample:
{ "code": 1, "message": "sample string 2", "success": true, "data": { "pay": true, "trade_id": 2, "title": "sample string 3", "body": "sample string 4", "amount": "sample string 5", "notify_url": "sample string 6", "sign": "sample string 7", "product_code": "sample string 8", "timeout_express": "sample string 9", "prepay_id": "sample string 10", "nonce": "sample string 11", "timestamp": "sample string 12", "package": "sample string 13", "sign_type": "sample string 14", "order_id": 15, "ext": {} } }