diff -r 0085bcfc1131 -r 588edbc9e14b report.go --- a/report.go Mon Apr 17 15:22:45 2017 +0200 +++ b/report.go Mon Apr 17 16:22:56 2017 +0200 @@ -32,6 +32,9 @@ params["account_id"] = strconv.Itoa(accountID) params["comment"] = comment for i, id := range statusIDs { + if id < 1 { + return nil, ErrInvalidID + } qID := fmt.Sprintf("status_ids[%d]", i+1) params[qID] = strconv.Itoa(id) }