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": "f8269a39-d499-4c53-bdc3-65fee70636c1",
"Confirmed": true,
"LinkedId": "21dcda12-0025-43f8-b82d-fc48e2d02688",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"PassengerIds": [
"89ef213e-7ef9-44e0-ae4c-c2e0e4eb921e",
"5a578174-7758-46f0-a497-82acd16c4040"
]
}
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": "edb67259-ac6b-447b-86d0-c3882f5c8878",
"LinkedId": "e9ebebae-dc78-40eb-9581-36c660aa4ba0",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "2cf06574-414d-413f-b1ec-ec15e510d241",
"PassengerId": "8b27b12f-c92e-443d-887c-a28202cbe212",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "2cf06574-414d-413f-b1ec-ec15e510d241",
"PassengerId": "8b27b12f-c92e-443d-887c-a28202cbe212",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "ca7bd55f-81e5-435c-832d-2dcff8357a62",
"PassengerId": "8bef71e6-90a1-4d59-b561-01c3181ddc81",
"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-02-04T08:50:41.142204+08:00",
"ID": "ca7bd55f-81e5-435c-832d-2dcff8357a62",
"PassengerId": "8bef71e6-90a1-4d59-b561-01c3181ddc81",
"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-02-04T08:50:41.142204+08:00",
"ID": "43afaffd-0302-4396-bf78-06d29c293b84",
"OrderId": "1cfc2f84-9ae6-42ff-95d6-f02dcb93331f",
"Name": "sample string 4",
"Birthday": "2026-02-04T08:50:41.142204+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-02-04T08:50:41.142204+08:00",
"ID": "2cf06574-414d-413f-b1ec-ec15e510d241",
"PassengerId": "8b27b12f-c92e-443d-887c-a28202cbe212",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "2cf06574-414d-413f-b1ec-ec15e510d241",
"PassengerId": "8b27b12f-c92e-443d-887c-a28202cbe212",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "ca7bd55f-81e5-435c-832d-2dcff8357a62",
"PassengerId": "8bef71e6-90a1-4d59-b561-01c3181ddc81",
"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-02-04T08:50:41.142204+08:00",
"ID": "ca7bd55f-81e5-435c-832d-2dcff8357a62",
"PassengerId": "8bef71e6-90a1-4d59-b561-01c3181ddc81",
"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-02-04T08:50:41.142204+08:00",
"ID": "43afaffd-0302-4396-bf78-06d29c293b84",
"OrderId": "1cfc2f84-9ae6-42ff-95d6-f02dcb93331f",
"Name": "sample string 4",
"Birthday": "2026-02-04T08:50:41.142204+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"PaymentAccountSetting": {
"AutoPaymentAccountConfigs": [
{
"ID": "b77da411-8c62-49cf-abeb-23ed0bc0eaa2",
"AutoPaymentAccountSettingId": "51abe54c-9299-4730-996e-2b2a05a7ea76",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "b77da411-8c62-49cf-abeb-23ed0bc0eaa2",
"AutoPaymentAccountSettingId": "51abe54c-9299-4730-996e-2b2a05a7ea76",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-02-04T08:50:41.142204+08:00",
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "5370c4d1-6276-4211-97f1-29a45955cf5f",
"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-02-04T08:50:41.142204+08:00",
"ID": "e5d69823-aff1-4ee2-b0d3-daf4e5013290",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "faf27d89-c829-41d9-9ff8-ae0c625540c7",
"PurchaseMemberSettingId": "d24863cb-1f59-4421-8e51-808ced3c6843",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "faf27d89-c829-41d9-9ff8-ae0c625540c7",
"PurchaseMemberSettingId": "d24863cb-1f59-4421-8e51-808ced3c6843",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-02-04T08:50:41.142204+08:00",
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "8b844bcc-a053-4558-bef9-dfdf68f503e8",
"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": "f42f27f0-a592-4b24-9c1f-ea8930c4cd3f",
"Creater": "sample string 2"
},
"PurchaseIncludes": [
{
"ID": "d449e2b7-ec27-4e5c-8dd3-af277b8818ee",
"PurchaseOrderId": "02c0b857-dba0-4ea9-b98e-7a2e58f4fbfd",
"PassengerId": "fb826f0d-e5c0-4184-9c48-264bb86b29e8",
"TicketNumber": "sample string 4"
},
{
"ID": "d449e2b7-ec27-4e5c-8dd3-af277b8818ee",
"PurchaseOrderId": "02c0b857-dba0-4ea9-b98e-7a2e58f4fbfd",
"PassengerId": "fb826f0d-e5c0-4184-9c48-264bb86b29e8",
"TicketNumber": "sample string 4"
}
],
"PurchaseMembers": [
{
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "5424e27e-e1d3-4b9e-a7af-3881d5ce7294",
"PurchaseOrderId": "719c7313-04a0-4a0b-b9dc-aec40d92838c",
"UserName": "sample string 4",
"Password": "sample string 5",
"ContactPhone": "sample string 6",
"Remarks": "sample string 7",
"MembersId": "sample string 8"
},
{
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "5424e27e-e1d3-4b9e-a7af-3881d5ce7294",
"PurchaseOrderId": "719c7313-04a0-4a0b-b9dc-aec40d92838c",
"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-02-04T08:50:41.142204+08:00",
"ID": "35e6511d-e6ea-4b2c-9cb5-70590f702fda",
"PurchaseOrderId": "6dd6e0a5-76af-44b6-b3e9-aa510093a208",
"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-02-04T08:50:41.142204+08:00",
"ID": "35e6511d-e6ea-4b2c-9cb5-70590f702fda",
"PurchaseOrderId": "6dd6e0a5-76af-44b6-b3e9-aa510093a208",
"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-02-04T08:50:41.142204+08:00",
"ID": "4e64793b-5bb6-4915-9e34-f58ec28bb298",
"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-02-04T08:50:41.142204+08:00",
"ID": "607221f3-2e7d-4899-bf71-5f723f469483",
"PurchaseOrderId": "ed767011-056a-4590-8f24-e591c87b1cdd",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "aa25c5d1-d521-4189-9677-f3347f0f589f",
"LinkedId": "3362fc76-0291-4525-bd2a-5ba3820b9979",
"PassengerIds": "sample string 6"
},
{
"PurchasePayments": {
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "4e64793b-5bb6-4915-9e34-f58ec28bb298",
"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-02-04T08:50:41.142204+08:00",
"ID": "607221f3-2e7d-4899-bf71-5f723f469483",
"PurchaseOrderId": "ed767011-056a-4590-8f24-e591c87b1cdd",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "aa25c5d1-d521-4189-9677-f3347f0f589f",
"LinkedId": "3362fc76-0291-4525-bd2a-5ba3820b9979",
"PassengerIds": "sample string 6"
}
],
"RecordType": 0,
"PaymentUri": "sample string 5",
"Manual": true,
"Creater": "sample string 6",
"Time": "2026-02-04T08:50:41.142204+08:00",
"ID": "520d430b-5437-46ee-820b-17c596f88853",
"OrderId": "af032b44-f51b-4cf8-a981-a293e04c08a9",
"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"
}