Best answer

I'm trying to Check Uncheck the free shipping Field (Product field of BigCom) using Webhook tool but this is not working.


Userlevel 1
Badge +1

 

 

I think something is wrong with this is_free_shipping field because 

other fields are updating except this Free shipping field

please help me  

 

icon

Best answer by RahulGupta 22 December 2022, 06:07

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

10 replies

Userlevel 7
Badge +8

Hi @RahulGupta 

 

Can you please provide the API Documentation you are using so we can help you better? 

 

I would think its looking for 0 / 1 instead of false / true 

Userlevel 1
Badge +1

API doc:- https://developer.bigcommerce.com/api-reference/366928572e59e-create-a-product

 

yes, I’m using true/ false 

I exported some existing data from BigCom and there is value in Y/N in that field 

 

Userlevel 7
Badge +8

According to the API Documentation, it accepts “true”. False just means that this checkbox is unchecked. 

 

is_free_shipping

boolean

Flag used to indicate whether the product has free shipping. If true, the shipping cost for the product will be zero.

 

in case of false try to pass blank

Userlevel 1
Badge +1

NOT working

I tried yes/no, 0/1, and also blank values but that fields took their default values every time

 

Userlevel 7
Badge +8

You are trying to CREATE a new product OR UPDATE an Existing Product? Because the API you mentioned above is for creating New Products. 

Userlevel 1
Badge +1

well I’m trying both actually, I’m using Sheets as Trigger and applying a path if Id exists then the action goes for Update otherwise for NEW

 

Userlevel 7
Badge +8

Another thing, I THINK there is an extra space before “is_free_shipping” in your webhooks, delete that. 

Userlevel 1
Badge +1

Tried but still not working…..😣

Invalid Field returning 

 

 

Userlevel 7
Badge +8

Just to be clear, you are using those 2 endpoints 

 

POST

https://api.bigcommerce.com

/stores/{store_hash}/v3/catalog/products

 

PUT

https://api.bigcommerce.com

/stores/{store_hash}/v3/catalog/products/{product_id}

 

If so, maybe you want to open a ticket with support on BigCommerce because everything seems to be setup as per thier API Documentation. 

Userlevel 1
Badge +1

I guess something is wrong with that because I tried with code tool using Python as a result I’m able to Update and create new products and also able to change that Free shipping field