add transaction type json endpoint