Enabling Twilio for SaaS platform

For company which having SaaS based product, There is always the question of what goes into Cost of Goods Sold vs Cost of Revenue to calculate gross margin, Customer Lifetime Value (LTV), Customer Acquisition Cost (CAC) Payback Time and to understand company’s unit economics in general.