POST Api/Service/Order/AddManualOrder
添加订单
Request Information
URI Parameters
None.
Body Parameters
设置参数
SpeedPower.Utility.Models.Project.Orders.Service.ManualIntactOrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| 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:
{
"OContacts": [
{
"OrderId": "e7202a9f-1270-4aae-9382-5cc65dfceaee",
"ContactUser": "sample string 2",
"ContactPhone": "sample string 3"
},
{
"OrderId": "e7202a9f-1270-4aae-9382-5cc65dfceaee",
"ContactUser": "sample string 2",
"ContactPhone": "sample string 3"
}
],
"OSegments": [
{
"OrderId": "8f2a166e-aac1-4fcc-8cd1-e2081c28e23f",
"Sequence": 2,
"Carrier": "sample string 3",
"DepartureAirport": "sample string 4",
"ArrivalAirport": "sample string 5",
"DepartureDate": "2025-11-07T10:55:46.3862722+08:00",
"ArrivalDate": "2025-11-07T10:55:46.3862722+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": "8f2a166e-aac1-4fcc-8cd1-e2081c28e23f",
"Sequence": 2,
"Carrier": "sample string 3",
"DepartureAirport": "sample string 4",
"ArrivalAirport": "sample string 5",
"DepartureDate": "2025-11-07T10:55:46.3862722+08:00",
"ArrivalDate": "2025-11-07T10:55:46.3862722+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": "88ecd3b1-d376-4366-83ab-072d68a5f1ae",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "88ecd3b1-d376-4366-83ab-072d68a5f1ae",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "a9e0882d-b2c1-4b66-a39f-b026bdb70d05",
"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": "a9e0882d-b2c1-4b66-a39f-b026bdb70d05",
"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": "a360af34-4802-4584-a5a4-c3c21b6d21c0",
"Name": "sample string 2",
"Birthday": "2025-11-07T10:55:46.3862722+08:00",
"CardType": 0,
"CardNo": "sample string 3",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 4"
},
{
"TicketNumbers": [
{
"PassengerId": "88ecd3b1-d376-4366-83ab-072d68a5f1ae",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "88ecd3b1-d376-4366-83ab-072d68a5f1ae",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "a9e0882d-b2c1-4b66-a39f-b026bdb70d05",
"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": "a9e0882d-b2c1-4b66-a39f-b026bdb70d05",
"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": "a360af34-4802-4584-a5a4-c3c21b6d21c0",
"Name": "sample string 2",
"Birthday": "2025-11-07T10:55:46.3862722+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-11-07T10:55:46.3862722+08:00",
"ExternalTime": "2025-11-07T10:55:46.3862722+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"
}