Get sub-account deposit history from API

Can someone provide me a work example of getting a sub-accounts deposit history via the REST api? I can’t seem to get this to work.

what’s the error?