|
Hello,
Can you check please if I am getting correct amount of diamonds from API with current settings in instant iventory. On Rapnet page I am getting around 40000, but API gives back only 9467
|
>> add a comment
|
Jokubas
05/26/2020 07:52
|
|
7
Replies:
|
Hi In order to assist you further I need your account details Just your account ID please
Thanks
|
>> add a comment
|
Rapnet Technical
5/26/2020 7:56:00 AM
|
|
|
Hi
95457
|
>> add a comment
|
Jokubas
5/26/2020 5:13:00 PM
|
|
|
Hi I checked your Instant Inventory and you are getting 9474 Diamonds Please can you send me a copy of your API code
The API code may be giving you all the values on Rapnet (Not the instant inventory value )
Thanks
|
>> add a comment
|
Rapnet Technical
5/27/2020 4:13:00 AM
|
|
|
Hi
{ "request": { "header": { "username": "*****", "password": "******" }, "body": { "search_type": "White", "page_number": 1, "page_size": 20 } } }
|
>> add a comment
|
Jokubas
5/27/2020 5:07:00 AM
|
|
|
I used the following code and I get 536 diamonds
{ "request": { "header": { "username": "*******", "password": "*******" }, "body": { "search_type": "White", "shapes": [ "Round" ], "size_from": "1", "size_to": "10", "page_number": "1", "page_size": "20" } } } -------------------------------------------------------------------------------------------------------------------------------- Here is the output
{ "response": { "header": { "error_code": 0, "error_message": "" }, "body": { "search_results": { "diamonds_returned": 20, "total_diamonds_found": 536, "sorted_by" :"PRICE", "sort_direction": "ASC" },
Try this code
|
>> add a comment
|
Rapnet Technical
5/27/2020 5:48:00 AM
|
|
|
Thanks,
Additional question. If I want to pull all diamonds in rapnet, should I set all possible configurations in instant inventory?
|
>> add a comment
|
Jokubas
5/28/2020 2:11:00 AM
|
|
|
Hi
For a single diamond you can play with the above or you can use the following code
{ "request": { "header": { "username": "", "password": "" }, "body": { "diamond_id": 41578579 } } }
You can modify the search criteria with whatever parameters you like
Thanks
|
>> add a comment
|
Rapnet Technical
5/28/2020 6:46:00 AM
|
|