When testing in the sandbox environment all APIs Shortcode 1 = all APIs except B2B i.e. ‘Party B’ where you use Short Code 2.
Lipa na M-Pesa online Short code = 174379 (FOR LIPA NA MPESA ONLINE ONLY.)

The test credentials are provided in Sandbox