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": "fc742524-4db1-467d-ae78-f31ba346bee9",
"Confirmed": true,
"LinkedId": "608b39d6-6c1e-45a5-82c3-d45fa65e4826",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"PassengerIds": [
"3542e46e-c41b-407b-b903-05575db33e61",
"8d5b22a1-dfbb-41d1-8c28-a0fe9e897e40"
]
}
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": "e0a62e63-f4cf-4332-974e-51e968dcdaf7",
"LinkedId": "d4f65016-1374-4c1a-a9a9-fe90c7a827e5",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "a5da0460-a18e-4321-ab68-15ca7e6154c5",
"PassengerId": "4f47f769-5f33-42ed-b383-d4031b0fc00f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "a5da0460-a18e-4321-ab68-15ca7e6154c5",
"PassengerId": "4f47f769-5f33-42ed-b383-d4031b0fc00f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "53d59ad9-e971-4864-bd83-988aa2c63aa4",
"PassengerId": "ccad4235-a272-4323-aad7-63aa86cab0e4",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "53d59ad9-e971-4864-bd83-988aa2c63aa4",
"PassengerId": "ccad4235-a272-4323-aad7-63aa86cab0e4",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "c2fa68a9-4a92-424c-80b0-f33bb0d8aac5",
"OrderId": "28abee5d-613f-4dc3-8747-2c952a9cd19b",
"Name": "sample string 4",
"Birthday": "2025-12-18T09:47:33.9894603+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
},
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "a5da0460-a18e-4321-ab68-15ca7e6154c5",
"PassengerId": "4f47f769-5f33-42ed-b383-d4031b0fc00f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "a5da0460-a18e-4321-ab68-15ca7e6154c5",
"PassengerId": "4f47f769-5f33-42ed-b383-d4031b0fc00f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "53d59ad9-e971-4864-bd83-988aa2c63aa4",
"PassengerId": "ccad4235-a272-4323-aad7-63aa86cab0e4",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "53d59ad9-e971-4864-bd83-988aa2c63aa4",
"PassengerId": "ccad4235-a272-4323-aad7-63aa86cab0e4",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "c2fa68a9-4a92-424c-80b0-f33bb0d8aac5",
"OrderId": "28abee5d-613f-4dc3-8747-2c952a9cd19b",
"Name": "sample string 4",
"Birthday": "2025-12-18T09:47:33.9894603+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"PaymentAccountSetting": {
"AutoPaymentAccountConfigs": [
{
"ID": "c80b754c-7b4a-407b-87ea-f879ed9cf170",
"AutoPaymentAccountSettingId": "6ebb8e50-16af-4806-a649-9845b2cc6a30",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "c80b754c-7b4a-407b-87ea-f879ed9cf170",
"AutoPaymentAccountSettingId": "6ebb8e50-16af-4806-a649-9845b2cc6a30",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2025-12-18T09:47:33.9894603+08:00",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "8d7b0773-7398-44e8-83ac-0eb0549ad67e",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "7b98d9db-827e-4a08-8c5e-9f9df7b6a292",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "6dc52bc9-f0b5-4306-91ab-78e74e19dd1d",
"PurchaseMemberSettingId": "ee250915-03c0-4727-8ef8-4f36d5c20fd1",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "6dc52bc9-f0b5-4306-91ab-78e74e19dd1d",
"PurchaseMemberSettingId": "ee250915-03c0-4727-8ef8-4f36d5c20fd1",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2025-12-18T09:47:33.9894603+08:00",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "01db6a06-7255-4c7f-acc9-dd20aca4b3ee",
"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": "15a02075-cff0-4d84-a142-dc18b1ae5d24",
"Creater": "sample string 2"
},
"PurchaseIncludes": [
{
"ID": "ce28f9af-2e21-48e1-a48e-ff65c01bab47",
"PurchaseOrderId": "81351bf3-c8f9-428c-b619-44cb6dfcc276",
"PassengerId": "c4576a14-f0fb-4143-9e3d-cfbbddcafaad",
"TicketNumber": "sample string 4"
},
{
"ID": "ce28f9af-2e21-48e1-a48e-ff65c01bab47",
"PurchaseOrderId": "81351bf3-c8f9-428c-b619-44cb6dfcc276",
"PassengerId": "c4576a14-f0fb-4143-9e3d-cfbbddcafaad",
"TicketNumber": "sample string 4"
}
],
"PurchaseMembers": [
{
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "f804ccc7-00d2-4a02-ad0f-adac8c2b5352",
"PurchaseOrderId": "6e8c7af5-e059-4c3f-874e-d9fc14f42dbd",
"UserName": "sample string 4",
"Password": "sample string 5",
"ContactPhone": "sample string 6",
"Remarks": "sample string 7",
"MembersId": "sample string 8"
},
{
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "f804ccc7-00d2-4a02-ad0f-adac8c2b5352",
"PurchaseOrderId": "6e8c7af5-e059-4c3f-874e-d9fc14f42dbd",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "539fb4b6-dc6b-45e6-bcf6-0f376290edd4",
"PurchaseOrderId": "cef25a5c-ac7e-49bf-8e25-ecabbe817498",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "539fb4b6-dc6b-45e6-bcf6-0f376290edd4",
"PurchaseOrderId": "cef25a5c-ac7e-49bf-8e25-ecabbe817498",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "d6c98c91-92dc-4a38-bfc1-5e03b0fa6263",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "db98ad41-8fc3-41fd-a5a9-819d4c7d8294",
"PurchaseOrderId": "08e50159-c1ba-4941-9958-b7dcabd3cb1a",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "dc9b44ce-1e3f-4aa0-80f8-1d80b03ce002",
"LinkedId": "52b8b0b4-a6bd-4f16-a4d9-2a7aaebf3b24",
"PassengerIds": "sample string 6"
},
{
"PurchasePayments": {
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "d6c98c91-92dc-4a38-bfc1-5e03b0fa6263",
"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": "2025-12-18T09:47:33.9894603+08:00",
"ID": "db98ad41-8fc3-41fd-a5a9-819d4c7d8294",
"PurchaseOrderId": "08e50159-c1ba-4941-9958-b7dcabd3cb1a",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "dc9b44ce-1e3f-4aa0-80f8-1d80b03ce002",
"LinkedId": "52b8b0b4-a6bd-4f16-a4d9-2a7aaebf3b24",
"PassengerIds": "sample string 6"
}
],
"RecordType": 0,
"PaymentUri": "sample string 5",
"Manual": true,
"Creater": "sample string 6",
"Time": "2025-12-18T09:47:33.9894603+08:00",
"ID": "95bf6ba9-ffe4-4c37-bb5c-de23fb47c14b",
"OrderId": "0fa54155-0bfd-4d8a-aac7-0a20f2bd68de",
"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"
}