Fix API endpoints for line items