Is this possible? - Barcode to API call for shipping

Hey folks, new to the platform and trying to understand it's capabilities.

Here is what I am looking to accomplish.

Scan barcode via attached barcode scanner.

Scan sends API call using scanned number to retrieve package information to create shipping label.

The returned information is translated to an API call to create a shipping label.

Returned information contains base64 encoded label and tracking information.

Send label to printer.

Send API call to input tracking number in the website.

With all of this said, I've built exactly this in Zapier, and it works, other than the barcode scanning. Zapiers interface seems to require manually clicking the submit button and then re-highlighting the text field to make the next input.

What parts of this task can the app handle, and what should I run externally?

Would I be better off having a barcode scan run a macro that just clicks the submit button and then re-highlights the text field?

Thanks for any input. Happy to pay a reward for a working solution.