POST api/WXPay/WxPayOrder
Request Information
URI Parameters
None.
Body Parameters
PayOrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| WXPayBaseModel | WXPayBaseModel |
None. |
|
| OrderId | string |
None. |
|
| OrderBody | string |
None. |
|
| TotalFee | decimal number |
None. |
|
| OpenId | string |
None. |
|
| OutTradeNo | string |
None. |
|
| WX_PayNotifyUrl | string |
None. |
|
| WXPayType | WXPayType |
None. |
|
| SpbillCreateIp | string |
None. |
|
| DeviceInfo | string |
None. |
|
| TimeStart | date |
None. |
|
| TimeExpire | date |
None. |
|
| Detail | string |
None. |
|
| Attach | string |
None. |
|
| GoodsTag | string |
None. |
|
| ProductId | string |
None. |
|
| LimitPay | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"WXPayBaseModel": {
"AppDomain": "sample string 1",
"WX_AppId": "sample string 2",
"WX_MchId": "sample string 3",
"WX_Key": "sample string 4"
},
"OrderId": "sample string 1",
"OrderBody": "sample string 2",
"TotalFee": 3.0,
"OpenId": "sample string 4",
"OutTradeNo": "sample string 5",
"WX_PayNotifyUrl": "sample string 6",
"WXPayType": 0,
"SpbillCreateIp": "sample string 7",
"DeviceInfo": "sample string 8",
"TimeStart": "2026-03-07 20:34:15",
"TimeExpire": "2026-03-07 20:34:15",
"Detail": "sample string 9",
"Attach": "sample string 10",
"GoodsTag": "sample string 11",
"ProductId": "sample string 12",
"LimitPay": true
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Msg | string |
None. |
|
| State | ResultState |
None. |
|
| Data | Object |
None. |
|
| RetData | Object |
None. |
|
| Code | integer |
None. |
|
| Exception | Exception |
None. |
Response Formats
application/json, text/json
Sample:
{
"Msg": "sample string 1",
"State": 0,
"Data": {},
"RetData": {},
"Code": 4,
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
}