POST Api/Service/Order/ManualPurchase/{AutoPay}
手动指定数据源创建采购单
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| AutoPay |
是否自动支付 |
boolean |
Required |
Body Parameters
请求模型
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoQuotedRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProviderCode |
数据源代码 |
string |
None. |
| HavePurchase |
是否含有自动采购功能 |
boolean |
None. |
| AutoPurchase |
是否可执行全自动采购 |
boolean |
None. |
| SpecifyPurchase |
是否可执行指定源自动采购 |
boolean |
None. |
| IsShareToFlightNoReqeust |
是否为主飞航班请求 |
boolean |
None. |
| PurchaseSetting |
自动化采购/询价设置项 |
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.PurchaseSetting |
None. |
| OperationTag |
操作标签 |
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.OperationTagModel |
None. |
| OContacts |
联系人列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOContactModel |
None. |
| PurchaseRoutes |
采购路由列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetPurchaseRouteModel |
None. |
| OPassengers |
乘机人列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.ParentOPassengerModel |
None. |
| OrderExpands |
订单扩展参数列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOrderExpandModel |
None. |
| OrderPayments |
订单收付款项列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOrderPaymentModel |
None. |
| OSegments |
订单行程列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.GetOSegmentModel |
None. |
| DataSources |
订单数据来源项 |
SpeedPower.Utility.Models.Project.Orders.Service.GetDataSourceModel |
None. |
| QuotationSources |
订单政策来源项 |
SpeedPower.Utility.Models.Project.Orders.Service.GetQuotationSourceModel |
None. |
| OrderInternalNumber |
内部订单号 |
string |
Required String length: inclusive between 0 and 128 |
| OrderSource |
订单来源 |
SpeedPower.Utility.Models.Project.Orders.Enums.OrderSourceType |
None. |
| InternalTime |
订单创建时间 |
date |
None. |
| Creater |
创建人 |
string |
Required String length: inclusive between 0 and 128 |
| ID |
订单ID |
globally unique identifier |
None. |
| SiteId |
站点ID |
string |
Required String length: inclusive between 0 and 128 |
| OrderExternalNumber |
外部订单号 |
string |
Required String length: inclusive between 0 and 128 |
| LatestTime |
最后处理时间 |
date |
None. |
| ExternalTime |
外部订单创建时间 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProviderCode": "sample string 1",
"HavePurchase": true,
"AutoPurchase": true,
"SpecifyPurchase": true,
"IsShareToFlightNoReqeust": true,
"PurchaseSetting": {
"CarrierSetting": {
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "602a72e7-2a41-427e-8ca9-d8dcfbbfdc77",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "1ee12a32-ac02-4db7-a761-23fa14411a10",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "0285f0a8-99f3-4752-b818-b95edbf935de",
"OrderProviderSettingId": "9de3649c-6c2f-4b14-943b-33253bc09e83",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "0285f0a8-99f3-4752-b818-b95edbf935de",
"OrderProviderSettingId": "9de3649c-6c2f-4b14-943b-33253bc09e83",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "436e4712-65d0-401e-b804-1b949659d33b",
"OrderCarrierSettingId": "b5f72863-3822-4120-960b-e8b7afcf839b",
"Sequence": 4,
"ProviderCode": "sample string 5",
"MatchCabin": true,
"PriceChangeInterval": 7,
"Status": true
},
"MemberSetting": {
"PurchaseMemberConfigs": {
"ValidBalance": 1.1,
"UsedBalance": 2.1,
"CurrentBalance": 3.1,
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "a8986bfb-61bc-481c-869c-826258d9cf54",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "afe5f08b-0cd5-4038-8cb6-0e8e768d5e03",
"PurchaseMemberSettingId": "76b287a1-1533-4c93-9867-8379d299585f",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "afe5f08b-0cd5-4038-8cb6-0e8e768d5e03",
"PurchaseMemberSettingId": "76b287a1-1533-4c93-9867-8379d299585f",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-08-09T12:40:13.2281341+08:00",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "380c04a2-dcda-44ca-b350-9ec90d1c1918",
"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": "3a3692b5-704b-4c4a-8bed-975a7b78dd3e",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "d9a84888-32b3-4663-a148-9a9bac97c9fa",
"OrderId": "ae6bc3b9-8d43-4d66-8580-f07139dc0aa6",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "d9a84888-32b3-4663-a148-9a9bac97c9fa",
"OrderId": "ae6bc3b9-8d43-4d66-8580-f07139dc0aa6",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "65c57c37-d775-46bb-a6d2-0d2b96684ca6",
"OrderId": "5d25d818-a743-41c8-8c7a-6418a110daf3",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "65c57c37-d775-46bb-a6d2-0d2b96684ca6",
"OrderId": "5d25d818-a743-41c8-8c7a-6418a110daf3",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "8fd433b5-dd31-44c7-8a7b-eef48759a16b",
"PassengerId": "33104c54-6bcc-41c2-a30b-86e68d2acd69",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "8fd433b5-dd31-44c7-8a7b-eef48759a16b",
"PassengerId": "33104c54-6bcc-41c2-a30b-86e68d2acd69",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "598e05a4-ac52-4498-ae1c-896d4b0334cb",
"PassengerId": "b851773b-e883-4ec4-ab0a-10bea11d218c",
"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-08-09T12:40:13.2281341+08:00",
"ID": "598e05a4-ac52-4498-ae1c-896d4b0334cb",
"PassengerId": "b851773b-e883-4ec4-ab0a-10bea11d218c",
"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-08-09T12:40:13.2281341+08:00",
"ID": "981fe15e-d956-45ea-a99b-dabbe6801131",
"OrderId": "30b3d7bf-cb12-4344-8567-4028e69266fc",
"Name": "sample string 4",
"Birthday": "2026-08-09T12:40:13.2281341+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-08-09T12:40:13.2281341+08:00",
"ID": "8fd433b5-dd31-44c7-8a7b-eef48759a16b",
"PassengerId": "33104c54-6bcc-41c2-a30b-86e68d2acd69",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "8fd433b5-dd31-44c7-8a7b-eef48759a16b",
"PassengerId": "33104c54-6bcc-41c2-a30b-86e68d2acd69",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "598e05a4-ac52-4498-ae1c-896d4b0334cb",
"PassengerId": "b851773b-e883-4ec4-ab0a-10bea11d218c",
"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-08-09T12:40:13.2281341+08:00",
"ID": "598e05a4-ac52-4498-ae1c-896d4b0334cb",
"PassengerId": "b851773b-e883-4ec4-ab0a-10bea11d218c",
"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-08-09T12:40:13.2281341+08:00",
"ID": "981fe15e-d956-45ea-a99b-dabbe6801131",
"OrderId": "30b3d7bf-cb12-4344-8567-4028e69266fc",
"Name": "sample string 4",
"Birthday": "2026-08-09T12:40:13.2281341+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "216ee447-6987-4aec-b24f-9281bcb04631",
"OrderId": "01343c25-7532-4487-8987-27cbed76b970",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "216ee447-6987-4aec-b24f-9281bcb04631",
"OrderId": "01343c25-7532-4487-8987-27cbed76b970",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "10fe94ce-ad94-41ff-a18b-c7ea2e8b03e1",
"OrderId": "0dd47be6-92c2-4dc0-a35d-cdc741842b1c",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "10fe94ce-ad94-41ff-a18b-c7ea2e8b03e1",
"OrderId": "0dd47be6-92c2-4dc0-a35d-cdc741842b1c",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "3d015dd8-59c1-4c00-8172-373983a81fa9",
"OrderId": "317fa84c-6db4-43c3-b07e-c216a0030fbc",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-08-09T12:40:13.2281341+08:00",
"ArrivalDate": "2026-08-09T12:40:13.2281341+08:00",
"FlightNo": "sample string 10",
"CodeShare": true,
"ShareToFlightNo": "sample string 12",
"StopTimes": 13,
"Meal": "sample string 14",
"PlaneType": "sample string 15",
"DepartureTerminal": "sample string 16",
"ArrivalTerminal": "sample string 17"
},
{
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "3d015dd8-59c1-4c00-8172-373983a81fa9",
"OrderId": "317fa84c-6db4-43c3-b07e-c216a0030fbc",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-08-09T12:40:13.2281341+08:00",
"ArrivalDate": "2026-08-09T12:40:13.2281341+08:00",
"FlightNo": "sample string 10",
"CodeShare": true,
"ShareToFlightNo": "sample string 12",
"StopTimes": 13,
"Meal": "sample string 14",
"PlaneType": "sample string 15",
"DepartureTerminal": "sample string 16",
"ArrivalTerminal": "sample string 17"
}
],
"DataSources": {
"ID": "5fef0c09-0857-448c-a072-da805635d8f4",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2026-08-09T12:40:13.2281341+08:00",
"ID": "bf8bd773-28d4-4e24-98a8-a9aa4e3cb7cc",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2026-08-09T12:40:13.2281341+08:00",
"Creater": "sample string 8",
"ID": "7a48f0dd-f2b9-4944-b70c-e77ab00a1217",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2026-08-09T12:40:13.2281341+08:00",
"ExternalTime": "2026-08-09T12:40:13.2281341+08:00"
}
Response Information
Resource Description
手动指定数据源创建采购单
SpeedPower.Utility.Models.Helper.ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Succeed |
操作是否成功 |
boolean |
None. |
| Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succeed": true,
"Message": "sample string 2"
}