Fetch API is not fetching and macro just stop

Hi,
tried to use the Fetch API but it seems that the command is not recognized and the macro just stops.
Please find my code as per below:

import { fetch } from '@forge/api';

async function zylofetch() {
try{
	const subscriptionId = 'XYZ';
	const resp = await fetch(`https://url/${subscriptionId}`,
	  {
		method: 'GET',
		headers: {
		  Authorization: 'Bearer USERID'
		}
	  }
	);
}catch(e){console.info(e);}
const status = result.status;
return status;
};

Can you please help?