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": "9611cb20-0635-49dd-8610-82a39ae0953d",
"PurchaseTag": "sample string 2",
"Remarks": "sample string 3"
},
{
"OrderId": "9611cb20-0635-49dd-8610-82a39ae0953d",
"PurchaseTag": "sample string 2",
"Remarks": "sample string 3"
}
],
"DataSources": {
"ID": "ab352ca9-90ea-40b6-9814-98b888a3afe5",
"ProviderCode": "sample string 2",
"PriceChangeInterval": 3
},
"QuotationSources": {
"ID": "3a6b18e3-8462-4352-b3fb-f79d69b63edd",
"Remarks": "sample string 2",
"QuotationId": "sample string 3",
"ProductMark": "sample string 4",
"Creater": "sample string 5"
},
"OrderExpands": [
{
"OrderId": "bc3d973b-0b1d-4f69-97e0-c9af2dbda3bb",
"SettingKey": "sample string 2",
"SettingValue": "sample string 3"
},
{
"OrderId": "bc3d973b-0b1d-4f69-97e0-c9af2dbda3bb",
"SettingKey": "sample string 2",
"SettingValue": "sample string 3"
}
],
"OContacts": [
{
"OrderId": "7ffc63ec-e040-4cb6-b287-bcbc2a2b495d",
"ContactUser": "sample string 2",
"ContactPhone": "sample string 3"
},
{
"OrderId": "7ffc63ec-e040-4cb6-b287-bcbc2a2b495d",
"ContactUser": "sample string 2",
"ContactPhone": "sample string 3"
}
],
"OSegments": [
{
"OrderId": "a1db4f73-307d-470b-b0e3-0b34ba5366e5",
"Sequence": 2,
"Carrier": "sample string 3",
"DepartureAirport": "sample string 4",
"ArrivalAirport": "sample string 5",
"DepartureDate": "2026-09-24T06:21:46.7716934+08:00",
"ArrivalDate": "2026-09-24T06:21:46.7716934+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": "a1db4f73-307d-470b-b0e3-0b34ba5366e5",
"Sequence": 2,
"Carrier": "sample string 3",
"DepartureAirport": "sample string 4",
"ArrivalAirport": "sample string 5",
"DepartureDate": "2026-09-24T06:21:46.7716934+08:00",
"ArrivalDate": "2026-09-24T06:21:46.7716934+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": "9d396f2c-5446-4b3f-8b32-8e115507312f",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "9d396f2c-5446-4b3f-8b32-8e115507312f",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "4ed1ed46-b732-43df-8940-587fd1b9ccc4",
"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": "4ed1ed46-b732-43df-8940-587fd1b9ccc4",
"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": "f3ab991c-e78d-42e1-a97f-fe469b2b4124",
"Name": "sample string 2",
"Birthday": "2026-09-24T06:21:46.7716934+08:00",
"CardType": 0,
"CardNo": "sample string 3",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 4"
},
{
"TicketNumbers": [
{
"PassengerId": "9d396f2c-5446-4b3f-8b32-8e115507312f",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "9d396f2c-5446-4b3f-8b32-8e115507312f",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "4ed1ed46-b732-43df-8940-587fd1b9ccc4",
"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": "4ed1ed46-b732-43df-8940-587fd1b9ccc4",
"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": "f3ab991c-e78d-42e1-a97f-fe469b2b4124",
"Name": "sample string 2",
"Birthday": "2026-09-24T06:21:46.7716934+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": "2026-09-24T06:21:46.7716934+08:00",
"ExternalTime": "2026-09-24T06:21:46.7716934+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"
}