Apple ID
How do I get verification code for an Apple ID using another phone number?
Apple Intelligence is now available on iPhone, iPad, and Mac!
How do I get verification code for an Apple ID using another phone number?
If you setup the other number as a trusted number you can request the code be sent to it by tapping or clicking on the "Didn't get verification code" box under the sign-in in screen.
See here for details: Link-> Get a verification code and sign in with two-factor authentication - Apple Support
If you have not added it as a trusted number for your account yet, then you cannot get a code sent to it.
Link-> Two-factor authentication for Apple ID - Add Trusted phone number - Apple Support
If you setup the other number as a trusted number you can request the code be sent to it by tapping or clicking on the "Didn't get verification code" box under the sign-in in screen.
See here for details: Link-> Get a verification code and sign in with two-factor authentication - Apple Support
If you have not added it as a trusted number for your account yet, then you cannot get a code sent to it.
Link-> Two-factor authentication for Apple ID - Add Trusted phone number - Apple Support
Apple ID