I have create a user. In the reseller, the user display. But when i had a mail domain i have a error. I have checked and in the database, the field parent_id is false (always 1). If i change to the reseller id, it's OK
When you create a client which is assigned to a reseller, you have to set the value of the field parent_id to the ID of the reseller in the params array.