POST Api/Service/Order/AutoQueryRequest
自动报价请求接口
Request Information
URI Parameters
None.
Body Parameters
请求模型
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoQueryRequestModelName | Description | Type | Additional information |
---|---|---|---|
OperationTag |
操作标签 |
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.OperationTagModel |
None. |
Departure |
出发地 |
string |
Required String length: inclusive between 3 and 3 |
Arrival |
到达地 |
string |
Required String length: inclusive between 3 and 3 |
DepartureDate |
出发日期时间 |
string |
Required Data type: Date |
ProviderSetting |
抓取请求设置项 |
SpeedPower.Utility.Models.Service.Crawls.Service.CrawlProviderModel |
Required |
Request Formats
application/json, text/json
Sample:
{ "OperationTag": { "OrderId": "ec185283-98b8-470e-990b-99fb846b6cd8", "Creater": "sample string 2" }, "Departure": "sample string 1", "Arrival": "sample string 2", "DepartureDate": "sample string 3", "ProviderSetting": { "RequestType": 0, "ProviderCode": "sample string 1", "ServiceName": "sample string 2" } }
Response Information
Resource Description
自动报价请求接口
SpeedPower.Utility.Models.Project.Orders.Service.Automatic.AutoQueryResponseModelName | Description | Type | Additional information |
---|---|---|---|
ErrorType |
错误类型(可为NULL) |
SpeedPower.Utility.Models.Service.Crawls.Enums.CrawlErrorType |
None. |
Request |
抓取请求项 |
SpeedPower.Utility.Models.Service.Crawls.Service.CrawlRequest |
None. |
DataSource |
数据来源标识 |
string |
Required String length: inclusive between 0 and 20 |
SotaRoute |
单程数据模型包 |
SpeedPower.Utility.Models.Service.Crawls.Service.SotaRouteBody |
None. |
Succeed |
操作是否成功 |
boolean |
None. |
Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorType": 0, "Request": { "Departure": { "Code": "sample string 1", "Name": "sample string 2", "Airports": [ { "Code": "sample string 1", "Name": "sample string 2" }, { "Code": "sample string 1", "Name": "sample string 2" } ] }, "Arrival": { "Code": "sample string 1", "Name": "sample string 2", "Airports": [ { "Code": "sample string 1", "Name": "sample string 2" }, { "Code": "sample string 1", "Name": "sample string 2" } ] }, "DepartureDate": "2024-12-24T03:28:54.6069455+08:00", "ProviderSetting": { "RequestType": 0, "ProviderCode": "sample string 1", "ServiceName": "sample string 2" } }, "DataSource": "sample string 1", "SotaRoute": { "Departure": "sample string 1", "Arrival": "sample string 2", "Date": "2024-12-24T03:28:54.6069455+08:00", "SotaSegments": [ { "Carrier": "sample string 1", "DepartureAirport": "sample string 2", "ArrivalAirport": "sample string 3", "DepartureDate": "2024-12-24T03:28:54.6069455+08:00", "ArrivalDate": "2024-12-24T03:28:54.6069455+08:00", "FlightNo": "sample string 6", "StopTimes": 7, "CodeShare": true, "ShareToFlightNo": "sample string 9", "Meal": "sample string 10", "PlaneType": "sample string 11", "DepartureTerminal": "sample string 12", "ArrivalTerminal": "sample string 13", "SotaCabins": [ { "CabinLevel": 0, "CabinName": "sample string 1", "CabinCode": "sample string 2", "CabinStatus": 3, "CabinQuota": 4, "PrintPrice": 5, "AdultPrice": 6, "ChildPrice": 7, "BabyPrice": 8, "FareTax": 9, "FuelTax": 10, "CabinRule": "sample string 11", "RefundRule": "sample string 12", "ChangeRule": "sample string 13", "ModifyRule": "sample string 14" }, { "CabinLevel": 0, "CabinName": "sample string 1", "CabinCode": "sample string 2", "CabinStatus": 3, "CabinQuota": 4, "PrintPrice": 5, "AdultPrice": 6, "ChildPrice": 7, "BabyPrice": 8, "FareTax": 9, "FuelTax": 10, "CabinRule": "sample string 11", "RefundRule": "sample string 12", "ChangeRule": "sample string 13", "ModifyRule": "sample string 14" } ], "SotaStops": [ { "Sequence": 1, "DepartureAirport": "sample string 2", "ArrivalAirport": "sample string 3", "DepartureTime": "sample string 4", "ArrivalTime": "sample string 5", "DepartureTerminal": "sample string 6", "ArrivalTerminal": "sample string 7" }, { "Sequence": 1, "DepartureAirport": "sample string 2", "ArrivalAirport": "sample string 3", "DepartureTime": "sample string 4", "ArrivalTime": "sample string 5", "DepartureTerminal": "sample string 6", "ArrivalTerminal": "sample string 7" } ] }, { "Carrier": "sample string 1", "DepartureAirport": "sample string 2", "ArrivalAirport": "sample string 3", "DepartureDate": "2024-12-24T03:28:54.6069455+08:00", "ArrivalDate": "2024-12-24T03:28:54.6069455+08:00", "FlightNo": "sample string 6", "StopTimes": 7, "CodeShare": true, "ShareToFlightNo": "sample string 9", "Meal": "sample string 10", "PlaneType": "sample string 11", "DepartureTerminal": "sample string 12", "ArrivalTerminal": "sample string 13", "SotaCabins": [ { "CabinLevel": 0, "CabinName": "sample string 1", "CabinCode": "sample string 2", "CabinStatus": 3, "CabinQuota": 4, "PrintPrice": 5, "AdultPrice": 6, "ChildPrice": 7, "BabyPrice": 8, "FareTax": 9, "FuelTax": 10, "CabinRule": "sample string 11", "RefundRule": "sample string 12", "ChangeRule": "sample string 13", "ModifyRule": "sample string 14" }, { "CabinLevel": 0, "CabinName": "sample string 1", "CabinCode": "sample string 2", "CabinStatus": 3, "CabinQuota": 4, "PrintPrice": 5, "AdultPrice": 6, "ChildPrice": 7, "BabyPrice": 8, "FareTax": 9, "FuelTax": 10, "CabinRule": "sample string 11", "RefundRule": "sample string 12", "ChangeRule": "sample string 13", "ModifyRule": "sample string 14" } ], "SotaStops": [ { "Sequence": 1, "DepartureAirport": "sample string 2", "ArrivalAirport": "sample string 3", "DepartureTime": "sample string 4", "ArrivalTime": "sample string 5", "DepartureTerminal": "sample string 6", "ArrivalTerminal": "sample string 7" }, { "Sequence": 1, "DepartureAirport": "sample string 2", "ArrivalAirport": "sample string 3", "DepartureTime": "sample string 4", "ArrivalTime": "sample string 5", "DepartureTerminal": "sample string 6", "ArrivalTerminal": "sample string 7" } ] } ] }, "Succeed": true, "Message": "sample string 3" }