Submit data about orders
Saves data about orders that are represented by the Order model.
Request format
POST https://unisearch-hotels-pacific-partner-api.yandex.ru/api/v1/orders
Request body format
{
"orders": [
<Order 1>,
<Order 2>,
...
<Order N>
]
}
About data submission
When data is submitted, the IDs are checked for a match. If a match is found, the data is updated. For example:
-
You submitted data about orders.
{ "orders": [ { "id": "order_1", "token": "123e4567e89b12d3a456426614174000", ... }, { "id": "order_2", "token": "sbdhQmWcG5R1oAy1Ga85O9LokVFHEf7HNDNh6xA", ... } ] } -
At the time of the next submission, the data for
"order_1"with the token"123e4567e89b12d3a456426614174000"and for"order__2"with the token"sbdhQmWcG5R1oAy1Ga85O9LokVFHEf7HNDNh6xA"will be saved:{ "orders": [ { "id": "order_2", "token": "sfPSfJDiwAmwKsy3AEooufbaQhKH4ARZ9KVfYKg", ... } ] }