moved INVOICE API call