code: ********************timestamp: ********************signature: ********************{
"solutionId": "sol_2f4d3c",
"passengerCount": {
"adult": 1,
"child": 0,
"infant": 0
}
}curl --location '/openapi/v3/flight/fare-rules' \
--header 'code: <api-key>' \
--header 'timestamp: <api-key>' \
--header 'signature: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"solutionId": "sol_2f4d3c",
"passengerCount": {
"adult": 1,
"child": 0,
"infant": 0
}
}'{
"code": 0,
"message": "ok",
"realErrorMsg": "",
"data": {
"solutionId": "sol_2f4d3c",
"source": "",
"fareRules": {
"PEKSHA": [
{
"passengerType": "adult",
"canVoid": true,
"currency": "CNY",
"change": {
">0": 300,
">4": 200,
"<-4": 500
},
"refund": {
">0": 500,
">4": 300,
"<-4": 800
}
}
]
},
"baggageRules": {
"PEKSHA": [
{
"passengerType": "adult",
"carryOn": {
"pieces": 1,
"weight": 7,
"unit": "KG"
},
"checked": {
"pieces": 1,
"weight": 23,
"unit": "KG"
}
}
]
}
}
}