To resolve the 404 error and send expired just e-signed statements to your internal system via API, try solving the API endpoint or changing permissions. Make sure that the structure of the API requests conforms with the requirements of your system. Make sure your code handles expiration properly and that e-signed files are supported.