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": "090d7d62-354c-461b-95c4-b4dfcbf1703c",
"Confirmed": true,
"LinkedId": "d526bfde-00bf-4752-8b29-d146a43060cb",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"PassengerIds": [
"bb43e50f-227f-46d3-ae7d-0c006c98fbb2",
"70ca11a1-bd83-4602-880c-61513f362c83"
]
}
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": "c271fda6-67e7-4af6-9626-31e2ee852d59",
"LinkedId": "f4718850-ff77-4b25-b3c5-778f617bd107",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "c99204fa-2369-4745-887f-293a2dd6a979",
"PassengerId": "bd85862d-6297-42c0-b79e-f7a075505f71",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "c99204fa-2369-4745-887f-293a2dd6a979",
"PassengerId": "bd85862d-6297-42c0-b79e-f7a075505f71",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "5a579088-bea2-42cb-a8be-1355878cef5f",
"PassengerId": "6a2c965a-2e12-41ea-a0d2-b2fcfd774069",
"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-11-09T11:20:04.4525798+08:00",
"ID": "5a579088-bea2-42cb-a8be-1355878cef5f",
"PassengerId": "6a2c965a-2e12-41ea-a0d2-b2fcfd774069",
"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-11-09T11:20:04.4525798+08:00",
"ID": "f9f87658-dc84-4991-a87c-183b143cfad0",
"OrderId": "95f8dd85-e715-448a-b003-1f87dda643fc",
"Name": "sample string 4",
"Birthday": "2026-11-09T11:20:04.4525798+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-11-09T11:20:04.4525798+08:00",
"ID": "c99204fa-2369-4745-887f-293a2dd6a979",
"PassengerId": "bd85862d-6297-42c0-b79e-f7a075505f71",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "c99204fa-2369-4745-887f-293a2dd6a979",
"PassengerId": "bd85862d-6297-42c0-b79e-f7a075505f71",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "5a579088-bea2-42cb-a8be-1355878cef5f",
"PassengerId": "6a2c965a-2e12-41ea-a0d2-b2fcfd774069",
"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-11-09T11:20:04.4525798+08:00",
"ID": "5a579088-bea2-42cb-a8be-1355878cef5f",
"PassengerId": "6a2c965a-2e12-41ea-a0d2-b2fcfd774069",
"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-11-09T11:20:04.4525798+08:00",
"ID": "f9f87658-dc84-4991-a87c-183b143cfad0",
"OrderId": "95f8dd85-e715-448a-b003-1f87dda643fc",
"Name": "sample string 4",
"Birthday": "2026-11-09T11:20:04.4525798+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"PaymentAccountSetting": {
"AutoPaymentAccountConfigs": [
{
"ID": "5e0b1b4c-0ad3-4263-af58-5a80b7bbc0f0",
"AutoPaymentAccountSettingId": "0833a4d1-4e17-4c05-a3eb-81792e868ab9",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "5e0b1b4c-0ad3-4263-af58-5a80b7bbc0f0",
"AutoPaymentAccountSettingId": "0833a4d1-4e17-4c05-a3eb-81792e868ab9",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-11-09T11:20:04.4525798+08:00",
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "3edd17de-2762-402a-96cb-cd3a2f0bcf19",
"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-11-09T11:20:04.4525798+08:00",
"ID": "4c692e90-22b7-4ca3-85c7-e45f124c73ad",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "c4214b63-8345-487b-b6ae-beaa0a4295d9",
"PurchaseMemberSettingId": "0943e6fb-f098-42fc-b754-39342d169ca2",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "c4214b63-8345-487b-b6ae-beaa0a4295d9",
"PurchaseMemberSettingId": "0943e6fb-f098-42fc-b754-39342d169ca2",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-11-09T11:20:04.4525798+08:00",
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "000adda2-6e35-404d-9e4f-702968e341da",
"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": "0056e2c5-c344-4e69-b2da-40913b12ffd9",
"Creater": "sample string 2"
},
"PurchaseIncludes": [
{
"ID": "2ba75427-8f79-432a-840c-b90521f48553",
"PurchaseOrderId": "62683b03-2362-4f78-af03-67719807acad",
"PassengerId": "2299d0b3-3440-49ff-be70-de180a0fc90b",
"TicketNumber": "sample string 4"
},
{
"ID": "2ba75427-8f79-432a-840c-b90521f48553",
"PurchaseOrderId": "62683b03-2362-4f78-af03-67719807acad",
"PassengerId": "2299d0b3-3440-49ff-be70-de180a0fc90b",
"TicketNumber": "sample string 4"
}
],
"PurchaseMembers": [
{
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "8b546c00-73ec-4f88-b756-d11626d4d24e",
"PurchaseOrderId": "910045d6-009d-4def-a36c-43cfdf3b8e8c",
"UserName": "sample string 4",
"Password": "sample string 5",
"ContactPhone": "sample string 6",
"Remarks": "sample string 7",
"MembersId": "sample string 8"
},
{
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "8b546c00-73ec-4f88-b756-d11626d4d24e",
"PurchaseOrderId": "910045d6-009d-4def-a36c-43cfdf3b8e8c",
"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-11-09T11:20:04.4525798+08:00",
"ID": "3078a8c8-5420-40a0-b278-906c23b6c2b8",
"PurchaseOrderId": "06384608-a975-4cba-ab5a-2811e77830d0",
"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-11-09T11:20:04.4525798+08:00",
"ID": "3078a8c8-5420-40a0-b278-906c23b6c2b8",
"PurchaseOrderId": "06384608-a975-4cba-ab5a-2811e77830d0",
"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-11-09T11:20:04.4525798+08:00",
"ID": "855e9d94-d6ea-48b8-81a5-643436dac84e",
"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-11-09T11:20:04.4525798+08:00",
"ID": "90c1c4f3-0447-44b4-ab3c-4c7b6cf3e0da",
"PurchaseOrderId": "6ed7a9f4-2044-4952-88d3-34798dbce659",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "96000bda-539b-4d62-aa5c-d9c20fdd51f2",
"LinkedId": "4d549017-6e66-4e01-8b58-70916ee6f7f6",
"PassengerIds": "sample string 6"
},
{
"PurchasePayments": {
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "855e9d94-d6ea-48b8-81a5-643436dac84e",
"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-11-09T11:20:04.4525798+08:00",
"ID": "90c1c4f3-0447-44b4-ab3c-4c7b6cf3e0da",
"PurchaseOrderId": "6ed7a9f4-2044-4952-88d3-34798dbce659",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "96000bda-539b-4d62-aa5c-d9c20fdd51f2",
"LinkedId": "4d549017-6e66-4e01-8b58-70916ee6f7f6",
"PassengerIds": "sample string 6"
}
],
"RecordType": 0,
"PaymentUri": "sample string 5",
"Manual": true,
"Creater": "sample string 6",
"Time": "2026-11-09T11:20:04.4525798+08:00",
"ID": "446d713a-51c6-4b90-a6b9-01c4fbfc6670",
"OrderId": "4a770bf1-e48e-47df-8b17-1b4d459513ca",
"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"
}