Draw been made for the group stages.
Group A
Inverness Caledonian Thistle
Falkirk
Stirling Albion
Brechin City
Forfar Athletic
Group B
Heart of Midlothian
Dunfermline Athletic
Peterhead
East Fife
Elgin City
Group C
Dundee
Dundee United
Cowdenbeath
Buckie Thistle
Raith Rovers
Group D
Ross County
Hibernian
Montrose
Alloa Athletic
Arbroath
Group E
Kilmarnock
Dumbarton
Ayr United
Clyde
Annan Athletic
Group F
Motherwell
Morton
Edinburgh City
Berwick Rangers
Queen's Park
Group G
Hamilton Academical
Queen of the South
Albion Rovers
Stenhousemuir
East Kilbride
Group H
Partick Thistle
St Mirren
Airdrieonians
Stranraer
Livingston
Dons, Celtic, Tribute Act and St Johnstone will join the eight group winners and the four best runners-up in the last 16 on August 8/9.