Developer Forum [ All Topics | New Topic ]

Thread: Advance options feature

Hello there,

I have seen another websites using advanced options on their widgets (Since the basic ones Price, Carat, shape, etc..) for the normal AngularJS widget.

Is there an additional label for the Division of the iframe that can call advanced options as options to be filtered (Like measurement, Crown heigh, Crown angle.). See, the issue is since is an IFrame, I cannot directly interact with those options,.I also  built a SOAP request with XML to test the auth and is bringing me information of these, so everything is ready to go.

Is there any option to set up this on the widget creation? Or has to be a CSS - HTML integration?

Thanks!


>> add a comment
Juan S.
03/27/2019 11:12


3 Replies:

Hi Juan,

At this time we do not offer the option to add additional fields to the widget. The websites that you see with additional options are using custom integration. If you have any additional questions please email tech@diamonds.net


RapNet Support

>> add a comment
RapNet Support
4/3/2019 12:12:00 PM
Hi did you try using Json rather than Soap

>> add a comment
J
12/16/2019 7:45:00 AM
{
"request": {
"header": {
"username": "awesome",
"password": "jsonrocks"

},
"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",
"eye_cleans": ["Yes", "Borderline"],
"page_number": 1,
"page_size": 20,
"sort_by": "price",
"sort_direction": "Asc"
}
}
}


Get Diamonds - sample response
{
"response": {
"header": {
"error_code": 0,
"error_message": ""

},
"body": {
"search_results": {
"diamonds_returned": 20,
"total_diamonds_found": 30,
"sorted_by": "Price",
"sort_direction": "Asc"
} ,
"diamonds": [
{
"diamond_id": 1234567,
"shape": "Round",
"size": 0.22,
"color": "J",
"fancy_color_dominant_color": "",
"fancy_color_secondary_color": "",
"fancy_color_overtone": "",
"fancy_color_intensity": "",
"clarity": "VS1",
"cut": "Fair",
"symmetry": "Fair",
"polish": "Good",
"depth_percent": 62.1,
"table_percent": 62.00,
"meas_length": 3.84,
"meas_width": 3.94,
"meas_depth": 2.41,
"girdle_min": "",
"girdle_max": "",
"girdle_condition": "",
"culet_size": "None",
"culet_condition": "",
"fluor_color": "",
"fluor_intensity": "None",
"has_cert_file": true,
"lab": "GIA",
"total_sales_price": 5678.0000,
"currency_code": "USD",
"currency_symbol": "$",
"total_sales_price_in_currency": 5678.0000,
"cert_num": "123456789",
"stock_num": "ABCDEFG",
"has_image_file": true,
"image_file_url": "//certs.rapnet.com/userfolders/3/Images/D87G.jpg",
"has_sarineloupe" : false,
"eye_clean": ""
} ,
.
.
.
{
"diamond_id": 89101112,
"shape": "Round",
"size": 0.230,
"color": "G",
"fancy_color_dominant_color": "",
"fancy_color_secondary_color": "",
"fancy_color_overtone": "",
"fancy_color_intensity": "",
"clarity": "VS1",
"cut": "Good",
"symmetry": "Fair",
"polish": "Good",
"depth_percent": 60.6,
"table_percent": 64.00,
"meas_length": 3.89,
"meas_width": 3.99,
"meas_depth": 2.38,
"girdle_min": "Very Thin",
"girdle_max": "Very Thick",
"girdle_condition": "",
"culet_size": "None",
"culet_condition": "",
"fluor_color": "",
"fluor_intensity": "None",
"has_cert_file": true,
"lab": "GIA",
"total_sales_price": 8203.0000,
"currency_code": "USD",
"currency_symbol": "$",
"total_sales_price_in_currency": 8203.0000,
"cert_num": "12345678",
"stock_num": "ABCDEFG",
"has_image_file": false,
"image_file_url": "",
"has_sarineloupe" : false,
"eye_clean": ""
}
]
}
}
}


>> add a comment
J
12/16/2019 7:52:00 AM