Developer Forum [ All Topics | New Topic ]

Thread: Instant Inventory : getting 3001 (Object reference not set to an instance of an object)

Grettings, i am using instant inventory api for fetching data, but unfortunately i am getting getting 3001 (Object reference not set to an instance of an object) .

Here is my request 

{
"request": {
"header": {
"username": "******",
"password": "*******"
},
"body": {
"search_type": "White",
"page_number": "1",
"page_size": "20"
}
}
}
 
I also tried to generate custom code from the ( Generate your own code) , but it is also showing the same error, here is the response


{
"response": {
"header": {
"error_code": 3001,
"error_message": "Object reference not set to an instance of an object."
},
"body": {
}
}
}


>> add a comment
yasir
07/28/2021 02:29


8 Replies:

Hi Yasir 


"error_code": 3001,

"error_message": "Object reference not set to an instance of an object."


This is usually caused by 
incorrect search criteria 
I would recommend trying the following code with the basic search criteria 

{
"request": {
"header": {
"username": "",
"password": ""
},
"body": {
"search_type": "White",
"shapes": ["round"],
"size_from": 0.2,
"size_to": 3,
"page_number": 1,
"page_size": 20,
"sort_direction": "Asc"
}
}
}



=======================================================================

Please can you send your e-mail address so I can send you the API codes 
Thanks 


>> add a comment
Technical support
7/28/2021 3:08:00 AM
I also tried your request code, but i am getting the same error code


{
"response": {
"header": {
"error_code": 3001,
"error_message": "Object reference not set to an instance of an object."
},
"body": {
}
}

Here is my email yasir@tetralogicx.com

>> add a comment
Yasir
7/28/2021 4:24:00 AM
I pasted your exact code, with my username and password

>> add a comment
Yasir
7/28/2021 4:25:00 AM
After checking your account (120332)
I see you have Instant Inventory Feeds and Rules 
But you only have feeds for Jewelry 

The API does not work with the jewelry feed 
It only works with the Diamond feeds 

That is why you getting the error 
Please create a Diamond feed and some rules and then the API will work 
Thanks 

>> add a comment
Technical support
7/28/2021 4:36:00 AM
Alright, thanks for your response, can you guide me about which api i should use to get the jewelry feed? if i cant use instant feed for jewelry its ok. but i want to get jewelry info so if there is some other api that can provide me that info according to my rules that will work for me

>> add a comment
Yasir
7/28/2021 8:20:00 AM
Hi Yasir 
The only way to see Jewelry is by the Widget only .
Unfortunately there is no API's for Jewelry 

It is only by the preview in Instant inventory (our widget)

Follow the link 
https://help.rapnet.com/en/articles/4086848-publish-the-jewelry-feed-on-your-website

Thanks 


>> add a comment
Technical support
7/28/2021 9:05:00 AM
Ok thanks for the response, if the API is not available then can i import the jewelry csv? is there a feature available for csv or something?

>> add a comment
Yasir
7/29/2021 6:35:00 AM
Hi
If you are trying to get the Data for Jewelry 
On the widget there is no csv file or anyway to export the data 
The data sits on our database\ system and we allow you to place our widget on your site 

If you would like a PDF of selected Jewelry 
the RapNet member can do this through the Jewelry listings option 

  1. Open RapNet > Jewelry 
  2. Select your items 
  3. Click More 
  4. select the option you would like to do
    example Export selected (PDF/Excel)
Thanks 

 

>> add a comment
Technical support
7/29/2021 10:11:00 AM