Update ApiInvoice.java

Fix a bug in the code: a break statement was omiited in the switch case statement and it causes the class to throw exception.