We’ve added an official /download_ubl endpoint to support sales invoice UBL downloads . Read more in the sales invoice API documentation.