The response is a JSON document in UTF-8 encoding. The contents depend on the request results. The response contains HTTP headers to forbid proxy servers and local browsers to cache the content.
Successful response example:
HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 18 Mar 2016 17:51:12 GMT
Content-Length: 52
Cache-Control: no-cache
{
"param1":"value1",
"param2":"value2"
}
In case of an error, server responds with a 4xx HTTP code.
Error response example:
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 29
Date: Fri, 18 Mar 2016 17:51:12 GMT
Cache-Control: no-cache
{
"error":"Invalid Checkout currency"
}