文档中心 > 国内机票

【政策接口参数变更】:删除节点属性变更

更新时间:2022/01/18 访问次数:1478

涉及场景:商家通过政策接口上传和删除政策,在删除节点deletePolicy,必须输入政策代码,同时修改政策状态输入值范围;

涉及接口:alitrip.policy.normal.uploadalitrip.policy.special.uploadalitrip.policy.rule.upload

节点名称

字段

字段含义

变更前

变更后

上线时间

deletePolicy

policyCode

政策代码

非必输

必输项

1月17下午1点

status

政策状态

0-无效,1-有效,2-挂起;

1-有效;2-挂起;

1月17下午1点

商家action:由于deletePolicy中有必输项,因此当商家仅上传操作时会报错,此时商家只需要在deletePolicy放一个空数组即可;

case:

{
"trip_type": 0,
"agent_id": "2052",
"exec_type":"ADD",
"policy_type": "T",
"delete_policy":[
], -------------传 空数组即可
"policy_list": [
{
"direct_transfer_type":1,
"transit_airport":"KKK",
"memo":"测试",
"pata": 1,
"office_no": "NKG205",
"account_code": null,
"create_pnr": 1,
"combine_restrict": {
"ei": "1"
},
"policy_code": "11111",
"status": 1,
"code_share": 0,
"airline": "HU",
"dep_airport": "KKP",
"arr_airport": "LLO",
"flights": [{
"flight_index": 0,
"allow_flight_num": null,
"restrict_flight_num": null,
"cabin_class": null,
"cabin": "C3",
"allow_travel_time": null,
"day_week": [1,2,3],
"allow_flight_num2":"9999",
"restrict_flight_num2":"9900",
"allow_travel_date": [
{"start":"2022-11-30 02:17:30","end": "2022-11-30 02:17:30"}
]
}],
"sale": {
"sale_time": null,
"advance_day": null,
"sale_mode_code": 0,
"sale_date": [
{"start":"2022-11-30 02:17:30","end": "2022-11-30 02:17:30"}
]
},
"passenger": {
"product_code": 0,
"documents_type": null
},
"price": {
"carry_rule": 1,
"commission": 0,
"return_price": 300,
"lowest_price": null,
"flight_price_values": [{
"flight_index": 0,
"down_percent": 0
}]
},
"fare_source": [0],
"stock": {
"stock_limit": null,
"return_stock": null,
"stock_num": null
},
"fare_basis": null,
"fare_price":0
}]

}

若有收获,就点个赞吧

FAQ

关于此文档暂时还没有FAQ
返回
顶部