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.AutoQuotedRequestModelName | 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-07-01T13:28:23.6835655+08:00", "ID": "5f879732-68d1-41a5-a782-572ab14ac09d", "SiteSettingId": "sample string 3", "Carrier": "sample string 4", "Normal": true, "PurchaseTag": "sample string 6", "Status": true }, "ProviderSetting": { "OrderProviderAutoPaySettings": { "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "2e640606-4ff2-4fbd-9ab4-f311164a003a", "PaymentTag": "sample string 3", "SortType": 0, "UsedBalance": true }, "OrderProviderExpandSettings": [ { "ID": "67dcf922-6c6d-431d-aa13-931c85cdac99", "OrderProviderSettingId": "5c647f82-73f7-418d-91af-108bd9e58681", "SettingKey": "sample string 3", "SettingValue": "sample string 4" }, { "ID": "67dcf922-6c6d-431d-aa13-931c85cdac99", "OrderProviderSettingId": "5c647f82-73f7-418d-91af-108bd9e58681", "SettingKey": "sample string 3", "SettingValue": "sample string 4" } ], "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "e39ccaad-1ddb-4c05-aae8-069a7de69dd6", "OrderCarrierSettingId": "2983406b-9f78-4639-b3ed-dea888d87948", "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-07-01T13:28:23.6835655+08:00", "ID": "139b94b2-4cf6-4304-9bbd-73b7846da805", "Password": "sample string 6", "MinBalance": 7.1, "MaxBalance": 8.1, "Remarks": "sample string 9" }, "PurchaseMemberExpandSettings": [ { "ID": "56bbe1f3-df55-4729-b088-4edd5ac0c0cd", "PurchaseMemberSettingId": "2abab857-4983-4237-bb9b-1f6c0d4d9b7d", "SettingKey": "sample string 3", "SettingValue": "sample string 4" }, { "ID": "56bbe1f3-df55-4729-b088-4edd5ac0c0cd", "PurchaseMemberSettingId": "2abab857-4983-4237-bb9b-1f6c0d4d9b7d", "SettingKey": "sample string 3", "SettingValue": "sample string 4" } ], "CompanyId": "sample string 1", "LastUsedTime": "2025-07-01T13:28:23.6835655+08:00", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "e791aee9-654c-43cd-bd73-1393e4113a99", "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": "1eaf64cd-0267-4eac-98c2-0407bd60f642", "Creater": "sample string 2" }, "OContacts": [ { "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "46534980-cd8d-4149-85fe-3156ddd3a3c1", "OrderId": "7b707d3d-b99b-49b7-9fb4-30f851bc9407", "ContactUser": "sample string 4", "ContactPhone": "sample string 5" }, { "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "46534980-cd8d-4149-85fe-3156ddd3a3c1", "OrderId": "7b707d3d-b99b-49b7-9fb4-30f851bc9407", "ContactUser": "sample string 4", "ContactPhone": "sample string 5" } ], "PurchaseRoutes": [ { "Creater": "sample string 1", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "244af21b-c9d0-4dd5-939b-9a76fe9a15ba", "OrderId": "09da7f1d-eaca-41b4-9deb-6fc2775fdade", "PurchaseTag": "sample string 5", "Remarks": "sample string 6" }, { "Creater": "sample string 1", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "244af21b-c9d0-4dd5-939b-9a76fe9a15ba", "OrderId": "09da7f1d-eaca-41b4-9deb-6fc2775fdade", "PurchaseTag": "sample string 5", "Remarks": "sample string 6" } ], "OPassengers": [ { "TicketNumbers": [ { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "3980a8f5-cef4-45dc-9cb0-990e74b0b3e2", "PassengerId": "55daa213-99d8-4ebc-9c4b-b4dca07310ad", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" }, { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "3980a8f5-cef4-45dc-9cb0-990e74b0b3e2", "PassengerId": "55daa213-99d8-4ebc-9c4b-b4dca07310ad", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" } ], "OTotalPrices": [ { "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "dde7d505-e93d-4146-b32a-21a4e15ed750", "PassengerId": "a2b2a66d-db02-41c2-b4bb-7b8da2b78e10", "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-07-01T13:28:23.6835655+08:00", "ID": "dde7d505-e93d-4146-b32a-21a4e15ed750", "PassengerId": "a2b2a66d-db02-41c2-b4bb-7b8da2b78e10", "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-07-01T13:28:23.6835655+08:00", "ID": "7daf0672-abf1-46f3-b226-dc181b885cb4", "OrderId": "823c8e1c-c31f-493a-baa7-6275ac934f3c", "Name": "sample string 4", "Birthday": "2025-07-01T13:28:23.6835655+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-07-01T13:28:23.6835655+08:00", "ID": "3980a8f5-cef4-45dc-9cb0-990e74b0b3e2", "PassengerId": "55daa213-99d8-4ebc-9c4b-b4dca07310ad", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" }, { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "3980a8f5-cef4-45dc-9cb0-990e74b0b3e2", "PassengerId": "55daa213-99d8-4ebc-9c4b-b4dca07310ad", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" } ], "OTotalPrices": [ { "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "dde7d505-e93d-4146-b32a-21a4e15ed750", "PassengerId": "a2b2a66d-db02-41c2-b4bb-7b8da2b78e10", "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-07-01T13:28:23.6835655+08:00", "ID": "dde7d505-e93d-4146-b32a-21a4e15ed750", "PassengerId": "a2b2a66d-db02-41c2-b4bb-7b8da2b78e10", "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-07-01T13:28:23.6835655+08:00", "ID": "7daf0672-abf1-46f3-b226-dc181b885cb4", "OrderId": "823c8e1c-c31f-493a-baa7-6275ac934f3c", "Name": "sample string 4", "Birthday": "2025-07-01T13:28:23.6835655+08:00", "CardType": 0, "CardNo": "sample string 5", "SexType": 0, "PassengerType": 0, "ContactPhone": "sample string 6" } ], "OrderExpands": [ { "ID": "82fadaaa-5380-48ba-977d-269c28ff34d9", "OrderId": "daee8452-be87-4ab7-ae27-f88ece385454", "SettingKey": "sample string 3", "SettingValue": "sample string 4" }, { "ID": "82fadaaa-5380-48ba-977d-269c28ff34d9", "OrderId": "daee8452-be87-4ab7-ae27-f88ece385454", "SettingKey": "sample string 3", "SettingValue": "sample string 4" } ], "OrderPayments": [ { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "bc621f88-f458-433a-82f4-93623b8632f3", "OrderId": "364c51c5-392b-4c5e-9492-9f902212f52d", "PaymentType": 0, "TotalPrice": 5.1, "TransactionId": "sample string 6", "Reconciled": true, "Remarks": "sample string 8" }, { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "bc621f88-f458-433a-82f4-93623b8632f3", "OrderId": "364c51c5-392b-4c5e-9492-9f902212f52d", "PaymentType": 0, "TotalPrice": 5.1, "TransactionId": "sample string 6", "Reconciled": true, "Remarks": "sample string 8" } ], "OSegments": [ { "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "b7195c0f-c7a1-4e68-a9e0-24f9a20d063c", "OrderId": "ec4082df-2f1b-411b-aef3-be3a588f0aaa", "Sequence": 4, "Carrier": "sample string 5", "DepartureAirport": "sample string 6", "ArrivalAirport": "sample string 7", "DepartureDate": "2025-07-01T13:28:23.6835655+08:00", "ArrivalDate": "2025-07-01T13:28:23.6835655+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-07-01T13:28:23.6835655+08:00", "ID": "b7195c0f-c7a1-4e68-a9e0-24f9a20d063c", "OrderId": "ec4082df-2f1b-411b-aef3-be3a588f0aaa", "Sequence": 4, "Carrier": "sample string 5", "DepartureAirport": "sample string 6", "ArrivalAirport": "sample string 7", "DepartureDate": "2025-07-01T13:28:23.6835655+08:00", "ArrivalDate": "2025-07-01T13:28:23.6835655+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": "cbede158-822c-4050-9a99-d4745d9d2b02", "ProviderCode": "sample string 2", "PriceChangeInterval": 3 }, "QuotationSources": { "Time": "2025-07-01T13:28:23.6835655+08:00", "ID": "0c0bfbdf-d800-4cb4-86ca-acf3842c0e08", "Remarks": "sample string 3", "QuotationId": "sample string 4", "ProductMark": "sample string 5", "Creater": "sample string 6" }, "OrderInternalNumber": "sample string 6", "OrderSource": 0, "InternalTime": "2025-07-01T13:28:23.6835655+08:00", "Creater": "sample string 8", "ID": "2d4be972-287d-4aa7-8c6d-92db7ec8bc46", "SiteId": "sample string 10", "OrderExternalNumber": "sample string 11", "LatestTime": "2025-07-01T13:28:23.6835655+08:00", "ExternalTime": "2025-07-01T13:28:23.6835655+08:00" }
Response Information
Resource Description
手动指定数据源创建采购单
SpeedPower.Utility.Models.Helper.ResultMessageName | Description | Type | Additional information |
---|---|---|---|
Succeed |
操作是否成功 |
boolean |
None. |
Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Succeed": true, "Message": "sample string 2" }