mhlb_print_orders
Generate a printable PDF of order details for a single lunch date, filtering by required student IDs and order status (pending, paid, or credited). Returns the PDF as a file or base64.
Instructions
Generate the printable order-details PDF for a single lunch date. Note this is one date, not a range, and studentIds is required — the endpoint fails if it is empty, or if no order matches the date and status you ask for. Get both from mhlb_get_calendar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The lunch date to report on (YYYY-MM-DD). | |
| inline | No | Return the PDF as base64 in the result instead of writing it to a file. Default false. | |
| filename | No | Output filename. Defaults to "Orders Details <date>.pdf". | |
| studentIds | Yes | Students to include — at least one. An empty list makes the endpoint fail. | |
| orderStatus | No | Order status to report: 0 = Pending, 1 = Paid (default), 2 = Credited. |