In this post, I only am going to give an advice where you are working with APIs.
Assume that the API is CASE SENSITIVE
I was working with the Bookeo API and for a couple of days I was wondering why my code wasn’t working and the endpoint returned me “Json Invalid” and after hounded of times trying to make my code work, I made it when I change all the json keys to case sensitive. Example: productid to productId
Maybe this is not the most interesting post about APIs but believe me when even sending an email to customer service they weren’t able to tell me what was the problem.
Hope you this information helps you.