How to Add New Product in Bigcommerce via API V2

For Add new product in Bigcommerce account. You need to pass required product parameter in json encoded form.

First create an array of product required parameters.

Than you have to encode the $data_array in json form.


Using php curl code we can post the api request in bigcommerce. Below curl code use for add new product in bigcommerce api v2.

$headers = array(
“Content-type: application/json”

Use json content application in curl header request.

In curl code use bigcommerce admin username and api key to access the api request. After post this request new product is added iin account.

You can also add new product with SKU, for that use this api request url : https://store-l3wxicl7.mybigcommerce.com/api/v2/products/{product_id}/sku.


I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me to start working on your dream project - codefixup@gmail.com


    • Hi Zacaca

      To add image for product just need to pass “image_file” parameter as image path value. Its use Basic POST curl code to this request URL : /api/v2/products/{product_id}/images.

      Place your product id in request URL.


      • Hi Harish
        you demo for me ?
        $data_array = array(
        ‘name’=>’product name’,
        “type”=> “physical”,
        ‘description’ =>’description of product’,
        ‘price’ =>’21.98′,
        ‘retail_price’ =>’21.98′,
        ‘weight’ =>’0.5′,
        ‘depth’ =>’12’,
        “categories” => [23],
        “availability”=> “available”,
        ‘inventory_level’ =>’0′,
        “videos” => “https://www.youtube.com/watch?v=VNxnvMbmvN0”,
        “image_file” => “http://www.codefixup.com/wp-content/uploads/2016/09/add-products-in-jet-com-via-api.png”



Leave a Reply

Your email address will not be published. Required fields are marked *