Eros7732 If you haven't yet, you would need to log into the game via Xbox as purchases can only be redeemed when logging in via the platform it was purchased on, (for example, if you had bought the Battle Pass from Xbox's store, you cannot login via another platform to activate the Battle Pass as those platforms cannot see your Xbox purchases).
If you do not own an Xbox, you could try Nvidia GeForce Now, (however, I do recommend logging into an actual console to help keep your account safe).
Reminder: While Apex Coins can be used across platforms, they are not cross compatible with the Switch, (meaning that the Switch has its own currency wallet).