API Success but null data

I’m integrating with Solis API using Cornerstones External API.

The Solis API works perfectly in other tests with Postman for example, and while I am getting a success 200 ok response, the data is coming back null and a msg contains an error message that apparently isn’t part of the Solis API. I’ve been on to Solis support and they have advised me to look in to Cornerstone as it’s not their code. The Code=1 isn’t their response either.

Has anyone ever received a response like this before?

{
    "success": true,
    "code": "1",
    "msg": "Communication error. Please refresh and try again later",
    "data": null
}

I resolved this issue. For anyone else having silimiar issues with External API calls - I had relied on the key-value pair format listed by ThemeCo’s API Tester - specifically the Content Type key. The API was expecting “Content-Type” but ThemeCo was sending “content_type” with the request.

Hope this helps others.

Hi Michael,

Glad that you are able to find the solution and share it here. I will surely check this with our development team.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.