Ian McCall's men are already assured of a promotion play-off place and will play Inverness Caley Thistle over two legs in the quarter-final.
Thistle are one of several teams involved in a relegation battle but a draw for Gary Caldwell's side would see them move out of the bottom two at the expense of Alloa.
Ayr have won all three meetings this season - two in the Championship and one in the Betfred Cup - and they go head to head again at the Energy Check Stadium at Firhill on Saturday.