POST api/flight/v2/fareRule/{searchAccountId}
航空條例
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
searchAccountId |
搜索帳戶ID |
integer |
Required |
Body Parameters
條例鍵
AirRuleRqContractName | Description | Type | Additional information |
---|---|---|---|
lang |
語言 |
string |
None. |
fareRuleKey |
條例鍵 |
string |
None. |
logTraceId |
日志鍵 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "lang": "sample string 1", "fareRuleKey": "sample string 2", "logTraceId": "sample string 3" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
航空條例
ReturnResultOfAirRuleRpContractName | Description | Type | Additional information |
---|---|---|---|
data | AirRuleRpContract |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "ruleContent": "sample string 1", "airrules": [ { "qualifier": "sample string 1", "airsegments": [ { "segmentgroup": 1, "orgindestination": { "DepAirport": "sample string 1", "ArrAirport": "sample string 2" }, "farerule": [ { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" }, { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" } ] }, { "segmentgroup": 1, "orgindestination": { "DepAirport": "sample string 1", "ArrAirport": "sample string 2" }, "farerule": [ { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" }, { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" } ] } ] }, { "qualifier": "sample string 1", "airsegments": [ { "segmentgroup": 1, "orgindestination": { "DepAirport": "sample string 1", "ArrAirport": "sample string 2" }, "farerule": [ { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" }, { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" } ] }, { "segmentgroup": 1, "orgindestination": { "DepAirport": "sample string 1", "ArrAirport": "sample string 2" }, "farerule": [ { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" }, { "Category": "sample string 1", "Type": "sample string 2", "FreeText": "sample string 3", "Value": "sample string 4" } ] } ] } ] }, "code": 1, "message": "sample string 2" }