The eight group winners and three best runners-up qualify for the last 16, where they will be joined by Celtic, Rangers, Aberdeen, Heart of Midlothian and Hibernian.
GROUP A
Saturday July 15
Stenhousemuir v St Johnstone (3.00pm)
Stirling Albion v Ayr United (3.00pm)
Tuesday July 18
Alloa Athletic v Stirling Albion (7.45pm)
Ayr United v Stenhousemuir (7.45pm) - Townhead Park, Cumnock
Saturday July 22
Alloa Athletic v St Johnstone (3.00pm)
Stirling Albion v Stenhousemuir (3.00pm)
Tuesday July 25
St Johnstone v Ayr United (7.45pm)
Stenhousemuir v Alloa Athletic (7.45pm)
Saturday July 29
Ayr United v Alloa Athletic (3.00pm)
St Johnstone v Stirling Albion (3.00pm)
GROUP B
Saturday July 15
Peterhead v Partick Thistle (3.00pm)
The Spartans v Dundee United (3.00pm)
Tuesday July 18
Dundee United v Partick Thistle (Viaplay, 7.45pm)
The Spartans v Falkirk (7.45pm)
Saturday July 22
Dundee United v Peterhead (3.00pm)
Partick Thistle v Falkirk (3.00pm)
Tuesday July 25
Falkirk v Dundee United (Viaplay, 7.45pm)
Wednesday July 26
Peterhead v The Spartans (7.45pm)
Saturday July 29
Falkirk v Peterhead (3.00pm)
Partick Thistle v The Spartans (3.00pm)
GROUP C
Saturday July 15
Brechin City v Livingston (3.00pm)
Clyde v Hamilton Accies (3.00pm)
Tuesday July 18
Cove Rangers v Clyde (7.45pm)
Hamilton Accies v Brechin City (7.45pm)
Saturday July 22
Brechin City v Cove Rangers (3.00pm)
Livingston v Hamilton Accies (3.00pm)
Tuesday July 25
Clyde v Brechin City (7.45pm)
Cove Rangers v Livingston (7.45pm)
Saturday July 29
Hamilton Accies v Cove Rangers (3.00pm)
Livingston v Clyde (3.00pm)
GROUP D
Saturday July 15
Kelty Hearts v Greenock Morton (3.00pm)
Stranraer v Ross County (3.00pm)
Tuesday July 18
Greenock Morton v Stranraer (7.45pm)
Wednesday July 19
FC Edinburgh v Kelty Hearts (7.45pm)
Saturday July 22
Ross County v Greenock Morton (3.00pm)
Stranraer v FC Edinburgh (3.00pm)
Tuesday July 25
Kelty Hearts v Stranraer (7.45pm)
Wednesday July 26
FC Edinburgh v Ross County (7.45pm)
Saturday July 29
Greenock Morton v FC Edinburgh (3.00pm)
Ross County v Kelty Hearts (3.00pm)
GROUP E
Saturday July 15
Airdrieonians v Dumbarton (3.00pm)
Inverness CT v Bonnyrigg Rose (3.00pm)
Tuesday July 18
Bonnyrigg Rose v Dundee (7.45pm)
Dumbarton v Inverness CT (7.45pm)
Saturday July 22
Airdrieonians v Dundee (3.00pm)
Dumbarton v Bonnyrigg Rose (3.00pm)
Tuesday July 25
Inverness CT v Airdrieonians (7.45pm)
Wednesday July 26
Dundee v Dumbarton (7.45pm)
Saturday July 29
Bonnyrigg Rose v Airdrieonians (3.00pm)
Sunday July 30
Dundee v Inverness CT (Viaplay, 3.00pm)
.
GROUP F
Saturday July 15
Kilmarnock v Annan Athletic (3.00pm)
Raith Rovers v Dunfermline Athletic (Viaplay 5.15pm)
Tuesday July 18
Dunfermline Athletic v Annan Athletic (7.45pm)
Raith Rovers v Albion Rovers (7.45pm)
Saturday July 22
Annan Athletic v Albion Rovers (3.00pm)
Dunfermline Athletic v Kilmarnock (3.00pm)
Tuesday July 25
Albion Rovers v Dunfermline Athletic (7.45pm)
Wednesday July 26
Kilmarnock v Raith Rovers (7.45pm)
Saturday July 29
Albion Rovers v Kilmarnock (3.00pm)
Annan Athletic v Raith Rovers (3.00pm)
GROUP G
Saturday July 15
East Fife v Queen's Park (3.00pm)
Elgin City v Motherwell (3.00pm)
Tuesday July 18
East Fife v Elgin City (7.45pm)
Queen of the South v Motherwell (7.45pm)
Saturday July 22
Elgin City v Queen of the South (3.00pm)
Motherwell v Queen's Park (Viaplay, 5.15pm)
Tuesday July 25
Queen's Park v Elgin City (7.45pm)
Queen of the South v East Fife (7.45pm)
Saturday July 29
Motherwell v East Fife (3.00pm)
Queen's Park v Queen of the South (3.00pm)
GROUP H
Saturday July 15
Forfar Athletic v Cowdenbeath (3.00pm)
Montrose v St Mirren (3.00pm)
Tuesday July 18
Montrose v Forfar Athletic (7.45pm)
Wednesday July 19
Arbroath v Cowdenbeath (7.45pm)
Saturday July 22
Cowdenbeath v Montrose (3.00pm)
St Mirren v Arbroath (3.00pm)
Tuesday July 25
Cowdenbeath v St Mirren (7.45pm)
Forfar Athletic v Arbroath (7.45pm)
Saturday July 29
Arbroath v Montrose (3.00pm)
St Mirren v Forfar Athletic (3.00pm)
Venue notes
Group A: Ayr United v Stenhousemuir will be played at Townhead Park, Cumnock, due to pitch works at Somerset Park
Group G: Queen's Park will play their home games at Lesser Hampden
Format
Three points for a win and one point for a draw. Drawn matches in the group stage go straight to a penalty shoot-out, with the winners awarded a bonus point.
Dates for future rounds
Second round - Weekend of August 19/20
Quarter-finals - Midweek of September 26-28
Semi-finals - Weekend of November 4/5
Final - Sunday December 17