order_id
.order_id
: The ID of the order to be split.book_id
: The ID of the book related to the order.pax_id
: The ID of the passenger related to the order.status
: 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 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": {{order_id}},
"book_id": {{book_id}},
"pax_id": {{pax_id}}
}'
{
"status": "ok",
"message": "Бронь успешно создана. Номер брони - NHXPGN. Пожалуйста, проверьте стоимость билета обоих заказов."
}