You could have the original API Endpoint’s workflow trigger both responses. The responses being 2 additional workflows, where they each only run if conditions are met. So Zapier webhook is received > trigger API workflows A & B
A will only run if the webhook says the order was for a digital product. B will only run if for a physical product.