Title: WooCommerce Batch update API
Last modified: July 2, 2022

---

# WooCommerce Batch update API

 *  Resolved [xerotest](https://wordpress.org/support/users/xerotest/)
 * (@xerotest)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-batch-update-api/)
 * Hello,
 * When I am requesting for batch product update using WooCommerce API, It gives
   me response code 200 but response content is blank
 * Expected respose:
 *     ```
       "update": [
           {
             "id": 799,
             "name": "Ship Your Idea",
             "slug": "ship-your-idea-22",
             "permalink": "https://example.com/product/ship-your-idea-22/",
             "date_created": "2017-03-23T17:03:12",
             "date_created_gmt": "2017-03-23T20:03:12",
             "date_modified": "2017-03-23T17:03:12",
             "date_modified_gmt": "2017-03-23T20:03:12",
             "type": "variable",
             "status": "publish",
             "featured": false,
             "catalog_visibility": "visible",
             "description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.
       \n",
             "short_description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
       \n",
             "sku": "",
             "price": "",
             "regular_price": "",
             "sale_price": "",
             "date_on_sale_from": null,
             "date_on_sale_from_gmt": null,
             "date_on_sale_to": null,
             "date_on_sale_to_gmt": null,
             "price_html": "",
             "on_sale": false,
             "purchasable": false,
             "total_sales": 0,
             "virtual": false,
             "downloadable": false,
             "downloads": [],
             "download_limit": -1,
             "download_expiry": -1,
             "external_url": "",
             "button_text": "",
             "tax_status": "taxable",
             "tax_class": "",
             "manage_stock": false,
             "stock_quantity": null,
             "stock_status": "instock",
             "backorders": "no",
             "backorders_allowed": false,
             "backordered": false,
             "sold_individually": false,
             "weight": "",
             "dimensions": {
               "length": "",
               "width": "",
               "height": ""
             },
             "shipping_required": true,
             "shipping_taxable": true,
             "shipping_class": "",
             "shipping_class_id": 0,
             "reviews_allowed": true,
             "average_rating": "0.00",
             "rating_count": 0,
             "related_ids": [
               414,
               40,
               34,
               463,
               15
             ],
             "upsell_ids": [],
             "cross_sell_ids": [],
             "parent_id": 0,
             "purchase_note": "",
             "categories": [
               {
                 "id": 9,
                 "name": "Clothing",
                 "slug": "clothing"
               },
               {
                 "id": 14,
                 "name": "T-shirts",
                 "slug": "t-shirts"
               }
             ],
             "tags": [],
             "images": [
               {
                 "id": 795,
                 "date_created": "2017-03-23T14:03:08",
                 "date_created_gmt": "2017-03-23T20:03:08",
                 "date_modified": "2017-03-23T14:03:08",
                 "date_modified_gmt": "2017-03-23T20:03:08",
                 "src": "https://example.com/wp-content/uploads/2017/03/T_4_front-11.jpg",
                 "name": "",
                 "alt": ""
               },
               {
                 "id": 796,
                 "date_created": "2017-03-23T14:03:09",
                 "date_created_gmt": "2017-03-23T20:03:09",
                 "date_modified": "2017-03-23T14:03:09",
                 "date_modified_gmt": "2017-03-23T20:03:09",
                 "src": "https://example.com/wp-content/uploads/2017/03/T_4_back-10.jpg",
                 "name": "",
                 "alt": ""
               },
               {
                 "id": 797,
                 "date_created": "2017-03-23T14:03:10",
                 "date_created_gmt": "2017-03-23T20:03:10",
                 "date_modified": "2017-03-23T14:03:10",
                 "date_modified_gmt": "2017-03-23T20:03:10",
                 "src": "https://example.com/wp-content/uploads/2017/03/T_3_front-10.jpg",
                 "name": "",
                 "alt": ""
               },
               {
                 "id": 798,
                 "date_created": "2017-03-23T14:03:11",
                 "date_created_gmt": "2017-03-23T20:03:11",
                 "date_modified": "2017-03-23T14:03:11",
                 "date_modified_gmt": "2017-03-23T20:03:11",
                 "src": "https://example.com/wp-content/uploads/2017/03/T_3_back-10.jpg",
                 "name": "",
                 "alt": ""
               }
             ],
             "attributes": [
               {
                 "id": 6,
                 "name": "Color",
                 "position": 0,
                 "visible": false,
                 "variation": true,
                 "options": [
                   "Black",
                   "Green"
                 ]
               },
               {
                 "id": 0,
                 "name": "Size",
                 "position": 0,
                 "visible": true,
                 "variation": true,
                 "options": [
                   "S",
                   "M"
                 ]
               }
             ],
             "default_attributes": [
               {
                 "id": 6,
                 "name": "Color",
                 "option": "green"
               },
               {
                 "id": 0,
                 "name": "Size",
                 "option": "M"
               }
             ],
             "variations": [],
             "grouped_products": [],
             "menu_order": 0,
             "meta_data": [],
             "_links": {
               "self": [
                 {
                   "href": "https://example.com/wp-json/wc/v3/products/799"
                 }
               ],
               "collection": [
                 {
                   "href": "https://example.com/wp-json/wc/v3/products"
                 }
               ]
             }
           }
         ]
       ```
   
 * Received Response: {}
 * I have tried with the 50 records to batch create, even batch limit is 100.
    I
   am referring woocommerce API : [https://woocommerce.github.io/woocommerce-rest-api-docs/#batch-update-products](https://woocommerce.github.io/woocommerce-rest-api-docs/#batch-update-products)
 * Can you please help me with this?
 * Your prompt help will be highly appreciated

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [3 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-batch-update-api/#post-15790694)
 * Hi [@xerotest](https://wordpress.org/support/users/xerotest/)
 * As you’re aware, the batch update limit for the products in the API is 100.
 * [https://woocommerce.github.io/woocommerce-rest-api-docs/#batch-update-products](https://woocommerce.github.io/woocommerce-rest-api-docs/#batch-update-products)
 * Whilst we can’t directly assist with the use of the REST API I have provided 
   some resources below which may assist you.
 * With regards to the WooCommerce REST API access codes for that can be set from
   inside your WooCommerce site by following this documentation.
 * [https://docs.woocommerce.com/document/woocommerce-rest-api/](https://docs.woocommerce.com/document/woocommerce-rest-api/)
 * For the developer level documentation, you can find located on this site below
   and this covers authentication and all of the endpoints and parameters which 
   can be accessed via the REST API.
 * [https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction](https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction)
 * With regards to testing API calls, we have some information on testing API calls
   using an App called Postman and I’ve referenced that for you below too.
 * [https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API](https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API)
 * I hope this helps.
 *  Thread Starter [xerotest](https://wordpress.org/support/users/xerotest/)
 * (@xerotest)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-batch-update-api/#post-15793740)
 * Thank you for your reply, and I really appreciate your help.
 * When I do the request for single product create or update it works, It gives 
   me response code 200 and it gives response content according to documetation,
   using [https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-product](https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-product)
   and [https://woocommerce.github.io/woocommerce-rest-api-docs/#update-a-product](https://woocommerce.github.io/woocommerce-rest-api-docs/#update-a-product),
   only when I request for batch product create/update it gives me response code
   200, but response content is blank.
 * I am using Python request, Is there any configuration I need to do for that?
 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [3 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-batch-update-api/#post-15794930)
 * Hey [@xerotest](https://wordpress.org/support/users/xerotest/)
 * I’m not too sure about the custom pythen script you’ll have created for the batch
   update. You could however test a batch update process using Postman App to see
   what response is returned.
 * For questions related to development and using the REST API, your best bet is
   to ask on either the [WooCommerce Advanced Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the [WooCommerce Developer Slack Channel](https://woocommerce.com/community-slack/).
 * There should be some community members that are using the batch update feature
   of the REST API that can offer some guidance with regards to initiating that 
   using a python script.
 * I wish I could help more, but hopefully, this gets you going in the right direction
   to get the job done.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WooCommerce Batch update API’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [woocommerce api](https://wordpress.org/support/topic-tag/woocommerce-api/)

 * 3 replies
 * 2 participants
 * Last reply from: [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-batch-update-api/#post-15794930)
 * Status: resolved