Support Forum [ All Topics | New Topic ]

Thread: Error 4001 when querying single diamonds and list diamonds

I am making a custom integration for rapnet instant inventory.

It is based on PHP and uses JSON. 

I have set up a feed in Rapnet instant inventory but when i'm only getting the Error 4001: No Diamond was found error when querying the API.

The same is happening when i test the Instant inventory template preview widget in the Rapnet backend. When i run a search with no criteria in the preview widget it will show a popup with the same error message.
This gives me the idea the problem is with the feed and not the custom integration but i have no way to confirm this.

Just for complete information. These are the JSON requests i'm sending to the API:

Get all diamonds:
{
"request": {
"header": {
"username": "********",
"password": "********"
},
"body": {
"page_number": 1,
"page_size": 50
}
}
}
Get single diamond: 
{
"request": {
"header": {
"username": "********",
"password": "********"
},
"body": {
"diamond_id": "15003824001"
}
}
}

Does anybody know how to fix this?


>> add a comment
Tijs van Raaij
05/24/2018 01:11


1 Replies:

Tijs van Raaij,
Hello and welcome to Instant Inventory.
Thank you for contacting the TechNet Support forum.  I also updated your support forum question.

1) The error is correct (No Diamond was found ). The RapNet Instant Inventory feeds selected no diamonds. Your diamond feeds ranges, for Cut, Clarity and Symmetry, are reversed (Incorrect example: from 'Poor' to 'Excellent').
Please choose the higher choice for 'From' and the lower (or same) choice for 'To' (Correct example: from 'Excellent' to 'Poor').

2) Also, to get more diamonds, you may want to select more suppliers.
After changing Instant Inventory, you may have to wait up to four hours for the changes to take effect, as the diamonds are selected and refreshed every four hours.

3) I tested the JASON API code and it looks good. When you have diamonds selected, the code should then give you results.

For any more questions - you can post here, contact your customer service rep or email to me at tech@diamonds.net.
Thank you,

>> add a comment
Tech customer support -Zalman
5/31/2018 5:41:00 AM