Create reseller with API

Wat would be the correct way to create a reseller via the API?