While provisioning a hosting account via API, Plesk returns with: Error code: 1018. Error message: Unable to create hosting. Ip address does not exist in client's pool
Run the following as root via SSH on the server:
plesk repair db -y
Then try your action again. If that doesn't do it, run this:
plesk repair db -y && plesk repair web -y
Then try your action again. This should automatically repair the IP pools configuration in the database.