The present invention provides novel heteroaryl compounds of formula (Ia) which are selective inhibitors of the human P2Y1
receptor. The invention also provides for various pharmaceutical compositions of the same and methods for treating diseases responsive to modulation of P2Y1
receptor activity. (Ia) or a stereoisomer,
tautomer, pharmaceutically acceptable salt, or solvate thereof, wherein: ring A is a 5- to 6-membered heteroaryl comprising: carbon atoms and 1-4 ringheteroatoms selected from N, NR11, S(O)p, and O, wherein said heteroaryl is substituted with 0-4 R1; ring B is phenyl substituted with 0-4 R7, pyridyl substituted with 0-3 R7, or thienyi substituted with 0-2 R7; X is NH or NMe; Y is O or S; R5 is a -(CRfRf)n-C3-10 carbocycle substituted with 1-4 R5a, or a -(CRfRf)n-5- to 10-membered heterocycle comprising: carbon atoms and 1-4 heteroatoms selected from N, NR11, O, and S(O)p, wherein said heterocycle is substituted with 0-4 R5a; the other substituents and variables are defined in the claims.