bexio Bills
bexio_billsManage purchase bills and supplier invoices: create, list with filtering, update, delete, and transition statuses between draft and booked.
Instructions
Manage purchase bills / supplier invoices (accounts payable, bexio purchase 4.0 API). Bill ids are UUID strings. Actions: "list" (paginated via limit/page/order/sort; optional full-text search_term of 3-255 chars with search_fields, and filters: status DRAFTS|TODO|PAID|OVERDUE, bill_date_start/end, due_date_start/end, vendor_ref, title, currency_code, pending_amount_min/max, vendor, gross_min/max, net_min/max, document_no, supplier_id, average_exchange_rate_enabled), "get" (bill by id), "create" (payload required: supplier_id, contact_partner_id, bill_date, due_date, manual_amount, currency_code, item_net, attachment_ids, address, line_items, discounts; provide amount_man when manual_amount=true, amount_calc otherwise), "update" (id + full payload; additionally requires split_into_line_items; line item/discount ids must already exist on the bill or be omitted for new ones), "delete" (id; permanently deletes the bill — cannot be undone), "execute_action" (id + bill_action "DUPLICATE": copies the bill into a new draft), "update_status" (id + status: "BOOKED" books the bill, "DRAFT" reverts it to draft), "validate_document_number" (document_no; reports whether it is available and the next free number).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Bill id (UUID; required for get/update/delete/execute_action/update_status) | |
| page | No | Page number for "list" | |
| sort | No | Field to sort by for "list" | |
| limit | No | Results per page for "list" (max 500) | |
| order | No | Sorting order for "list" | |
| action | Yes | Operation to perform | |
| status | No | Target status for "update_status" | |
| filters | No | Optional filters for "list" | |
| payload | No | Bill fields. Required on create: supplier_id, contact_partner_id, bill_date, due_date, manual_amount, currency_code, item_net, attachment_ids, address, line_items, discounts. Update sends the full bill and additionally requires split_into_line_items. | |
| bill_action | No | Action to execute for "execute_action" | |
| document_no | No | Document number to check for "validate_document_number" | |
| search_term | No | Full-text search term for "list" (3-255 characters) | |
| search_fields | No | Fields the search term is applied to (all searchable fields when omitted) |