fix invoice api typo