I generate the ssl certificate through the panel and it happens normally, but taking the same parameters and trying to do it by API, I have a NULL returned, note: dns are propagated, can it help?
public function SslActive($domains, $id)
{
$url = $this->url . '/acme?action=apply_cert_api';
$data = parent::GetKeyData();
$data['domains'] = $domains;
$data['auth_type'] = 'http';
$data['auth_to'] = $id;
$data['auto_wildcard'] = 0;
$data['id'] = $id;
return json_decode(parent::Execute($url,$data));
}