Filter by CustomerNumber on Sage 300 API ARInvoiceBatches

Hi all, 

I would like to know if it is possible to filter by CustomerNumber in Invoice Model using $Filter

I try to do as below but I am getting "The child type 'Invoice.CustomerNumber' in a cast was not an entity type. Casts can only be performed on entity types."

Any other way to filter the invoices by CustomerNumber?