How to find a reseller by a domain name via RPC XML API?
The most efficient way is to retrieve vendor-guid of a subscription with get_info request. It specifies a GUID of customer's provider - Administrator or a reseller, whose resources are provided to the customer via subscriptions.
After that, list all resellers with filter by guid.
Refer to API documentation via integrated links for more information.