Search Requests from Python Returns Error 500

Hi Everyone,
I have been working on implementing the Airbus SPOT/PHR data into a python program and I have been getting an error 500 in the program. Testing the JSON request in Postman results in the intended response.
python generated JSON file:

{
    "provider": "Airbus",
    "bounds": {
        "geometry": {
            "type": "Polygon",
            "coordinates": [
                [
                    [-80.169732, 43.567703],
                    [-80.186309, 43.579423], 
                    [-80.205621, 43.565087], 
                    [-80.18582, 43.555801], 
                    [-80.169732, 43.567703]
                ]
            ]
        }
    },
    "data": [
        {
            "constellation": "SPOT"
        }
    ]
}

header:

header = {"Authorization" : "Bearer " + token["access_token"], "Content-Type": "application/json"}

request Function:

r = requests.post(url = "https://services.sentinel-hub.com/api/v1/dataimport/search", json = payload, headers = header)

Response:

<html>

<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title>Error 500 Internal Server Error</title>
</head>

<body>
	<h2>HTTP ERROR 500</h2>
	<p>Problem accessing /api/v1/dataimport/search. Reason:
		<pre>    Internal Server Error</pre>
	</p>
	<hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.3.v20170317</a>
	<hr />

</body>

</html>

Would there be any reason why this would happen?

Hi @jsulik,
I would bet that there is an issue with authorization.
I see you have managed to order some items in the past few days - should I assume you solved the issue?

Hi @gmilcinski,
Thanks for your reply, and I did get it to work. The provider element was supposed to be all uppercase, rather than the mix of uppercase and lowercase. The API returns error 500 if there is a typographical error in the JSON file.