[#1347] List of booking

Migrated from Redmine #1347 | Author: soniya james
Status: Closed | Priority: High, I’m very impatient | Created: 2025-01-21


List of booking I am passing request like this I have booking in 2024 and 2025 but its showing 2024 1st.

$apiUrl = ‘https://user-api-v2.simplybook.me/admin/bookings?order_field=start_datetime&order_direction=desc&page=1&on_page=100’;

how i can modify the request.

Dmytro Bondarev wrote:

Hi, as we already discussed in #1342 , you should pass
&order_field=start_date&order_direction=desc&page=1&on_page=100

soniya james wrote:

if i am passing like this also getting same problem

Dmytro Bondarev wrote:

Please provide HTTP request and response.

soniya james wrote:

this issue solved.

How I can pass product-addon in add booking?

soniya james wrote:

“products”:[{“product_id”:“3”,“qty”:“2”},{“product_id”:“2”,“qty”:“1”}]}
product i am adding like this

Dmytro Bondarev wrote:

The same way as product.

soniya james wrote:

ok

(Short original content)

soniya james wrote:

“products”: [
{
“product_id”: 8,
“qty”: 1
},
{
“product_id”: 9,
“qty”: 1
}
],
“attributes”: [
{
“product_id”: “8”,
“qty”: 1
},
{
“product_id”: “9”,
“qty”: 1
}
]
}

like this I am passing but not inserting value in to why?

Dmytro Bondarev wrote:

Attributes are the same as products, you should pass them in products property.

soniya james wrote:

but if that have same id how we can pass?
one is service addons one is product addons.

Dmytro Bondarev wrote:

Please provide company login and id attribute and product that have the same id.

soniya james wrote:

can you send an example.plz

Dmytro Bondarev wrote:

What example?

Just send us your company login and the id of product and id if attribute.

soniya james wrote:

{
“company”: “avstest”,
“login”: “soniyajamesvayalil@gmail.com”,
“password”: “Test@123”
}

Dmytro Bondarev wrote:

What is the product id and attribute id, that have same id?