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-02-04T08:50:40.5552778+08:00",
"ID": "c5b70f16-1baa-4b0e-9500-c16d8bc048d1",
"SiteSettingId": "sample string 3",
"Carrier": "sample string 4",
"Normal": true,
"PurchaseTag": "sample string 6",
"Status": true
},
"ProviderSetting": {
"OrderProviderAutoPaySettings": {
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "0a43772c-b5e6-4d1e-b8f3-04774ba7eba3",
"PaymentTag": "sample string 3",
"SortType": 0,
"UsedBalance": true
},
"OrderProviderExpandSettings": [
{
"ID": "ca89135e-a091-4cbf-910c-067a6a9028fd",
"OrderProviderSettingId": "745ca2b5-a65b-4f96-a51e-26546ec5b5a8",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "ca89135e-a091-4cbf-910c-067a6a9028fd",
"OrderProviderSettingId": "745ca2b5-a65b-4f96-a51e-26546ec5b5a8",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "78dbd29d-f81c-4e5e-b797-5a85a5be56da",
"OrderCarrierSettingId": "b6e48e84-266a-409c-95ea-2a27d0311cf2",
"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-02-04T08:50:40.5552778+08:00",
"ID": "7cd51722-6247-4391-8523-c5eed5b4d401",
"Password": "sample string 6",
"MinBalance": 7.1,
"MaxBalance": 8.1,
"Remarks": "sample string 9"
},
"PurchaseMemberExpandSettings": [
{
"ID": "2dca30fe-0399-4a0b-8ea3-7c8881edfe6f",
"PurchaseMemberSettingId": "d49c37a6-1957-4380-9cd5-e91ede6d1dc1",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "2dca30fe-0399-4a0b-8ea3-7c8881edfe6f",
"PurchaseMemberSettingId": "d49c37a6-1957-4380-9cd5-e91ede6d1dc1",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"CompanyId": "sample string 1",
"LastUsedTime": "2026-02-04T08:50:40.5552778+08:00",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "13ac7fb9-a05c-495b-b4c8-5cd466ebfdf7",
"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": "61af66d9-3d52-41d2-8d30-54a49a4c580c",
"Creater": "sample string 2"
},
"OContacts": [
{
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "78b5479c-71d7-447c-96b8-033cb31ca3b8",
"OrderId": "d80dbcd3-2784-4d2e-babd-77be3c40207e",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
},
{
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "78b5479c-71d7-447c-96b8-033cb31ca3b8",
"OrderId": "d80dbcd3-2784-4d2e-babd-77be3c40207e",
"ContactUser": "sample string 4",
"ContactPhone": "sample string 5"
}
],
"PurchaseRoutes": [
{
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "296046dd-7226-466b-a927-535f593263f6",
"OrderId": "a84a5834-bb88-49a3-9d56-5a3c1e05f175",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
},
{
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "296046dd-7226-466b-a927-535f593263f6",
"OrderId": "a84a5834-bb88-49a3-9d56-5a3c1e05f175",
"PurchaseTag": "sample string 5",
"Remarks": "sample string 6"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "e865ffa7-480d-49c3-a023-86f030b49056",
"PassengerId": "a9100ce8-de44-4459-84bf-10bddf6d85f1",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "e865ffa7-480d-49c3-a023-86f030b49056",
"PassengerId": "a9100ce8-de44-4459-84bf-10bddf6d85f1",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "ca8200e3-608b-44ad-8874-f64d25b22f84",
"PassengerId": "dab736e2-b490-4131-9d91-7111fb77bed9",
"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-02-04T08:50:40.5552778+08:00",
"ID": "ca8200e3-608b-44ad-8874-f64d25b22f84",
"PassengerId": "dab736e2-b490-4131-9d91-7111fb77bed9",
"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-02-04T08:50:40.5552778+08:00",
"ID": "ec5687c1-c134-4748-89fc-469692f6939a",
"OrderId": "5627cd2e-60e3-446b-bec2-e2152a0350e0",
"Name": "sample string 4",
"Birthday": "2026-02-04T08:50:40.5552778+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-02-04T08:50:40.5552778+08:00",
"ID": "e865ffa7-480d-49c3-a023-86f030b49056",
"PassengerId": "a9100ce8-de44-4459-84bf-10bddf6d85f1",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "e865ffa7-480d-49c3-a023-86f030b49056",
"PassengerId": "a9100ce8-de44-4459-84bf-10bddf6d85f1",
"TicketNumber": "sample string 5",
"Posted": true,
"Remarks": "sample string 7"
}
],
"OTotalPrices": [
{
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "ca8200e3-608b-44ad-8874-f64d25b22f84",
"PassengerId": "dab736e2-b490-4131-9d91-7111fb77bed9",
"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-02-04T08:50:40.5552778+08:00",
"ID": "ca8200e3-608b-44ad-8874-f64d25b22f84",
"PassengerId": "dab736e2-b490-4131-9d91-7111fb77bed9",
"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-02-04T08:50:40.5552778+08:00",
"ID": "ec5687c1-c134-4748-89fc-469692f6939a",
"OrderId": "5627cd2e-60e3-446b-bec2-e2152a0350e0",
"Name": "sample string 4",
"Birthday": "2026-02-04T08:50:40.5552778+08:00",
"CardType": 0,
"CardNo": "sample string 5",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 6"
}
],
"OrderExpands": [
{
"ID": "db3e3ef5-3481-4bdf-950c-446807142287",
"OrderId": "5d7fe275-159f-45f2-8a57-c1e8c9eceebc",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
},
{
"ID": "db3e3ef5-3481-4bdf-950c-446807142287",
"OrderId": "5d7fe275-159f-45f2-8a57-c1e8c9eceebc",
"SettingKey": "sample string 3",
"SettingValue": "sample string 4"
}
],
"OrderPayments": [
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "0f3ada5b-6240-484d-a8d3-36c32e421464",
"OrderId": "64611243-9154-41a4-bd5a-03b1d0a572df",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
},
{
"RecordType": 0,
"Creater": "sample string 1",
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "0f3ada5b-6240-484d-a8d3-36c32e421464",
"OrderId": "64611243-9154-41a4-bd5a-03b1d0a572df",
"PaymentType": 0,
"TotalPrice": 5.1,
"TransactionId": "sample string 6",
"Reconciled": true,
"Remarks": "sample string 8"
}
],
"OSegments": [
{
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "5c6135d1-47f9-45a2-8810-84e8a16dcf9a",
"OrderId": "a3bbd15a-6a2d-44a5-ba8b-c35680f6fa77",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-02-04T08:50:40.5552778+08:00",
"ArrivalDate": "2026-02-04T08:50:40.5552778+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-02-04T08:50:40.5552778+08:00",
"ID": "5c6135d1-47f9-45a2-8810-84e8a16dcf9a",
"OrderId": "a3bbd15a-6a2d-44a5-ba8b-c35680f6fa77",
"Sequence": 4,
"Carrier": "sample string 5",
"DepartureAirport": "sample string 6",
"ArrivalAirport": "sample string 7",
"DepartureDate": "2026-02-04T08:50:40.5552778+08:00",
"ArrivalDate": "2026-02-04T08:50:40.5552778+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": "80635849-b691-4824-b4ba-f736cb9383dc",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"Time": "2026-02-04T08:50:40.5552778+08:00",
"ID": "015c2a70-8b48-4653-b323-4ace7b04bd45",
"Remarks": "sample string 3",
"QuotationId": "sample string 4",
"ProductMark": "sample string 5",
"Creater": "sample string 6"
},
"OrderInternalNumber": "sample string 6",
"OrderSource": 0,
"InternalTime": "2026-02-04T08:50:40.5552778+08:00",
"Creater": "sample string 8",
"ID": "630bcab1-1627-4be0-8fea-95b258471a27",
"SiteId": "sample string 10",
"OrderExternalNumber": "sample string 11",
"LatestTime": "2026-02-04T08:50:40.5552778+08:00",
"ExternalTime": "2026-02-04T08:50:40.5552778+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"
}