Error fetching sub account history

I am trying to get the sub account deposit history. but I get this error, { code: -5021, msg: ‘This parent sub have no relation’ }. I use the parent api key to sign the request. I am not sure what the error is about and how to fix it.

The master account of the API Key provided is not related to a sub-account with the given email address.