I’ve been reading all I can find on the forum about this topic but can’t find antyhing with the same issue as myself. There are similar ones but they haven’t made me able to figure out my issue.
I’m trying to connect to an external API and after adding all my parameters I get the error message
Unsupported content type: text/xml
After reading on this forum I then tried adding the parameter contentType:text/xml and then also tried contentType: application/xml. None of them worked but now I instead get the below error:
Code 400 with the error message Parameter contentType is not supported.
And you need to add this in a Header and it should be Content-Type ( not contentType that you have added currently ) and application/xml according to the docs ( normally it’s Content-Type and application/json for most APIs. I think you could do that with this too? Not sure ).
I did try to add Content-Type: application/xml as Header instead of previously used Query Param.
Still doesn’t work but at least now I don’t get the error in the response but I still get the Content type error message.
It does however look like I get the data I’m looking for in the response (the price amount) so maybe it’s a matter of finding the result key as Benalihoussam suggested?
I just haven’t been able to find it in the documentation.