|
Problem on getting diamond using json.
"search_type": "White", "shapes": ["round","Princess","pear"], "size_from": 0.2, "size_to": 15.3, "color_from": "D", "color_to": "K", "clarity_from": "IF", "clarity_to": "VS2", "cut_from": "Excellent", "cut_to": "Fair", "polish_from": "Excellent", "polish_to": "Fair", "symmetry_from": "Excellent", "symmetry_to": "Fair", "price_total_from": 100, "price_total_to": 150000, "labs": ["GIA","IGI"], "table_percent_from": "26.0", "table_percent_to": "66.0", "page_number": 1, "page_size": 20, "sort_by": "price", "sort_direction": "Asc"
{ "response":{ "header":{ "error_code":4001, "error_message":"No Diamond was found" }, "body":{ } } }
|
>> add a comment
|
Brien Secades
02/09/2015 03:10
|
|
7
Replies:
|
" in order to acticvte your RapLink service you have to define the diamonds that you want in your feed. right now you have no diamonds in your feed. you can craete your feed here http://www.rapnet.com/RapNet/RetailFeed/GeneralSettings.aspx
"
i check the support and so this article i tried it and i got ( An error (500) occurred in the following page: /rapnet/retailfeed/FeedSelection/Diamonds.aspx)
is this causing the problem? i cant update my feed?
|
>> add a comment
|
Brien
2/9/2015 3:12:00 AM
|
|
|
$auth_url = "https://technet.rapaport.com/HTTP/JSON/RetailFeed/GetDiamonds.aspx";
$post_string = '{ "request": { "header": { "username": "xxxxxx", "password": "xxxxxxx"
}, "body": { "search_type": "White", "shapes": ["round","Princess","pear"], "size_from": 0.2, "size_to": 15.3, "color_from": "D", "color_to": "K", "clarity_from": "IF", "clarity_to": "VS2", "cut_from": "Excellent", "cut_to": "Fair", "polish_from": "Excellent", "polish_to": "Fair", "symmetry_from": "Excellent", "symmetry_to": "Fair", "price_total_from": 100, "price_total_to": 150000, "labs": ["GIA","IGI"], "table_percent_from": "26.0", "table_percent_to": "66.0", "page_number": 1, "page_size": 20, "sort_by": "price", "sort_direction": "Asc" } } }';
|
>> add a comment
|
Brien Secades
2/9/2015 3:18:00 AM
|
|
|
Define your feed in this link http://www.rapnet.com/Rapnet/InventoryLink/GeneralSettings.aspx
|
>> add a comment
|
Reuven
2/9/2015 3:21:00 AM
|
|
|
we did that already. ill try do define again thanks. ill update if i still got problems
|
>> add a comment
|
Brien secades
2/9/2015 3:43:00 AM
|
|
|
same problem. defined the diamonds and everthing. its working on your template but not working on my json
|
>> add a comment
|
Brien
2/9/2015 3:57:00 AM
|
|
|
Remove "labs": ["GIA","IGI"], In your feed you have only 'None' in labs.
|
>> add a comment
|
Reuven
2/9/2015 4:08:00 AM
|
|
|