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": "6e9c3527-3da5-4344-9ade-e760766eda76",
"Confirmed": true,
"LinkedId": "74e86ceb-15a9-4d79-8faf-7d477e2993ef",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"PassengerIds": [
"cbbde103-3fc2-4ca5-9931-dc9e86e9ea71",
"bd5a4e74-7633-46d5-bd57-a47316974109"
]
}
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": "962495df-66cc-471b-833f-e877feea988b",
"LinkedId": "fe3742ab-9316-4392-bc6f-756647f5cdf8",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4",
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "dfc72d4e-897c-4710-b09e-42ef71968efc",
"PassengerId": "c561a648-aeea-4f88-a848-fb5afcba6c7f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "dfc72d4e-897c-4710-b09e-42ef71968efc",
"PassengerId": "c561a648-aeea-4f88-a848-fb5afcba6c7f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "be2a8669-27d0-4c93-82d7-9efc4c9eb14f",
"PassengerId": "b68475b8-b0e7-4b28-9bea-94e2c6f784d5",
"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-05-09T19:33:30.2764039+08:00",
"ID": "be2a8669-27d0-4c93-82d7-9efc4c9eb14f",
"PassengerId": "b68475b8-b0e7-4b28-9bea-94e2c6f784d5",
"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-05-09T19:33:30.2764039+08:00",
"ID": "a9d72623-57d0-4943-aabb-973b0e9df267",
"OrderId": "ec86c6d5-4ac6-4be6-9425-7e6bf98fcbc2",
"Name": "sample string 4",
"Birthday": "2026-05-09T19:33:30.2764039+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-05-09T19:33:30.2764039+08:00",
"ID": "dfc72d4e-897c-4710-b09e-42ef71968efc",
"PassengerId": "c561a648-aeea-4f88-a848-fb5afcba6c7f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "dfc72d4e-897c-4710-b09e-42ef71968efc",
"PassengerId": "c561a648-aeea-4f88-a848-fb5afcba6c7f",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "be2a8669-27d0-4c93-82d7-9efc4c9eb14f",
"PassengerId": "b68475b8-b0e7-4b28-9bea-94e2c6f784d5",
"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-05-09T19:33:30.2764039+08:00",
"ID": "be2a8669-27d0-4c93-82d7-9efc4c9eb14f",
"PassengerId": "b68475b8-b0e7-4b28-9bea-94e2c6f784d5",
"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-05-09T19:33:30.2764039+08:00",
"ID": "a9d72623-57d0-4943-aabb-973b0e9df267",
"OrderId": "ec86c6d5-4ac6-4be6-9425-7e6bf98fcbc2",
"Name": "sample string 4",
"Birthday": "2026-05-09T19:33:30.2764039+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"PaymentAccountSetting": {
"AutoPaymentAccountConfigs": [
{
"ID": "87cc3256-b11a-41ff-bddb-9d1c327ba0e1",
"AutoPaymentAccountSettingId": "55856896-4ca3-43e0-b871-2da7ecc1ee45",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "87cc3256-b11a-41ff-bddb-9d1c327ba0e1",
"AutoPaymentAccountSettingId": "55856896-4ca3-43e0-b871-2da7ecc1ee45",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-05-09T19:33:30.2764039+08:00",
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "e4257fb0-989c-49c3-8a3b-48acbdabfd13",
"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-05-09T19:33:30.2764039+08:00",
"ID": "9d34320c-5506-4cc9-a2e7-245e44d9f154",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "03591607-520f-40d0-b746-3df7f2e0908e",
"PurchaseMemberSettingId": "801a4824-e027-43b6-812c-b901424b9066",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "03591607-520f-40d0-b746-3df7f2e0908e",
"PurchaseMemberSettingId": "801a4824-e027-43b6-812c-b901424b9066",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-05-09T19:33:30.2764039+08:00",
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "05138ab5-38a7-46b7-bd79-9300a3175927",
"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": "9caccda5-d11c-4667-85ba-4401a056b068",
"Creater": "sample string 2"
},
"PurchaseIncludes": [
{
"ID": "654c3335-3a50-49dc-9dad-3c0e6d9c9d53",
"PurchaseOrderId": "53bf2ef9-ae4b-4903-84bb-ae1b843ac4e9",
"PassengerId": "d8178928-676b-4fca-adaf-cada249b602d",
"TicketNumber": "sample string 4"
},
{
"ID": "654c3335-3a50-49dc-9dad-3c0e6d9c9d53",
"PurchaseOrderId": "53bf2ef9-ae4b-4903-84bb-ae1b843ac4e9",
"PassengerId": "d8178928-676b-4fca-adaf-cada249b602d",
"TicketNumber": "sample string 4"
}
],
"PurchaseMembers": [
{
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "a409925f-2a17-4632-a63f-5fe0505ab1d0",
"PurchaseOrderId": "63f054a7-61bc-4b51-a763-2720ac7e90d7",
"UserName": "sample string 4",
"Password": "sample string 5",
"ContactPhone": "sample string 6",
"Remarks": "sample string 7",
"MembersId": "sample string 8"
},
{
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "a409925f-2a17-4632-a63f-5fe0505ab1d0",
"PurchaseOrderId": "63f054a7-61bc-4b51-a763-2720ac7e90d7",
"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-05-09T19:33:30.2764039+08:00",
"ID": "370c97be-e6e5-4d3e-9632-4dc7cb8cb17f",
"PurchaseOrderId": "348f08f8-68fa-4d03-8ef2-aff9694d4d63",
"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-05-09T19:33:30.2764039+08:00",
"ID": "370c97be-e6e5-4d3e-9632-4dc7cb8cb17f",
"PurchaseOrderId": "348f08f8-68fa-4d03-8ef2-aff9694d4d63",
"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-05-09T19:33:30.2764039+08:00",
"ID": "38fffc8c-21ca-4325-b5be-4a47a77b10ae",
"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-05-09T19:33:30.2764039+08:00",
"ID": "cb3e1108-f111-4354-99ad-fe1f31383585",
"PurchaseOrderId": "5b9c3e02-edee-4b4c-bc68-bf038809a5b5",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "102c7c3a-025b-4384-8239-237f09d2767e",
"LinkedId": "fd5fa64c-1400-4a27-acb5-47c7f05fdff9",
"PassengerIds": "sample string 6"
},
{
"PurchasePayments": {
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "38fffc8c-21ca-4325-b5be-4a47a77b10ae",
"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-05-09T19:33:30.2764039+08:00",
"ID": "cb3e1108-f111-4354-99ad-fe1f31383585",
"PurchaseOrderId": "5b9c3e02-edee-4b4c-bc68-bf038809a5b5",
"ApplyType": 0,
"Remarks": "sample string 5",
"CSegmentId": "102c7c3a-025b-4384-8239-237f09d2767e",
"LinkedId": "fd5fa64c-1400-4a27-acb5-47c7f05fdff9",
"PassengerIds": "sample string 6"
}
],
"RecordType": 0,
"PaymentUri": "sample string 5",
"Manual": true,
"Creater": "sample string 6",
"Time": "2026-05-09T19:33:30.2764039+08:00",
"ID": "1d8ca354-bf5c-4b03-9697-d1d1ff5d2482",
"OrderId": "a2331283-1ab2-49f2-9358-61e11e1f39f6",
"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"
}