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-05-09T19:33:45.3741419+08:00",
"ID": "e208bc5c-0da7-4f46-9948-248dd992b881",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "e81d9a41-7fb8-45aa-adec-86aed449d7b5",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "3431fa0e-31e6-45f9-8ebb-42b9c589f551",
"OrderProviderSettingId": "c3de1933-05a7-409b-b073-37912d7e6aba",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "3431fa0e-31e6-45f9-8ebb-42b9c589f551",
"OrderProviderSettingId": "c3de1933-05a7-409b-b073-37912d7e6aba",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "d2056953-4808-456c-8ee5-18e1cd3b9139",
"OrderCarrierSettingId": "017ec985-e34d-4f8d-b3b9-bf8601c1ceaa",
"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-05-09T19:33:45.3741419+08:00",
"ID": "1388333e-cfd3-40e7-9bcc-d06bc22b0585",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "30aa6e5c-e181-4824-a611-f581e9a93a64",
"PurchaseMemberSettingId": "ed650369-34eb-42be-a372-f775e6ed8fbc",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "30aa6e5c-e181-4824-a611-f581e9a93a64",
"PurchaseMemberSettingId": "ed650369-34eb-42be-a372-f775e6ed8fbc",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-05-09T19:33:45.3741419+08:00",
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "75efdb1a-2ed5-4302-979d-46184d24c1ac",
"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": "e1b058ce-f3cf-46fa-b541-b229ff6678d0",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "1aae2761-2a57-4a21-90a5-8b72b804fba3",
"OrderId": "b12dcd9f-61d2-442f-8517-d52f320bd45a",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "1aae2761-2a57-4a21-90a5-8b72b804fba3",
"OrderId": "b12dcd9f-61d2-442f-8517-d52f320bd45a",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "be33bf1c-e370-4235-b593-f41aa0de4589",
"OrderId": "d987ef49-39e3-4c6f-b523-ff1e8f3e0e22",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "be33bf1c-e370-4235-b593-f41aa0de4589",
"OrderId": "d987ef49-39e3-4c6f-b523-ff1e8f3e0e22",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "f53d8519-c964-415e-ba45-4602c0e8d79e",
"PassengerId": "7a385030-961b-4474-924d-19a7b268cffa",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "f53d8519-c964-415e-ba45-4602c0e8d79e",
"PassengerId": "7a385030-961b-4474-924d-19a7b268cffa",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "52c510e5-a730-4b1b-a538-e504d527272e",
"PassengerId": "c875a122-1bd9-4816-8813-bc0501283aa6",
"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:45.3741419+08:00",
"ID": "52c510e5-a730-4b1b-a538-e504d527272e",
"PassengerId": "c875a122-1bd9-4816-8813-bc0501283aa6",
"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:45.3741419+08:00",
"ID": "450d1900-334f-4c81-95ea-bf3b7b706fa6",
"OrderId": "e3c69451-db4e-480a-9372-e40fbbd76463",
"Name": "sample string 4",
"Birthday": "2026-05-09T19:33:45.3741419+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:45.3741419+08:00",
"ID": "f53d8519-c964-415e-ba45-4602c0e8d79e",
"PassengerId": "7a385030-961b-4474-924d-19a7b268cffa",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "f53d8519-c964-415e-ba45-4602c0e8d79e",
"PassengerId": "7a385030-961b-4474-924d-19a7b268cffa",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-05-09T19:33:45.3741419+08:00",
"ID": "52c510e5-a730-4b1b-a538-e504d527272e",
"PassengerId": "c875a122-1bd9-4816-8813-bc0501283aa6",
"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:45.3741419+08:00",
"ID": "52c510e5-a730-4b1b-a538-e504d527272e",
"PassengerId": "c875a122-1bd9-4816-8813-bc0501283aa6",
"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:45.3741419+08:00",
"ID": "450d1900-334f-4c81-95ea-bf3b7b706fa6",
"OrderId": "e3c69451-db4e-480a-9372-e40fbbd76463",
"Name": "sample string 4",
"Birthday": "2026-05-09T19:33:45.3741419+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "da38dadc-4c5d-4859-b439-5321d01265dc",
"OrderId": "826707ba-e873-46a7-b904-da9c1bf396d6",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "da38dadc-4c5d-4859-b439-5321d01265dc",
"OrderId": "826707ba-e873-46a7-b904-da9c1bf396d6",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:45.3897322+08:00",
"ID": "4d892521-918e-4945-911b-7f0ce5b675e4",
"OrderId": "4196493f-76e8-43db-854d-b0f8ebca74e2",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-05-09T19:33:45.3897322+08:00",
"ID": "4d892521-918e-4945-911b-7f0ce5b675e4",
"OrderId": "4196493f-76e8-43db-854d-b0f8ebca74e2",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2026-05-09T19:33:45.3897322+08:00",
"ID": "ae7aadbc-3040-497a-b630-dc303825fc03",
"OrderId": "d04d33c1-7d68-40ee-a42e-2b4250899943",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-05-09T19:33:45.3897322+08:00",
"ArrivalDate": "2026-05-09T19:33:45.3897322+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-05-09T19:33:45.3897322+08:00",
"ID": "ae7aadbc-3040-497a-b630-dc303825fc03",
"OrderId": "d04d33c1-7d68-40ee-a42e-2b4250899943",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-05-09T19:33:45.3897322+08:00",
"ArrivalDate": "2026-05-09T19:33:45.3897322+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": "1f935bc5-77fc-4a05-808a-5909691c61b5",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2026-05-09T19:33:45.3897322+08:00",
"ID": "c1cbcd44-250c-4f9c-bf76-507169650081",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2026-05-09T19:33:45.3897322+08:00",
"Creater": "sample string 8",
"ID": "ab563cbf-aa79-4bcf-b491-07538acbc289",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2026-05-09T19:33:45.3897322+08:00",
"ExternalTime": "2026-05-09T19:33:45.3897322+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"
}