Sample Response
JSON Data
If all goes well, the HTTP code will be 200 and in the result info the reponse_code will be 0.
{
"result_info": {
"response_code": 0,
"response_description": ""
},
"results": {
"total_items_available": 321,
"items_included": 2,
"diamonds": [
{
"diamond_id": 124298419,
"shape": "Round",
"weight": 1.2,
"color": "F",
"clarity": "VVS1",
"row_number": 1
},
{
"diamond_id": 128712167,
"shape": "Princess",
"weight": 1.13,
"color": "F",
"clarity": "VVS1",
"row_number": 2
}
]
}
}
In case of an exception, the error message will be displayed in this format. If there is an unexpected error, the HTTP code will be 500.
{
"result_info": {
"response_code": 32110,
"response_description": "A description of the exception."
}
}
Example for expired session:
{
"result_info": {
"response_code": 62199,
"response_description": "Invalid or expired session."
}
}