Unleashed sales orders imported into Xero - based on customer type

Has anyone worked out how to send a completed sales order from Unleashed to Xero and create a sales invoice based on a certain type of customer? Or something similar I can use as a working guide?

I tried the native integration in Unleashed but it sends all or nothing, you can’t limit the data sending based on customer type.