Best answer

As I am trying to create a product on Bigcommerce using Sheets with the help of Webhooks, I am confused about what fields to fill in.

  • 14 December 2022
  • 8 replies
  • 97 views

Userlevel 1
Badge +1

API PATH: https://api.bigcommerce.com/stores/**********/

CLIENT ID: ga4r71*******223ad2un**************g

ACCESS TOKEN: qsnx04u**********8***cool

 

I have these all but I don't know what to fill in which field

icon

Best answer by Todd Harper 14 December 2022, 14:05

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.

8 replies

Userlevel 6
Badge +8

Should be as in the screenshot below (no Client ID required). Also, for the full list of options to include in the “Data” area, visit https://developer.bigcommerce.com/api-reference/366928572e59e-create-a-product

Let me know whether this works for you :)

 

Userlevel 1
Badge +1

still facing error 

 

Userlevel 6
Badge +8

Can you confirm that you got your access token by creating an API account in your BigCommerce control panel. According to the API reference docs, BigCommerce expects a number, and you’re giving it a string with a mix of numbers and letters (ie “qsnx04...”).

If you’re sure you are entering the correct access token, perhaps try wrapping the description field in <p> and <span> html tags (see example below)...shouldn’t be required, but let’s test the heck out of it.

<p><span>Description Text</span></p>

Userlevel 1
Badge +1

ok I’ll try this, but can u  tell me what is payload type and what is the work of this ? 

Userlevel 6
Badge +8

Ah, good question. Payload type is how the information is sent to the app. Form means that the data is encoded and sent as a URL (ie. https://api.bigcommerce...X-Auth-Token=qsnx04...&price=5) while JSON is encoded and sent as { "X-Auth-Token": "qsnx04...", "price”: 5 }. If the above suggestions above don’t work, it could be worth trying to send it in a JSON payload format.

Userlevel 1
Badge +1

so, In which form should I send the data?

please help me for this

 

Userlevel 7
Badge +12

Hi @RahulGupta 

According to the BigCommerce Docs, your payload needs to be JSON not form

Userlevel 1
Badge +1

@GetUWired & @Todd Harper  thank you so much