POST Api/Invoke/AddWebApiRefund

接口添加新退票单

Request Information

URI Parameters

None.

Body Parameters

设置参数

SpeedPower.Utility.Models.Project.Orders.Service.WebApiIntactRefundModel
NameDescriptionTypeAdditional 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": "27ca496e-9daa-465b-9d9d-dae5687b929e",
      "SettingKey": "sample string 2",
      "SettingValue": "sample string 3"
    },
    {
      "RefundId": "27ca496e-9daa-465b-9d9d-dae5687b929e",
      "SettingKey": "sample string 2",
      "SettingValue": "sample string 3"
    }
  ],
  "RefundPayments": [
    {
      "RefundId": "ea36590d-85a3-4f99-bc6f-0f8bce344844",
      "Confirmed": true,
      "Reconciled": true,
      "RefundPrice": 4.1,
      "CostPrice": 5.1,
      "TransactionId": "sample string 6",
      "Remarks": "sample string 7"
    },
    {
      "RefundId": "ea36590d-85a3-4f99-bc6f-0f8bce344844",
      "Confirmed": true,
      "Reconciled": true,
      "RefundPrice": 4.1,
      "CostPrice": 5.1,
      "TransactionId": "sample string 6",
      "Remarks": "sample string 7"
    }
  ],
  "RefundIncludes": [
    {
      "RefundId": "b1d0448d-3289-44e2-9e8f-7869bb203143",
      "PassengerId": "e248a822-a8de-4d73-9bc7-a981d9aa0bfe"
    },
    {
      "RefundId": "b1d0448d-3289-44e2-9e8f-7869bb203143",
      "PassengerId": "e248a822-a8de-4d73-9bc7-a981d9aa0bfe"
    }
  ],
  "OrderId": "a4032ffc-bec5-49ba-be4a-64c4666d852f",
  "RefundExternalNumber": "sample string 2",
  "RefundType": 0,
  "RefundStyle": 0,
  "LatestTime": "2025-07-01T12:17:29.4990242+08:00",
  "Remarks": "sample string 3",
  "ExternalTime": "2025-07-01T12:17:29.4990242+08:00"
}

Response Information

Resource Description

接口添加新退票单

SpeedPower.Utility.Models.Helper.ResultMessage
NameDescriptionTypeAdditional information
Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeed": true,
  "Message": "sample string 2"
}