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-03-25T04:04:50.4426164+08:00",
"ID": "64402875-de35-40b2-84f3-8c17260af14b",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "d4317a74-c9e1-4010-a46e-a539cf9c80bc",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "16867044-c985-403f-8abd-06d28751b6f1",
"OrderProviderSettingId": "36a1e39f-5d33-4976-87b6-4f8c23ac0222",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "16867044-c985-403f-8abd-06d28751b6f1",
"OrderProviderSettingId": "36a1e39f-5d33-4976-87b6-4f8c23ac0222",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "b6cff3de-7345-47ca-a3da-a0dac46d50b6",
"OrderCarrierSettingId": "41bc4922-4845-46c8-ad24-845266f7737f",
"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-03-25T04:04:50.4426164+08:00",
"ID": "2d60b091-8766-4e41-996d-6798fd3c5fa3",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "f7c748f1-1fe7-4ae2-935a-580fb9ae8ec2",
"PurchaseMemberSettingId": "6acd37af-9f6f-4658-adb6-21b6e587d695",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "f7c748f1-1fe7-4ae2-935a-580fb9ae8ec2",
"PurchaseMemberSettingId": "6acd37af-9f6f-4658-adb6-21b6e587d695",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-03-25T04:04:50.4426164+08:00",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "677bcf39-4453-4725-a0cc-1e994d45647a",
"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": "b7a7f64c-6db4-4d84-8b19-0b39a85a8e8c",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "9c9aefe1-533b-4fd2-8881-e9cdd658c3b4",
"OrderId": "6f088021-489a-4897-9d04-860710215dca",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "9c9aefe1-533b-4fd2-8881-e9cdd658c3b4",
"OrderId": "6f088021-489a-4897-9d04-860710215dca",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "7c393526-3bcb-4ca7-ad1e-f4374fdccfaa",
"OrderId": "9870494e-3199-476a-abb8-bc44eded1e5a",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "7c393526-3bcb-4ca7-ad1e-f4374fdccfaa",
"OrderId": "9870494e-3199-476a-abb8-bc44eded1e5a",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "7e783c52-e9ca-449d-9754-2bcb400ab9b1",
"PassengerId": "0bd56941-80c1-4525-bb4a-6b216e964a1c",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "7e783c52-e9ca-449d-9754-2bcb400ab9b1",
"PassengerId": "0bd56941-80c1-4525-bb4a-6b216e964a1c",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "8954cda6-90ff-40d9-8de2-c10b3f6458c9",
"PassengerId": "54a6c37a-c240-423e-be0e-383796f8de1a",
"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-03-25T04:04:50.4426164+08:00",
"ID": "8954cda6-90ff-40d9-8de2-c10b3f6458c9",
"PassengerId": "54a6c37a-c240-423e-be0e-383796f8de1a",
"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-03-25T04:04:50.4426164+08:00",
"ID": "bd02e6dd-5381-4927-916e-8b1bc3d1bb5a",
"OrderId": "b475a59a-0ba0-40aa-b0bc-499b126eff28",
"Name": "sample string 4",
"Birthday": "2026-03-25T04:04:50.4426164+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-03-25T04:04:50.4426164+08:00",
"ID": "7e783c52-e9ca-449d-9754-2bcb400ab9b1",
"PassengerId": "0bd56941-80c1-4525-bb4a-6b216e964a1c",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "7e783c52-e9ca-449d-9754-2bcb400ab9b1",
"PassengerId": "0bd56941-80c1-4525-bb4a-6b216e964a1c",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "8954cda6-90ff-40d9-8de2-c10b3f6458c9",
"PassengerId": "54a6c37a-c240-423e-be0e-383796f8de1a",
"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-03-25T04:04:50.4426164+08:00",
"ID": "8954cda6-90ff-40d9-8de2-c10b3f6458c9",
"PassengerId": "54a6c37a-c240-423e-be0e-383796f8de1a",
"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-03-25T04:04:50.4426164+08:00",
"ID": "bd02e6dd-5381-4927-916e-8b1bc3d1bb5a",
"OrderId": "b475a59a-0ba0-40aa-b0bc-499b126eff28",
"Name": "sample string 4",
"Birthday": "2026-03-25T04:04:50.4426164+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "d6e89200-06b3-4cd5-8292-3044018c5ff8",
"OrderId": "40bc637e-edcb-47b3-8758-c181d47186ce",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "d6e89200-06b3-4cd5-8292-3044018c5ff8",
"OrderId": "40bc637e-edcb-47b3-8758-c181d47186ce",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "211bbd14-62eb-4bab-8fe4-aeabb10a147c",
"OrderId": "2de706af-afce-47c5-9eb0-97b124814a34",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "211bbd14-62eb-4bab-8fe4-aeabb10a147c",
"OrderId": "2de706af-afce-47c5-9eb0-97b124814a34",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "18d3b957-b311-4e36-a827-25209206c26f",
"OrderId": "acef5a0d-0a58-4559-abf9-de5d875cbde9",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-03-25T04:04:50.4426164+08:00",
"ArrivalDate": "2026-03-25T04:04:50.4426164+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-03-25T04:04:50.4426164+08:00",
"ID": "18d3b957-b311-4e36-a827-25209206c26f",
"OrderId": "acef5a0d-0a58-4559-abf9-de5d875cbde9",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-03-25T04:04:50.4426164+08:00",
"ArrivalDate": "2026-03-25T04:04:50.4426164+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": "c7ca3e6a-dade-4aa4-8cd3-edf63fdf1368",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2026-03-25T04:04:50.4426164+08:00",
"ID": "679c9226-efa3-4d91-b2be-74087e10262f",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2026-03-25T04:04:50.4426164+08:00",
"Creater": "sample string 8",
"ID": "50940950-c8d3-4a0a-8c70-d9681ad222f1",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2026-03-25T04:04:50.4426164+08:00",
"ExternalTime": "2026-03-25T04:04:50.4426164+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"
}