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-04-03T19:37:10.4035861+08:00", "ID": "39af4e2d-0d01-47db-a1c7-dc5a2d5cee35", "SiteSettingId": "sample string 3", "Carrier": "sample string 4", "Normal": true, "PurchaseTag": "sample string 6", "Status": true }, "ProviderSetting": { "OrderProviderAutoPaySettings": { "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "94e324ed-d81a-42b3-afb0-ade80c5e787b", "PaymentTag": "sample string 3", "SortType": 0, "UsedBalance": true }, "OrderProviderExpandSettings": [ { "ID": "9ff9b21c-b1ee-4ca8-97ed-84344d69ffe5", "OrderProviderSettingId": "716912b6-db7c-4755-8287-2cffc704d8b5", "SettingKey": "sample string 3", "SettingValue": "sample string 4" }, { "ID": "9ff9b21c-b1ee-4ca8-97ed-84344d69ffe5", "OrderProviderSettingId": "716912b6-db7c-4755-8287-2cffc704d8b5", "SettingKey": "sample string 3", "SettingValue": "sample string 4" } ], "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "4c437f68-989e-41c4-8fd9-29f43a9a332f", "OrderCarrierSettingId": "0cdf5418-ffdc-41c7-93e8-ae6585f63cdb", "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-04-03T19:37:10.4035861+08:00", "ID": "741fdeb1-ba19-4b8b-893d-4ff69d7f7d62", "Password": "sample string 6", "MinBalance": 7.1, "MaxBalance": 8.1, "Remarks": "sample string 9" }, "PurchaseMemberExpandSettings": [ { "ID": "53533b98-128f-4a46-8f12-12f1ff886020", "PurchaseMemberSettingId": "00d50fc4-4918-4856-9ee7-f571befaff3a", "SettingKey": "sample string 3", "SettingValue": "sample string 4" }, { "ID": "53533b98-128f-4a46-8f12-12f1ff886020", "PurchaseMemberSettingId": "00d50fc4-4918-4856-9ee7-f571befaff3a", "SettingKey": "sample string 3", "SettingValue": "sample string 4" } ], "CompanyId": "sample string 1", "LastUsedTime": "2025-04-03T19:37:10.4035861+08:00", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "fdd610c5-3914-40c2-934f-ee2c6779f8fa", "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": "95629a90-d075-4223-8b75-23d528538d57", "Creater": "sample string 2" }, "OContacts": [ { "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "922a3b88-b65f-4604-8abb-c11be98435a2", "OrderId": "e273fd56-26f7-404d-b8c5-38d57301f83b", "ContactUser": "sample string 4", "ContactPhone": "sample string 5" }, { "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "922a3b88-b65f-4604-8abb-c11be98435a2", "OrderId": "e273fd56-26f7-404d-b8c5-38d57301f83b", "ContactUser": "sample string 4", "ContactPhone": "sample string 5" } ], "PurchaseRoutes": [ { "Creater": "sample string 1", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "341b5b49-9938-4408-b317-7ca3466f3fee", "OrderId": "c56e773a-0ab1-480a-9bee-602428d97a6d", "PurchaseTag": "sample string 5", "Remarks": "sample string 6" }, { "Creater": "sample string 1", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "341b5b49-9938-4408-b317-7ca3466f3fee", "OrderId": "c56e773a-0ab1-480a-9bee-602428d97a6d", "PurchaseTag": "sample string 5", "Remarks": "sample string 6" } ], "OPassengers": [ { "TicketNumbers": [ { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "09de4f4b-6250-48e9-bf53-4e2fa9266131", "PassengerId": "db20ae0b-e9bd-4d40-bab4-e587a372d4df", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" }, { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "09de4f4b-6250-48e9-bf53-4e2fa9266131", "PassengerId": "db20ae0b-e9bd-4d40-bab4-e587a372d4df", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" } ], "OTotalPrices": [ { "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "c6f16435-6d68-469b-b4bc-3b060b0ad756", "PassengerId": "53bc961e-b7e0-4021-9af1-fed9c878dd25", "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-04-03T19:37:10.4035861+08:00", "ID": "c6f16435-6d68-469b-b4bc-3b060b0ad756", "PassengerId": "53bc961e-b7e0-4021-9af1-fed9c878dd25", "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-04-03T19:37:10.4035861+08:00", "ID": "175c0c9e-89a0-4bf9-a08d-e7dae4366068", "OrderId": "6d5d1b10-b552-4d9e-936f-e4ba7c6fb84c", "Name": "sample string 4", "Birthday": "2025-04-03T19:37:10.4035861+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-04-03T19:37:10.4035861+08:00", "ID": "09de4f4b-6250-48e9-bf53-4e2fa9266131", "PassengerId": "db20ae0b-e9bd-4d40-bab4-e587a372d4df", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" }, { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "09de4f4b-6250-48e9-bf53-4e2fa9266131", "PassengerId": "db20ae0b-e9bd-4d40-bab4-e587a372d4df", "TicketNumber": "sample string 5", "Posted": true, "Remarks": "sample string 7" } ], "OTotalPrices": [ { "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "c6f16435-6d68-469b-b4bc-3b060b0ad756", "PassengerId": "53bc961e-b7e0-4021-9af1-fed9c878dd25", "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-04-03T19:37:10.4035861+08:00", "ID": "c6f16435-6d68-469b-b4bc-3b060b0ad756", "PassengerId": "53bc961e-b7e0-4021-9af1-fed9c878dd25", "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-04-03T19:37:10.4035861+08:00", "ID": "175c0c9e-89a0-4bf9-a08d-e7dae4366068", "OrderId": "6d5d1b10-b552-4d9e-936f-e4ba7c6fb84c", "Name": "sample string 4", "Birthday": "2025-04-03T19:37:10.4035861+08:00", "CardType": 0, "CardNo": "sample string 5", "SexType": 0, "PassengerType": 0, "ContactPhone": "sample string 6" } ], "OrderExpands": [ { "ID": "ac313aa6-22c2-4303-ac3b-31edc5102c61", "OrderId": "32118b3b-dae2-436a-8531-ab55e7ebceb4", "SettingKey": "sample string 3", "SettingValue": "sample string 4" }, { "ID": "ac313aa6-22c2-4303-ac3b-31edc5102c61", "OrderId": "32118b3b-dae2-436a-8531-ab55e7ebceb4", "SettingKey": "sample string 3", "SettingValue": "sample string 4" } ], "OrderPayments": [ { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "f87e396e-aaed-4083-87c7-5cf7070f10eb", "OrderId": "1582a2b4-c806-4647-871e-9285c9af8464", "PaymentType": 0, "TotalPrice": 5.1, "TransactionId": "sample string 6", "Reconciled": true, "Remarks": "sample string 8" }, { "RecordType": 0, "Creater": "sample string 1", "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "f87e396e-aaed-4083-87c7-5cf7070f10eb", "OrderId": "1582a2b4-c806-4647-871e-9285c9af8464", "PaymentType": 0, "TotalPrice": 5.1, "TransactionId": "sample string 6", "Reconciled": true, "Remarks": "sample string 8" } ], "OSegments": [ { "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "9a0605e2-b0ff-4cc2-9dbb-a9ab8edbb843", "OrderId": "fd26a4ad-1f08-47db-957f-16755edcc595", "Sequence": 4, "Carrier": "sample string 5", "DepartureAirport": "sample string 6", "ArrivalAirport": "sample string 7", "DepartureDate": "2025-04-03T19:37:10.4035861+08:00", "ArrivalDate": "2025-04-03T19:37:10.4035861+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-04-03T19:37:10.4035861+08:00", "ID": "9a0605e2-b0ff-4cc2-9dbb-a9ab8edbb843", "OrderId": "fd26a4ad-1f08-47db-957f-16755edcc595", "Sequence": 4, "Carrier": "sample string 5", "DepartureAirport": "sample string 6", "ArrivalAirport": "sample string 7", "DepartureDate": "2025-04-03T19:37:10.4035861+08:00", "ArrivalDate": "2025-04-03T19:37:10.4035861+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": "829d95ed-1c8f-4cb2-8780-ffef02182d8e", "ProviderCode": "sample string 2", "PriceChangeInterval": 3 }, "QuotationSources": { "Time": "2025-04-03T19:37:10.4035861+08:00", "ID": "a69f7c4c-8d74-4f30-9717-48ff0abb1803", "Remarks": "sample string 3", "QuotationId": "sample string 4", "ProductMark": "sample string 5", "Creater": "sample string 6" }, "OrderInternalNumber": "sample string 6", "OrderSource": 0, "InternalTime": "2025-04-03T19:37:10.4035861+08:00", "Creater": "sample string 8", "ID": "711295bd-0e7d-42a0-8d7b-017d55c5f287", "SiteId": "sample string 10", "OrderExternalNumber": "sample string 11", "LatestTime": "2025-04-03T19:37:10.4035861+08:00", "ExternalTime": "2025-04-03T19:37:10.4035861+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" }