St Mirren will face Arbroath, Montrose, Forfar Athletic and Cowdenbeath in Group H of the 2023/24 Viaplay Cup group stage.
The 2023/24 Viaplay Cup begins on the weekend of July 15/16, with further matchdays on July 18/19, July 22/23, July 25/26 and July 29/30.
The eight group winners and three best runners-up will join European representatives Celtic, Rangers, Aberdeen, Heart of Midlothian and Hibernian in the last 16 on August 19/20.
Fixtures dates and venues will be confirmed in due course.