bill_create_or_update
Create a new bill or update an existing one in LibreNMS, specifying name, ports, type (quota or CDR), and optional billing details.
Instructions
Create or update a bill in LibreNMS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Bill payload fields: - bill_id (for updates only): Existing bill ID - bill_name (required for create): Bill name - ports (required for create): Array of port IDs to include - bill_type (required): "quota" or "cdr" (95th percentile) - bill_quota (required if quota type): Quota in bytes - bill_cdr (required if cdr type): Committed data rate - bill_day (optional): Billing day of month (1-31) - bill_custid (optional): Customer ID reference - bill_ref (optional): Billing reference - bill_notes (optional): Notes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||