Get 400 Bad Request when doing pull replication with documentIds set

Correct, document ID filtering is not implemented in Sync Gateway. The relevant issue is here. If you feel that it would be useful to you, I suggest putting some comments on the ticket to keep it visible. I know this has come up before from other people besides you and the more attention it gets the more likely it is to get a specific timeline for implementation.