Export Bookings
Downloads the bookings datagrid as a CSV file — the same data the admin Sales → Bookings "Export" button produces. The response is a binary text/csv attachment, not JSON. Requires the sales.bookings.view permission.
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/bookings/export | GET |
Columns
The CSV carries the six datagrid columns, in order:
| Header | Value |
|---|---|
ID | Booking id. |
Order ID | The parent order's number. |
Qty | Quantity booked. |
From | The slot's start, formatted (empty for non-time-based booking types). |
To | The slot's end, formatted (empty for non-time-based booking types). |
Booking Date | When the booking was created. |
Query parameters
format selects the export format — only csv is supported (the default); any other value returns 422.
The export honours the same filters as the listing, so you export exactly the rows you're viewing: id, order_id, qty, product_id, from_from / from_to, to_from / to_to, created_at_from / _to. (Pagination does not apply — the export returns every matching row.)
Permission
sales.bookings.view

