Hi,
I am a little confused with the response that I am getting from rapnet services.
I am using this url to get the diamonds
https://technet.rapaport.com/HTTP/JSON/RetailFeed/GetDiamonds.aspx
with request :
{"request": {"header": {"username": "sjvfd3yn******ygax2tyvpl", "password": "YJ***tu"}, "body": {"search_type": "White", "shapes":["Round", "Pear", "Princess", "Marquise", "Oval", "Radiant", "Emerald", "Heart", "Cushion", "Asscher"], "size_from": 0, "size_to": 10, "color_from": "D", "color_to": "M", "clarity_from": "IF", "clarity_to": "I3", "cut_from": "Excellent", "cut_to": "Poor", "polish_from": "Excellent", "polish_to": "Poor", "symmetry_from": "Excellent", "symmetry_to":"Poor", "price_total_from": 1, "price_total_to": 200000,"fluorescence_intensities":["Very Strong","Strong","Medium","Faint","Very Slight","None"], "labs": ["GIA", "IGI", "AGS", "HRD", "PGS", "DCLA", "VGR", "GCAL","NGTC", "GSI", "IIDGR", "NONE"], "table_percent_from": "0.0", "table_percent_to": "100.0", "eye_cleans": ["Yes", "Borderline", "No"], "page_number": 1, "page_size": 50, "sort_by": "price", "sort_direction": "Asc" }}}
but I am getting response of
{
"response": {
"header": {
"error_code": 0,
"error_message": ""
},
"body": {
"search_results": {
"diamonds_returned": 50,
"total_diamonds_found": 17097,
"sorted_by" :"PRICE",
"sort_direction": "ASC"
}
only 17097 total.
When I check with rapnet iFrame the result populating was 85187 total.
Did I miss something in the code?
buy the way I am using jquery ajax for the results to populate in JSON, and PHP for the server side coding.