POST Api/Invoke/AddWebApiRefund
接口添加新退票单
Request Information
URI Parameters
None.
Body Parameters
设置参数
SpeedPower.Utility.Models.Project.Orders.Service.WebApiIntactRefundModel| Name | Description | Type | Additional information |
|---|---|---|---|
| RefundExpands |
退票扩展参数列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddRefundExpandModel |
None. |
| RefundPayments |
退票收付款项列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddRefundPaymentModel |
None. |
| RefundIncludes |
退票包含乘机人项列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddRefundIncludeModel |
Required |
| OrderId |
父级ID |
globally unique identifier |
None. |
| RefundExternalNumber |
外部退票单号 |
string |
Required String length: inclusive between 0 and 128 |
| RefundType |
退票单类型 |
SpeedPower.Utility.Models.Project.Orders.Enums.RefundType |
None. |
| RefundStyle |
退票单操作方式 |
SpeedPower.Utility.Models.Project.Orders.Enums.RefundStyleType |
None. |
| LatestTime |
最晚处理时间 |
date |
None. |
| Remarks |
备注内容 |
string |
String length: inclusive between 0 and 500 |
| ExternalTime |
退票单外部时间 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{
"RefundExpands": [
{
"RefundId": "3c63d5ca-d22e-4c00-a5f5-b4229edabe19",
"SettingKey": "sample string 2",
"SettingValue": "sample string 3"
},
{
"RefundId": "3c63d5ca-d22e-4c00-a5f5-b4229edabe19",
"SettingKey": "sample string 2",
"SettingValue": "sample string 3"
}
],
"RefundPayments": [
{
"RefundId": "f5545423-974d-449e-a4d4-e80a21e045d7",
"Confirmed": true,
"Reconciled": true,
"RefundPrice": 4.1,
"CostPrice": 5.1,
"TransactionId": "sample string 6",
"Remarks": "sample string 7"
},
{
"RefundId": "f5545423-974d-449e-a4d4-e80a21e045d7",
"Confirmed": true,
"Reconciled": true,
"RefundPrice": 4.1,
"CostPrice": 5.1,
"TransactionId": "sample string 6",
"Remarks": "sample string 7"
}
],
"RefundIncludes": [
{
"RefundId": "d8855b47-b283-4af9-a9f1-c24b4a0fa752",
"PassengerId": "a83c02e6-c946-4415-9c48-64a23c4b6732"
},
{
"RefundId": "d8855b47-b283-4af9-a9f1-c24b4a0fa752",
"PassengerId": "a83c02e6-c946-4415-9c48-64a23c4b6732"
}
],
"OrderId": "5a669b46-4b32-47a0-8578-a2fd0149c973",
"RefundExternalNumber": "sample string 2",
"RefundType": 0,
"RefundStyle": 0,
"LatestTime": "2026-03-25T04:02:11.9788546+08:00",
"Remarks": "sample string 3",
"ExternalTime": "2026-03-25T04:02:11.9788546+08:00"
}
Response Information
Resource Description
接口添加新退票单
SpeedPower.Utility.Models.Helper.ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Succeed |
操作是否成功 |
boolean |
None. |
| Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succeed": true,
"Message": "sample string 2"
}