request_id.request_id: The unique identifier for the request. You can take it from /search response.data.request_idpassanger_id: - You can take if from GET {{url}}/api/air/offers/{{request_id}}/additional-services?segment={{buy_id}} response.data.passanger.passangerIdbuy_id - Represents the unique ID associated with the offer. You can take it from /api/air/offers, for example,legs - key & array: you can take if from GET {{url}}/api/air/offers/{{request_id}}/additional-services?segment={{buy_id}} response.data.directions.legsparams (object)data (object){{passanger_id}} (object){{buy_id}} (object)checked_baggage (object)id (string)comments (string)passenger_type (string)label (string)price (string)currency (string)route (string)image (string)type (string)maxQuantity (number)category (string)is_baggage_package (boolean)package_list (array)priority_boarding (array)legs (object){{leg_id}} (object)status (number)data (number)curl --location -g --request POST 'https://stage-api.etm-system.ru/api/air/offers/{{request_id}}/select-services' \
--header 'Accept: application/json' \
--header 'Etm-Auth-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"data": {
"{{passanger_id}}": {
"{{buy_id}}": {
"checked_baggage": {
"id": "1071192-1429749",
"comments": "",
"passenger_type": "ADT",
"label": "40 kg Baggage Allowance",
"price": "5989.02",
"currency": "EUR",
"route": "DXB-TAS",
"image": "",
"type": "radio",
"maxQuantity": 1,
"category": "BAGX",
"is_baggage_package": false,
"package_list": [],
"priority_boarding": []
},
"legs": {
"{{leg_id}}": {
// "id": "1004878-1344233",
// "comments": "",
// "passenger_type": "ADT",
// "label": "23 Kilogram(s)",
// "price": "449.67",
// "currency": "RUB",
// "route": "TAS-UGC",
// "image": "",
// "type": "radio",
// "maxQuantity": 1,
// "category": "",
// "is_baggage_package": false,
// "package_list": [],
// "priority_boarding": []
}
}
}
}
}
}
}'{
"status": 200,
"data": 0
}