POST Api/Invoke/AddWebApiOrder/{IsImport}
接口添加新订单
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| IsImport |
是否为导入订单 |
boolean |
Required |
Body Parameters
设置参数
SpeedPower.Utility.Models.Project.Orders.Service.WebApiIntactOrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseRoutes |
采购路由列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddPurchaseRouteModel |
None. |
| DataSources |
订单数据来源项 |
SpeedPower.Utility.Models.Project.Orders.Service.AddDataSourceModel |
None. |
| QuotationSources |
订单政策来源项 |
SpeedPower.Utility.Models.Project.Orders.Service.AddQuotationSourceModel |
None. |
| OrderExpands |
订单扩展参数列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddOrderExpandModel |
None. |
| OContacts |
联系人列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddOContactModel |
None. |
| OSegments |
订单行程列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddOSegmentModel |
Required |
| OPassengers |
乘机人列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.IntactOPassengerModel |
Required |
| 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:
{
"PurchaseRoutes": [
{
"OrderId": "f18b5940-5560-4a33-b8fa-ab4b5118b3ec",
"PurchaseTag": "sample string 2",
"Remarks": "sample string 3"
},
{
"OrderId": "f18b5940-5560-4a33-b8fa-ab4b5118b3ec",
"PurchaseTag": "sample string 2",
"Remarks": "sample string 3"
}
],
"DataSources": {
"ID": "a2522c92-1ec3-4eb5-b4c1-6ee0c5df5c60",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"ID": "9a8e0b18-daee-4a91-b109-272fd4c7c3d4",
"Remarks": "sample string 2",
"QuotationId": "sample string 3",
"ProductMark": "sample string 4",
"Creater": "sample string 5"
},
"OrderExpands": [
{
"OrderId": "100fa220-44c2-4bc8-85c3-af342042ce73",
"SettingKey": "sample string 2",
"SettingValue": "sample string 3"
},
{
"OrderId": "100fa220-44c2-4bc8-85c3-af342042ce73",
"SettingKey": "sample string 2",
"SettingValue": "sample string 3"
}
],
"OContacts": [
{
"OrderId": "6d8eb83c-7745-4979-bb98-5364b42f21ef",
"ContactUser": "sample string 2",
"ContactPhone": "sample string 3"
},
{
"OrderId": "6d8eb83c-7745-4979-bb98-5364b42f21ef",
"ContactUser": "sample string 2",
"ContactPhone": "sample string 3"
}
],
"OSegments": [
{
"OrderId": "dbf0a638-6375-48f6-a8b9-3bcec8aa3a5c",
"Sequence": 2,
"Carrier": "sample string 3",
"DepartureAirport": "sample string 4",
"ArrivalAirport": "sample string 5",
"DepartureDate": "2025-12-18T09:41:50.282427+08:00",
"ArrivalDate": "2025-12-18T09:41:50.282427+08:00",
"FlightNo": "sample string 8",
"CodeShare": true,
"ShareToFlightNo": "sample string 10",
"StopTimes": 11,
"Meal": "sample string 12",
"PlaneType": "sample string 13",
"DepartureTerminal": "sample string 14",
"ArrivalTerminal": "sample string 15"
},
{
"OrderId": "dbf0a638-6375-48f6-a8b9-3bcec8aa3a5c",
"Sequence": 2,
"Carrier": "sample string 3",
"DepartureAirport": "sample string 4",
"ArrivalAirport": "sample string 5",
"DepartureDate": "2025-12-18T09:41:50.282427+08:00",
"ArrivalDate": "2025-12-18T09:41:50.282427+08:00",
"FlightNo": "sample string 8",
"CodeShare": true,
"ShareToFlightNo": "sample string 10",
"StopTimes": 11,
"Meal": "sample string 12",
"PlaneType": "sample string 13",
"DepartureTerminal": "sample string 14",
"ArrivalTerminal": "sample string 15"
}
],
"OPassengers": [
{
"TicketNumbers": [
{
"PassengerId": "6a84bdb3-4f45-49c0-a343-23e0992dba60",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "6a84bdb3-4f45-49c0-a343-23e0992dba60",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "7a5a4246-d07b-4218-8051-17502044368c",
"Sequence": 1,
"SalePrice": 2.1,
"PrintPrice": 3,
"FareTax": 4,
"FuelTax": 5,
"CabinLevel": 0,
"CabinCode": "sample string 6",
"ChannelCabinCode": "sample string 7",
"FixedCabinCode": "sample string 8"
},
{
"PassengerId": "7a5a4246-d07b-4218-8051-17502044368c",
"Sequence": 1,
"SalePrice": 2.1,
"PrintPrice": 3,
"FareTax": 4,
"FuelTax": 5,
"CabinLevel": 0,
"CabinCode": "sample string 6",
"ChannelCabinCode": "sample string 7",
"FixedCabinCode": "sample string 8"
}
],
"OrderId": "3a257cb8-41c3-4d4a-b230-f34532ddb885",
"Name": "sample string 2",
"Birthday": "2025-12-18T09:41:50.282427+08:00",
"CardType": 0,
"CardNo": "sample string 3",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 4"
},
{
"TicketNumbers": [
{
"PassengerId": "6a84bdb3-4f45-49c0-a343-23e0992dba60",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "6a84bdb3-4f45-49c0-a343-23e0992dba60",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "7a5a4246-d07b-4218-8051-17502044368c",
"Sequence": 1,
"SalePrice": 2.1,
"PrintPrice": 3,
"FareTax": 4,
"FuelTax": 5,
"CabinLevel": 0,
"CabinCode": "sample string 6",
"ChannelCabinCode": "sample string 7",
"FixedCabinCode": "sample string 8"
},
{
"PassengerId": "7a5a4246-d07b-4218-8051-17502044368c",
"Sequence": 1,
"SalePrice": 2.1,
"PrintPrice": 3,
"FareTax": 4,
"FuelTax": 5,
"CabinLevel": 0,
"CabinCode": "sample string 6",
"ChannelCabinCode": "sample string 7",
"FixedCabinCode": "sample string 8"
}
],
"OrderId": "3a257cb8-41c3-4d4a-b230-f34532ddb885",
"Name": "sample string 2",
"Birthday": "2025-12-18T09:41:50.282427+08:00",
"CardType": 0,
"CardNo": "sample string 3",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 4"
}
],
"SiteId": "sample string 1",
"OrderExternalNumber": "sample string 2",
"LatestTime": "2025-12-18T09:41:50.282427+08:00",
"ExternalTime": "2025-12-18T09:41:50.282427+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"
}