add invoice API endpoints
v1.7.0