POST Api/Service/Order/ManualPurchaseRefund
手动采购单退票询价/确认
Request Information
URI Parameters
None.
Body Parameters
请求模型
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.ManualPurchaseRefundRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseId |
采购单ID |
globally unique identifier |
None. |
| Confirmed |
是否为确认退票操作 |
boolean |
None. |
| LinkedId |
退票单关联ID |
globally unique identifier |
None. |
| SettingKey |
数据源扩展Key |
string |
Required String length: inclusive between 0 and 500 |
| SettingValue |
数据源扩展Value |
string |
Required |
| PassengerIds |
乘机人选择项(为空列表则默认为所有当前采购单乘客) |
Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"PurchaseId": "f0bb002a-cd2c-420e-b0c4-3eb4df93f1b0",
"Confirmed": true,
"LinkedId": "78312ca0-5d52-4b67-91bb-cbe052946a3e",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"PassengerIds": [
"a9e092f7-c0cf-4b81-ab81-83e301f40dad",
"b803ac10-6b33-4464-9957-c02385f763c6"
]
}
Response Information
Resource Description
手动采购单退票询价/确认
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoPurchaseRefundResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorType |
错误类型(可为NULL) |
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoPurchaseRefundErrorType |
None. |
| Request |
请求模型返回 |
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoPurchaseRefundRequestModel |
None. |
| PurchaseRefundPayment |
财务信息 |
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoPurchaseRefundPaymentResponseModel |
None. |
| Succeed |
操作是否成功 |
boolean |
None. |
| Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorType": 0,
"Request": {
"Confirmed": true,
"FollowupId": "1e517e42-4abe-457c-88ff-a2998f323992",
"LinkedId": "b068d769-888e-47d2-9a3d-cd70b56cd63d",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "b87e5824-fe49-4e0e-8cab-9a207f49f7c0",
"PassengerId": "1cd1cebb-a3ed-4176-890c-f6ca006b1172",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "b87e5824-fe49-4e0e-8cab-9a207f49f7c0",
"PassengerId": "1cd1cebb-a3ed-4176-890c-f6ca006b1172",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "9134d27a-81fb-427c-a056-2db4870eadf4",
"PassengerId": "937b275c-e31b-4dce-a258-a6bfd827fc25",
"Sequence": 1,
"SalePrice": 4.1,
"PrintPrice": 5,
"FareTax": 6,
"FuelTax": 7,
"CabinLevel": 0,
"CabinCode": "sample string 8",
"ChannelCabinCode": "sample string 9",
"FixedCabinCode": "sample string 10"
},
{
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "9134d27a-81fb-427c-a056-2db4870eadf4",
"PassengerId": "937b275c-e31b-4dce-a258-a6bfd827fc25",
"Sequence": 1,
"SalePrice": 4.1,
"PrintPrice": 5,
"FareTax": 6,
"FuelTax": 7,
"CabinLevel": 0,
"CabinCode": "sample string 8",
"ChannelCabinCode": "sample string 9",
"FixedCabinCode": "sample string 10"
}
],
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "29e93ff8-8eb0-42b2-91b2-6b170021eefc",
"OrderId": "a53c417a-1910-4c8c-9fbd-33f91d82ad39",
"Name": "sample string 4",
"Birthday": "2026-06-24T05:31:43.3361945+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
},
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "b87e5824-fe49-4e0e-8cab-9a207f49f7c0",
"PassengerId": "1cd1cebb-a3ed-4176-890c-f6ca006b1172",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "b87e5824-fe49-4e0e-8cab-9a207f49f7c0",
"PassengerId": "1cd1cebb-a3ed-4176-890c-f6ca006b1172",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "9134d27a-81fb-427c-a056-2db4870eadf4",
"PassengerId": "937b275c-e31b-4dce-a258-a6bfd827fc25",
"Sequence": 1,
"SalePrice": 4.1,
"PrintPrice": 5,
"FareTax": 6,
"FuelTax": 7,
"CabinLevel": 0,
"CabinCode": "sample string 8",
"ChannelCabinCode": "sample string 9",
"FixedCabinCode": "sample string 10"
},
{
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "9134d27a-81fb-427c-a056-2db4870eadf4",
"PassengerId": "937b275c-e31b-4dce-a258-a6bfd827fc25",
"Sequence": 1,
"SalePrice": 4.1,
"PrintPrice": 5,
"FareTax": 6,
"FuelTax": 7,
"CabinLevel": 0,
"CabinCode": "sample string 8",
"ChannelCabinCode": "sample string 9",
"FixedCabinCode": "sample string 10"
}
],
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "29e93ff8-8eb0-42b2-91b2-6b170021eefc",
"OrderId": "a53c417a-1910-4c8c-9fbd-33f91d82ad39",
"Name": "sample string 4",
"Birthday": "2026-06-24T05:31:43.3361945+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"PaymentAccountSetting": {
"AutoPaymentAccountConfigs": [
{
"ID": "28012dbe-a209-424d-87b0-1a585fa6a059",
"AutoPaymentAccountSettingId": "df2de456-e323-4603-857c-7c2f44b795b0",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "28012dbe-a209-424d-87b0-1a585fa6a059",
"AutoPaymentAccountSettingId": "df2de456-e323-4603-857c-7c2f44b795b0",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-06-24T05:31:43.3361945+08:00",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "d643b8bd-3f43-4236-b704-075dd2be466f",
"Sequence": 4,
"PaymentTag": "sample string 5",
"PaymentCode": "sample string 6",
"Status": true,
"Remarks": "sample string 8"
},
"MemberSetting": {
"PurchaseMemberConfigs": {
"ValidBalance": 1.1,
"UsedBalance": 2.1,
"CurrentBalance": 3.1,
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "d4bf8d40-dc37-447d-80ad-6a2fa3cb112b",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "2a25cf6d-faf9-49f8-9bba-b26ad522724b",
"PurchaseMemberSettingId": "0245b28a-e5cc-4fa5-ac2f-a48b831ae604",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "2a25cf6d-faf9-49f8-9bba-b26ad522724b",
"PurchaseMemberSettingId": "0245b28a-e5cc-4fa5-ac2f-a48b831ae604",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-06-24T05:31:43.3361945+08:00",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "455438f7-ed2e-4f6e-a717-d9660145edbb",
"UsedStatus": 0,
"ProviderCode": "sample string 4",
"UserName": "sample string 5",
"Password": "sample string 6",
"ContactUser": "sample string 7",
"ContactPhone": "sample string 8",
"ContactEmail": "sample string 9",
"KeepTime": 10,
"Remarks": "sample string 11"
},
"OperationTag": {
"OrderId": "4eafe3e9-6bd7-4724-917e-18551fb35f7f",
"Creater": "sample string 2"
},
"PurchaseIncludes": [
{
"ID": "3b6af5df-c388-492e-9b49-30a987620393",
"PurchaseOrderId": "142d259a-ec97-4dca-926a-c4517f2bcc81",
"PassengerId": "54b6765e-4ea5-40c5-8d9c-eb8c90d276ec",
"TicketNumber": "sample string 4"
},
{
"ID": "3b6af5df-c388-492e-9b49-30a987620393",
"PurchaseOrderId": "142d259a-ec97-4dca-926a-c4517f2bcc81",
"PassengerId": "54b6765e-4ea5-40c5-8d9c-eb8c90d276ec",
"TicketNumber": "sample string 4"
}
],
"PurchaseMembers": [
{
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "7ae70991-aacb-4580-a6ca-4ea78debd69f",
"PurchaseOrderId": "308932fe-ce95-4455-8a57-5900b783bccc",
"UserName": "sample string 4",
"Password": "sample string 5",
"ContactPhone": "sample string 6",
"Remarks": "sample string 7",
"MembersId": "sample string 8"
},
{
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "7ae70991-aacb-4580-a6ca-4ea78debd69f",
"PurchaseOrderId": "308932fe-ce95-4455-8a57-5900b783bccc",
"UserName": "sample string 4",
"Password": "sample string 5",
"ContactPhone": "sample string 6",
"Remarks": "sample string 7",
"MembersId": "sample string 8"
}
],
"PurchasePayables": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "82f7e984-af50-418a-b4bd-0922b2e1e61b",
"PurchaseOrderId": "d8645c6e-0278-48ed-8bd6-7c444668dc13",
"PayPrice": 5.1,
"PaymentTag": "sample string 6",
"PaymentCode": "sample string 7",
"PaymentAccount": "sample string 8",
"TransactionId": "sample string 9",
"Reconciled": true,
"Remarks": "sample string 11"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "82f7e984-af50-418a-b4bd-0922b2e1e61b",
"PurchaseOrderId": "d8645c6e-0278-48ed-8bd6-7c444668dc13",
"PayPrice": 5.1,
"PaymentTag": "sample string 6",
"PaymentCode": "sample string 7",
"PaymentAccount": "sample string 8",
"TransactionId": "sample string 9",
"Reconciled": true,
"Remarks": "sample string 11"
}
],
"PurchaseFollowups": [
{
"PurchasePayments": {
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "677b869c-dce8-47a1-87e9-a5e561a4e8d4",
"ClaimlPrice": 4.1,
"ServicePrice": 5.1,
"Confirmed": true,
"Reconciled": true,
"TransactionId": "sample string 8",
"Remarks": "sample string 9"
},
"RecordType": 0,
"ApplyStatus": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "9a16cfce-e71b-4af9-b2a4-dfcc9af178d4",
"PurchaseOrderId": "2de84911-b9fc-421f-86bd-2d8e2cf0f2cf",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "01d7df6c-da7c-462f-a650-1b94d928d3c1",
"LinkedId": "0eee52a8-0394-4813-8dbc-6a75b2c337f6",
"PassengerIds": "sample string 6"
},
{
"PurchasePayments": {
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "677b869c-dce8-47a1-87e9-a5e561a4e8d4",
"ClaimlPrice": 4.1,
"ServicePrice": 5.1,
"Confirmed": true,
"Reconciled": true,
"TransactionId": "sample string 8",
"Remarks": "sample string 9"
},
"RecordType": 0,
"ApplyStatus": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "9a16cfce-e71b-4af9-b2a4-dfcc9af178d4",
"PurchaseOrderId": "2de84911-b9fc-421f-86bd-2d8e2cf0f2cf",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "01d7df6c-da7c-462f-a650-1b94d928d3c1",
"LinkedId": "0eee52a8-0394-4813-8dbc-6a75b2c337f6",
"PassengerIds": "sample string 6"
}
],
"RecordType": 0,
"PaymentUri": "sample string 5",
"Manual": true,
"Creater": "sample string 6",
"Time": "2026-06-24T05:31:43.3361945+08:00",
"ID": "75a024d2-9a4a-461f-a890-89f3f47bd1a2",
"OrderId": "b0518f6a-5a51-467e-8c3a-71ea77e85eb2",
"PurchaseOrderNumber": "sample string 10",
"PurchaseOrderType": 0,
"TotalPrice": 11.1,
"PlatName": "sample string 12",
"PurchaseTag": "sample string 13",
"ProviderCode": "sample string 14",
"CabinLevel": 0,
"CabinCode": "sample string 15",
"ProductRules": "sample string 16",
"Remarks": "sample string 17"
},
"PurchaseRefundPayment": {
"ClaimlPrice": 1.1,
"ServicePrice": 2.1,
"TransactionId": "sample string 3",
"Remarks": "sample string 4"
},
"Succeed": true,
"Message": "sample string 2"
}