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": "2025-12-18T09:48:56.3140173+08:00",
"ID": "6f394aa1-a726-4e3c-bdf5-4ebd483b0941",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "3a374b4d-3dce-41cb-8b74-a5be2af2a56d",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "cfa7cc69-4577-4c21-98cc-17286f0330ad",
"OrderProviderSettingId": "6bb63dc1-9346-4958-9722-21b38721e129",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "cfa7cc69-4577-4c21-98cc-17286f0330ad",
"OrderProviderSettingId": "6bb63dc1-9346-4958-9722-21b38721e129",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "6021e96e-945a-4668-81bc-397169e4defa",
"OrderCarrierSettingId": "07857aa7-e3aa-4001-b173-d00896ce8404",
"Sequence": 4,
"ProviderCode": "sample string 5",
"MatchCabin": true,
"PriceChangeInterval": 7,
"Status": true
},
"MemberSetting": {
"PurchaseMemberConfigs": {
"ValidBalance": 1.1,
"UsedBalance": 2.1,
"CurrentBalance": 3.1,
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "8ff49be9-013a-454b-b3f9-6b5620a12bfe",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "e760e035-3288-48b0-a109-71f33d3e73ac",
"PurchaseMemberSettingId": "bad0fdba-b278-418d-aea3-d129225aa199",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "e760e035-3288-48b0-a109-71f33d3e73ac",
"PurchaseMemberSettingId": "bad0fdba-b278-418d-aea3-d129225aa199",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2025-12-18T09:48:56.3140173+08:00",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "fe5c2f14-31e6-4a48-b9dc-932d66b32fbc",
"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": "9aae2fe1-6ec3-47d3-a5ad-5f16073a1cda",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "70ff0314-f992-4877-8eac-32fbd96cef4e",
"OrderId": "4008fd92-8dc8-4f65-a9d7-d9e9ee7b0d21",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "70ff0314-f992-4877-8eac-32fbd96cef4e",
"OrderId": "4008fd92-8dc8-4f65-a9d7-d9e9ee7b0d21",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "0de645ac-dcc9-4719-b267-2a34641c572a",
"OrderId": "32e44e98-c1d1-4578-85be-21099947fb66",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "0de645ac-dcc9-4719-b267-2a34641c572a",
"OrderId": "32e44e98-c1d1-4578-85be-21099947fb66",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "09e24d5a-8609-4ae7-a7b5-a76e663c24db",
"PassengerId": "64cecf37-3610-48c5-a12b-fc09948bdd11",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "09e24d5a-8609-4ae7-a7b5-a76e663c24db",
"PassengerId": "64cecf37-3610-48c5-a12b-fc09948bdd11",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "43f28b36-92f5-4a48-b89b-db5a34d100fa",
"PassengerId": "c9af1ff1-bf75-4bd9-9290-dab250cae580",
"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:48:56.3140173+08:00",
"ID": "43f28b36-92f5-4a48-b89b-db5a34d100fa",
"PassengerId": "c9af1ff1-bf75-4bd9-9290-dab250cae580",
"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:48:56.3140173+08:00",
"ID": "d5d03db3-531c-4176-9c6f-40224afae4e7",
"OrderId": "c3c10633-42cc-4f41-8d1b-a4f5f624dcb7",
"Name": "sample string 4",
"Birthday": "2025-12-18T09:48:56.3140173+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:48:56.3140173+08:00",
"ID": "09e24d5a-8609-4ae7-a7b5-a76e663c24db",
"PassengerId": "64cecf37-3610-48c5-a12b-fc09948bdd11",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "09e24d5a-8609-4ae7-a7b5-a76e663c24db",
"PassengerId": "64cecf37-3610-48c5-a12b-fc09948bdd11",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "43f28b36-92f5-4a48-b89b-db5a34d100fa",
"PassengerId": "c9af1ff1-bf75-4bd9-9290-dab250cae580",
"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:48:56.3140173+08:00",
"ID": "43f28b36-92f5-4a48-b89b-db5a34d100fa",
"PassengerId": "c9af1ff1-bf75-4bd9-9290-dab250cae580",
"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:48:56.3140173+08:00",
"ID": "d5d03db3-531c-4176-9c6f-40224afae4e7",
"OrderId": "c3c10633-42cc-4f41-8d1b-a4f5f624dcb7",
"Name": "sample string 4",
"Birthday": "2025-12-18T09:48:56.3140173+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "9d50c90a-2b5f-4cc9-8204-902283e01639",
"OrderId": "a72fc108-4fdc-496c-97ad-99ca74c6bac4",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "9d50c90a-2b5f-4cc9-8204-902283e01639",
"OrderId": "a72fc108-4fdc-496c-97ad-99ca74c6bac4",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "b2214dd9-c682-4ce4-b17c-17b148c9cf67",
"OrderId": "eb1bcea8-1680-400d-96d0-47159184a818",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "b2214dd9-c682-4ce4-b17c-17b148c9cf67",
"OrderId": "eb1bcea8-1680-400d-96d0-47159184a818",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "4fb41042-f19f-45ea-b236-b937d1b4807b",
"OrderId": "bd917e7c-23c4-42cb-8402-1144e32e9765",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2025-12-18T09:48:56.3140173+08:00",
"ArrivalDate": "2025-12-18T09:48:56.3140173+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": "2025-12-18T09:48:56.3140173+08:00",
"ID": "4fb41042-f19f-45ea-b236-b937d1b4807b",
"OrderId": "bd917e7c-23c4-42cb-8402-1144e32e9765",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2025-12-18T09:48:56.3140173+08:00",
"ArrivalDate": "2025-12-18T09:48:56.3140173+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": "98af6420-5748-4898-99aa-67857708a9d7",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2025-12-18T09:48:56.3140173+08:00",
"ID": "846f14f3-7ebc-4f88-a600-d8cf7022cd59",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2025-12-18T09:48:56.3140173+08:00",
"Creater": "sample string 8",
"ID": "d10bef3f-f956-47d0-9a40-9b42a1c8b670",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2025-12-18T09:48:56.3140173+08:00",
"ExternalTime": "2025-12-18T09:48:56.3140173+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"
}