How to get name of Financial Type ID?
There is a FinancialType API which returns the name with the ID, for example:

$financialTypeName = civicrm_api3('FinancialType', 'Getvalue', array('id' =&gt; $financialTypeId, 'return' =&gt; 'name'));