Sales tax application invoices API

We use the Square API to pass invoices. We do business across the country. Sales tax is only applied to items sold within the same state in which we operate. Therefore we have invoices with and without sales tax applied. This process has worked in past but recently we had an invoice where Square applied sales tax when it should not have. Has anyone run into this issue?