I absolutely hate NameCheap’s API approach. They are the worst! I’d never use their API.
This is how I get my wildcard cert for Caddy with NameCheap: