# List invoicelines Returns a paginated list of Invoicelines for the specified site. Supports filtering and sorting. Endpoint: GET /site/{siteId}/ahds/v1/invoiceline Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Query parameters: - `page` (number) Page number (0-indexed) - `pageSize` (number) Number of items per page - `sortBy` (string) Field to sort by Enum: "createdAt", "updatedAt", "batch", "currency", "discountAmount", "lineTaxTotal", "lineTotal", "name", "quantity", "serviceDate", "standardUnitPrice", "standardUnitTaxAmount", "taxCode", "taxPercent", "unitPrice", "unitTaxAmount" - `sortOrder` (string) Sort order Enum: "asc", "desc" - `animalId` (string) Identifier of the animal associated with this invoice line, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `batch` (string) Batch or lot identifier for inventory-tracked products, if applicable. - `consultId` (string) Identifier of the consultation associated with this invoice line, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `currency` (string) ISO 4217 currency code for all monetary amounts on this line. - `groupId` (string) Identifier for a grouping of invoice lines (e.g., package or section). Example: "123e4567-e89b-12d3-a456-426614174000" - `invoiceId` (string) Identifier of the parent invoice. Example: "123e4567-e89b-12d3-a456-426614174000" - `isActive` (boolean) Whether this invoice line is active. - `ledgerAccountId` (string) Identifier of the ledger or GL account associated with this line. Example: "123e4567-e89b-12d3-a456-426614174000" - `lineType` (string) Type of invoice line (e.g., product, service, discount). Enum: "product", "service", "discount", "surcharge", "other" - `locationId` (string) Identifier of the practice location where this line item was generated. Example: "123e4567-e89b-12d3-a456-426614174000" - `name` (string) Human-readable description of the invoice line, typically the product or service name. - `ownershipId` (string) Identifier representing the ownership or billing entity associated with this line. Example: "123e4567-e89b-12d3-a456-426614174000" - `productId` (string) Reference to the billed product or service. Example: "123e4567-e89b-12d3-a456-426614174000" - `salesPersonId` (string) Identifier of the staff member credited as salesperson for this line. Example: "123e4567-e89b-12d3-a456-426614174000" - `status` (string) Lifecycle status of the invoice line. Enum: "draft", "posted", "void", "credited" - `taxCode` (string) Practice-specific tax code applied to this line. ## Response 200 fields ## Response 401 fields