To make this in a slow cooker:
Follow the instructions above until you finish cooking the onions, spices, garlic, and tomato paste. Pour those prepared ingredients into a crockpot and add the tomatoes, stock, and beans. Let the mixture cook on low for 7-8 hours or on high for 3-4 hours. If too much liquid evaporates, you may need to add additional stock. The soup should be simmering. Once the soup has simmered in the slow cooker, use an immersion blender to blend all of the ingredients together.
For an instant pot:
Use the simmer feature to cook the onions, spices, garlic, and tomato paste. Add the tomatoes, stock, and beans, and then cook either on the slow cook setting or on the meat/stew setting (for up to one hour.) Once cooked through, use an immersion blender to blend all of the ingredients together.
Cuisine soup
Recipe by Glitter, Inc. at https://glitterinc.com/healthier-protein-packed-classic-tomato-soup-that-can-be-made-in-a-slow-cooker/