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-11-01T21:54:10.3819752+08:00",
"ID": "4db62cd0-deeb-4569-b589-dba8c22729d0",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "c855d5cb-f331-42c6-be47-e6e9396c6597",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "bccf57e4-6e0d-4266-a677-4b817ee445f5",
"OrderProviderSettingId": "8ab1e53c-bffe-4359-8323-63ce615b697c",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "bccf57e4-6e0d-4266-a677-4b817ee445f5",
"OrderProviderSettingId": "8ab1e53c-bffe-4359-8323-63ce615b697c",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "e4e74f1f-753d-4d5b-a6b8-cc2010212e1b",
"OrderCarrierSettingId": "ea58655c-c870-4167-ac02-fcc582cd51b6",
"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-11-01T21:54:10.3819752+08:00",
"ID": "62c27a48-36e0-4e3a-afd1-e657ae7e001d",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "bfe59789-77f2-427a-bdd3-566889b99d68",
"PurchaseMemberSettingId": "f47ed896-5ce6-4257-bd8d-cb08e354b863",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "bfe59789-77f2-427a-bdd3-566889b99d68",
"PurchaseMemberSettingId": "f47ed896-5ce6-4257-bd8d-cb08e354b863",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2025-11-01T21:54:10.3819752+08:00",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "a35f3bb2-a805-4807-aca2-cc6052677bf2",
"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": "c1d14c74-50f2-4f61-a45c-04f5f632533e",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "7ffe94cb-c063-4363-a7e8-fe593f0fd0f5",
"OrderId": "c9c4b5bb-26ef-4e9d-9fe9-a80fca6fc4f8",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "7ffe94cb-c063-4363-a7e8-fe593f0fd0f5",
"OrderId": "c9c4b5bb-26ef-4e9d-9fe9-a80fca6fc4f8",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "26d859e8-1a5e-4f1a-aa68-5aef07f54631",
"OrderId": "cb4877bd-58b1-4a45-9d5c-3bf61cb8a53a",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "26d859e8-1a5e-4f1a-aa68-5aef07f54631",
"OrderId": "cb4877bd-58b1-4a45-9d5c-3bf61cb8a53a",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "7e18f886-108c-4097-935f-e84938dc707f",
"PassengerId": "26cadcaf-403a-4de6-ab29-f7d490bef1d9",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "7e18f886-108c-4097-935f-e84938dc707f",
"PassengerId": "26cadcaf-403a-4de6-ab29-f7d490bef1d9",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "ecd9bd1a-0387-4a3e-b375-d22f8d22cafe",
"PassengerId": "874b403e-59ac-49b7-ac0d-e2e9876dff20",
"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-11-01T21:54:10.3819752+08:00",
"ID": "ecd9bd1a-0387-4a3e-b375-d22f8d22cafe",
"PassengerId": "874b403e-59ac-49b7-ac0d-e2e9876dff20",
"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-11-01T21:54:10.3819752+08:00",
"ID": "a4685518-dc20-4006-ae2e-fde874bddd36",
"OrderId": "f2e75646-6bc9-4882-add3-2d03bae6fc55",
"Name": "sample string 4",
"Birthday": "2025-11-01T21:54:10.3819752+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-11-01T21:54:10.3819752+08:00",
"ID": "7e18f886-108c-4097-935f-e84938dc707f",
"PassengerId": "26cadcaf-403a-4de6-ab29-f7d490bef1d9",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "7e18f886-108c-4097-935f-e84938dc707f",
"PassengerId": "26cadcaf-403a-4de6-ab29-f7d490bef1d9",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "ecd9bd1a-0387-4a3e-b375-d22f8d22cafe",
"PassengerId": "874b403e-59ac-49b7-ac0d-e2e9876dff20",
"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-11-01T21:54:10.3819752+08:00",
"ID": "ecd9bd1a-0387-4a3e-b375-d22f8d22cafe",
"PassengerId": "874b403e-59ac-49b7-ac0d-e2e9876dff20",
"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-11-01T21:54:10.3819752+08:00",
"ID": "a4685518-dc20-4006-ae2e-fde874bddd36",
"OrderId": "f2e75646-6bc9-4882-add3-2d03bae6fc55",
"Name": "sample string 4",
"Birthday": "2025-11-01T21:54:10.3819752+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "2cce9278-74b9-4848-99e9-e0cb9a45688c",
"OrderId": "6373285a-62b2-4913-8009-c8902f07e21d",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "2cce9278-74b9-4848-99e9-e0cb9a45688c",
"OrderId": "6373285a-62b2-4913-8009-c8902f07e21d",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "1353f4e0-7bb1-4166-9b9e-5f51de23ef3a",
"OrderId": "f507e8b1-3a4c-46f0-b93f-b3480f6a725c",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "1353f4e0-7bb1-4166-9b9e-5f51de23ef3a",
"OrderId": "f507e8b1-3a4c-46f0-b93f-b3480f6a725c",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "8245f338-2a0e-4222-8088-dd8efd935d4c",
"OrderId": "5486e0c8-23ba-47d6-ae63-d7a73ca68eb2",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2025-11-01T21:54:10.3819752+08:00",
"ArrivalDate": "2025-11-01T21:54:10.3819752+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-11-01T21:54:10.3819752+08:00",
"ID": "8245f338-2a0e-4222-8088-dd8efd935d4c",
"OrderId": "5486e0c8-23ba-47d6-ae63-d7a73ca68eb2",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2025-11-01T21:54:10.3819752+08:00",
"ArrivalDate": "2025-11-01T21:54:10.3819752+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": "21094bd5-0635-4207-b514-582943246941",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2025-11-01T21:54:10.3819752+08:00",
"ID": "26630c51-e345-4e0c-bb09-c5173cec7b34",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2025-11-01T21:54:10.3819752+08:00",
"Creater": "sample string 8",
"ID": "27b2ecaa-3cb2-4ecf-ba60-f936a177919a",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2025-11-01T21:54:10.3819752+08:00",
"ExternalTime": "2025-11-01T21:54:10.3819752+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"
}