Error: “You need to first open your inventory in your Steam profile settings”

To resolve this issue, please go to your Steam account privacy settings and set your profile and inventory visibility to Public.