Is the store that you’re trying to connect to an active store? The 402 error is usually returned if a store is not active:
“The requested shop is currently frozen. The shop owner needs to log in to the shop’s admin and pay the outstanding balance to unfreeze the shop.”