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-06-24T05:32:12.0178344+08:00",
"ID": "b51cf9d6-5b2d-481c-98c1-621bdd4cfc9c",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "79ebe04c-2070-4195-9062-545bf0a73102",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "6a75bd34-8f38-48b4-8252-85784e14b43e",
"OrderProviderSettingId": "ebe3342f-4ee2-4000-932d-eaecdf779f3e",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "6a75bd34-8f38-48b4-8252-85784e14b43e",
"OrderProviderSettingId": "ebe3342f-4ee2-4000-932d-eaecdf779f3e",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "3e6b755e-effe-4c19-b604-7a6e21670a8a",
"OrderCarrierSettingId": "c516eb0e-d240-4f70-8ec6-8dd251fe8fa0",
"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-06-24T05:32:12.0178344+08:00",
"ID": "5bff79ba-905b-4e07-afd9-1dbd149d444c",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "258cce7d-6b29-4f56-ad1e-c678ca86147f",
"PurchaseMemberSettingId": "15e465f6-d98f-4c36-b00a-d52471b1b161",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "258cce7d-6b29-4f56-ad1e-c678ca86147f",
"PurchaseMemberSettingId": "15e465f6-d98f-4c36-b00a-d52471b1b161",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-06-24T05:32:12.0178344+08:00",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "cc0fddb7-2ed1-44a9-ac86-175fea859f01",
"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": "5dcf4510-8e28-40ef-9213-c6f12bb7851c",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "0a0b9632-c120-4cdb-93a4-c009bd3eaf78",
"OrderId": "e81d5f11-40c5-4ae6-9f4c-afb14313f816",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "0a0b9632-c120-4cdb-93a4-c009bd3eaf78",
"OrderId": "e81d5f11-40c5-4ae6-9f4c-afb14313f816",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "6660cd8a-b02e-42cd-869b-e8a3841632b4",
"OrderId": "76f92d7d-7262-4517-97c2-35ed4f6f132c",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "6660cd8a-b02e-42cd-869b-e8a3841632b4",
"OrderId": "76f92d7d-7262-4517-97c2-35ed4f6f132c",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "c5c8af5a-9181-46dc-ad8b-15ab0a62b25a",
"PassengerId": "286e8080-b0ce-40ac-a67f-d9000c573d8d",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "c5c8af5a-9181-46dc-ad8b-15ab0a62b25a",
"PassengerId": "286e8080-b0ce-40ac-a67f-d9000c573d8d",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "075334e6-0b72-4bea-b176-bf638adf7c7d",
"PassengerId": "0e30cd0c-8a85-490f-bc45-59fa60aebb30",
"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-06-24T05:32:12.0178344+08:00",
"ID": "075334e6-0b72-4bea-b176-bf638adf7c7d",
"PassengerId": "0e30cd0c-8a85-490f-bc45-59fa60aebb30",
"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-06-24T05:32:12.0178344+08:00",
"ID": "3244c14a-a3fa-446d-9219-ce959498113c",
"OrderId": "edcf4313-9636-4c29-bd42-bbc498e1ffe3",
"Name": "sample string 4",
"Birthday": "2026-06-24T05:32:12.0178344+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-06-24T05:32:12.0178344+08:00",
"ID": "c5c8af5a-9181-46dc-ad8b-15ab0a62b25a",
"PassengerId": "286e8080-b0ce-40ac-a67f-d9000c573d8d",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "c5c8af5a-9181-46dc-ad8b-15ab0a62b25a",
"PassengerId": "286e8080-b0ce-40ac-a67f-d9000c573d8d",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "075334e6-0b72-4bea-b176-bf638adf7c7d",
"PassengerId": "0e30cd0c-8a85-490f-bc45-59fa60aebb30",
"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-06-24T05:32:12.0178344+08:00",
"ID": "075334e6-0b72-4bea-b176-bf638adf7c7d",
"PassengerId": "0e30cd0c-8a85-490f-bc45-59fa60aebb30",
"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-06-24T05:32:12.0178344+08:00",
"ID": "3244c14a-a3fa-446d-9219-ce959498113c",
"OrderId": "edcf4313-9636-4c29-bd42-bbc498e1ffe3",
"Name": "sample string 4",
"Birthday": "2026-06-24T05:32:12.0178344+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "fe258cc7-2d42-44d2-878d-0904c2591e33",
"OrderId": "cbff827f-36f1-4d7a-9c2c-d65f79b6f7ba",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "fe258cc7-2d42-44d2-878d-0904c2591e33",
"OrderId": "cbff827f-36f1-4d7a-9c2c-d65f79b6f7ba",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "94f41e96-9e75-4250-9179-12e9f855accd",
"OrderId": "857b9ed4-bc2b-4b09-bf8e-1c731643ac04",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "94f41e96-9e75-4250-9179-12e9f855accd",
"OrderId": "857b9ed4-bc2b-4b09-bf8e-1c731643ac04",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "bcbbf28f-2a66-4a92-a570-df1c374f1652",
"OrderId": "73e8f6be-fb83-4886-b6c0-3fc65a839725",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-06-24T05:32:12.0178344+08:00",
"ArrivalDate": "2026-06-24T05:32:12.0178344+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-06-24T05:32:12.0178344+08:00",
"ID": "bcbbf28f-2a66-4a92-a570-df1c374f1652",
"OrderId": "73e8f6be-fb83-4886-b6c0-3fc65a839725",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-06-24T05:32:12.0178344+08:00",
"ArrivalDate": "2026-06-24T05:32:12.0178344+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": "66855449-0bf8-4894-b41d-3c461123ab2d",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2026-06-24T05:32:12.0178344+08:00",
"ID": "e9f96d7b-0911-4c1e-a3f1-5eb0d924a03f",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2026-06-24T05:32:12.0178344+08:00",
"Creater": "sample string 8",
"ID": "aeccfe99-8b19-4a6d-8462-4435be0813b3",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2026-06-24T05:32:12.0178344+08:00",
"ExternalTime": "2026-06-24T05:32:12.0178344+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"
}