I see that the response structure for the APIs is not given anywhere. We can get to see it only after making a call. Can we have the response structure somewhere along with its documentation?
I see that the response structure for the APIs is not given anywhere. We can get to see it only after making a call. Can we have the response structure somewhere along with its documentation?
Actually, the response structure is provided for some of the GET calls. Example: https://www.clover.com/api_docs#!/ord...
We have not shown a minimum response structure due to the expandable nature of our API: https://docs.clover.com/build/web-app...
The model schema and model have been provided for all the POST API calls, and you can expect a GET API call to consistently use the same models+schemas. That being said, we are aware the documentation could be improved and we will get to it when we can.
So when I make a POST call to create an order, I will get the same structure in response as the request body, since this is exactly the same as in case of GET order call? What in case of a failure? What will be the possible error codes and their meanings?
We do not have any documentation for the error codes we return yet, however they do follow conventional http status codes with their respective definitions. See here for a quick list: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
I believe for error responses, we only return the status code with no additional messages in the body.
2 People are following this question.