order_id.order_id: The ID of the order to be split. - You can take it from /orders response.data.order_idbook_id: The ID of the book related to the order. - You can take it from /orders response.data.book_idpax_id: The ID of the passenger related to the order. - You can take it from /orders response.data.passagers[0].pax_idstatus: The status of the request.message: Additional information or error message.{
"order_id": {number},
"book_id": {number},
"pax_id": {number}
}
{
"status": "{string}",
"message": "{string}"
}
curl --location -g --request PATCH 'https://stage-api.etm-system.ru/api/air/orders/{{order_id}}/split' \
--header 'Accept: application/json' \
--header 'Etm-Auth-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": {{order_id}},
"book_id": {{book_id}},
"pax_id": {{pax_id}}
}'{
"status": "ok",
"message": "Бронь успешно создана. Номер брони - NHXPGN. Пожалуйста, проверьте стоимость билета обоих заказов."
}