404 Error using the FILES API.

404 Error using the FILES API.

tonyn
Visitor
1 0 0

searched the forum, internet and everywhere else but I cannot seem to figure this out.

I am trying to upload files from my computer to shopify via the FILES API. But after confirming that I do indeed have the correct API key, access and proper code, I keep getting the 404 error.

The code briefly worked for 5 files then stopped and never allowed me to do it again.

Even a quick test of:

def test_files_api():
url = f"{SHOPIFY_STORE_URL}/admin/api/{API_VERSION}/files.json"
response = requests.get(url, headers=headers)
if response.status_code == 200:
print("Files API Connection Successful!")
print("Existing Files:", response.json())
elif response.status_code == 404:
print("404 Not Found: The Files API is unavailable.")
else:
print(f"Error {response.status_code}: {response.text}")

test_files_api()

gives me a 404 error...


any help would be appreciated. 

Replies 0 (0)