Hide product after creation

Shopify Partner
6 0 0

My app creates a surcharge product that is applicable on the cart value. 

is there a way that this product is not visible on the online store by default ? 
is there some key that I have to add at time of creation that makes it not visible on the online store ? 

I tried making published:false and published_at: null but both these cases resulted in not able to add the product to cart. 

there are other apps that are able to do it. Can someone help ?

Replies 0 (0)