When importing TLDs using a registrar, like OpenSRS, some may fail and some may succeed. If any fail, the TLDs are still created in Blesta but their prices are set to 0.00. If importing a TLD fails to fetch pricing from the registrar, do not create the TLD in Blesta.
I was able to reproduce this by using OpenSRS and importing the TLDs .sh, and .xyz. .sh was successful, while .xyz failed.
The request for .xyz failed with this response:
INPUT:
https://horizon.opensrs.net:55443
a:4:
{s:6:"domain";s:30:"tldpricingtestdomainblesta.xyz";s:6:"period";i:1;s:11:"all_periods";i:1;s:8:"reg_type";s:3:"new";}
OUTPUT:
https://horizon.opensrs.net:55443
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
<header>
<version>0.9</version>
</header>
<body>
<data_block>
<dt_assoc>
<item key="object">DOMAIN</item>
<item key="is_success">0</item>
<item key="protocol">XCP</item>
<item key="response_text">No registry agent to service .xyz</item>
<item key="action">REPLY</item>
<item key="response_code">400</item>
</dt_assoc>
</data_block>
</body>
</OPS_envelope>