Get bookings by arrival date
get_bookingsRetrieve all bookings arriving within inclusive date range or a month, with per-entity totals and normalized rows. Use eom_blocks format to get EOM-ordered rows ready for close/invoicing.
Instructions
Bookings arriving between arrival_from and arrival_to (both INCLUSIVE), or in month. Pages through everything. Returns a header with counts and totals per entity and per block so a short pull is obvious, then normalized rows (channel, eom_block, price_raw, lordo, commissione, netto, flags). format=eom_blocks returns rows per entity in EOM column order (Arrivo, Partenza, Nome, Netto, Commissione, Lordo; DIRETTE without commission) ready for G5/N5/U5/Z5.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | Shortcut: YYYY-MM sets arrival_from/arrival_to to the whole month. | |
| entity | No | Restrict to one EOM entity (KALAWALA, NAMAITAMI, RIBHOLDING, DELFINES, PERLA). | |
| format | No | rows = normalized rows; eom_blocks = per entity, per block, already in EOM column order. | rows |
| company | No | Restrict to one fiscal company / bsides account (AO_DIMME, XELION, PERLA). | |
| snapshot | No | Save this extraction so changes_since can diff against it later. | |
| arrival_to | No | Last arrival date, inclusive (YYYY-MM-DD). The 31st IS included. | |
| arrival_from | No | First arrival date, inclusive (YYYY-MM-DD). | |
| include_blocked | No | Include blocked periods (flagged `block_name`). Keep true for the close: Rick Osdin was real. | |
| include_cancelled | No | Include bookings Smoobu reports as cancelled (flagged `cancelled`, never silently dropped). |