• Resolved karthik92

    (@karthik92)


    Hi,
    I am using Shiprocket as my Shipping partner. Currently using the API provided by the Shiprocket team, we have integrated WooCommerce with Shiprocket. But I am facing issue with the order status.

    In the Shiprocket panel, the order is yet to dispatch, but in the WooComerce panel, the status is marked as Completed. On contacting with Shiprocket, they have mentioned that this is an issue with WooCommerce not fetching the status properly.

    Please check and do let me know how to fix this issue as soon as possible.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter karthik92

    (@karthik92)

    Hi @karthik92,

    Thank you for reaching out and bringing this to our attention. I understand how important your Shiprocket integration is and the need to have it functioning properly.

    However, this request falls outside the scope of our support because it involves a third-party platform. In this situation, the Shiprocket support or development team would be responsible for reviewing your setup and guiding you on how to correctly use their API or sync data from WooCommerce to their platform.

    If this were a core WooCommerce issue such as being unable to mark orders as completed or a built-in feature not working, we would be able to troubleshoot it. But since the issue involves a third-party plugin and its integration with their system, we recommend contacting Shiprocket’s support team so they can assist you through the proper channel.

    Thread Starter karthik92

    (@karthik92)

    On contacting Shiprocket , they told that this issue exists with WooCommerce. On contacting WooCommerce , it is being told that issue exists with Shiprocket.

    Where exactly is the issue happening?


    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I understand how frustrating it is when both sides point to each other, and you still don’t have a clear answer. Let me clarify what we can and cannot check from the WooCommerce side.

    WooCommerce does not automatically mark orders as Completed based on any external shipping or tracking status. By default, an order only becomes “Completed” when:

    • A manual action is taken by a store admin, or
    • A plugin or custom code updates the status programmatically.

    Since WooCommerce core has no built-in integration with Shiprocket, the only way the order status could change automatically is through the Shiprocket integration/plugin or custom code provided by Shiprocket’s API implementation.

    This means the process of updating the order status depends entirely on:

    • The Shiprocket plugin
    • Shiprocket API callbacks/webhooks
    • Any custom code added for this integration

    If the order appears “Yet to Dispatch” inside Shiprocket but shows as “Completed” in WooCommerce, the status change must be triggered by the integration on your site.

    However, to find out exactly why the order is being marked as Completed, could you please install the following plugin: https://d.pr/f/vb8o9m
    This plugin will log exactly what is changing the order status. Once installed, please share the log you receive so we can guide you accordingly.

    Thread Starter karthik92

    (@karthik92)

    Hi,
    I have installed the plugin that you have mentioned. I am sharing the error log with you.

    While I am typing this message, the 4 order ids : 76030, 76029, 76013, 76010 are completed in WooCommerce but yet to even ship or dispatch in my ShipRocket panel.

    Please check and do let me know where is the issue ?

    2025-11-28T04:59:46+00:00 DEBUG Order 76010 updated from processing to completed CONTEXT: {"data":"","backtrace":[{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/order-status-logger/order-status-logger.php","line":14,"function":"debug","class":"WC_Logger","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":326,"function":"log_order_status_update"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":517,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":448,"function":"do_action"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":272,"function":"status_transition","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php","line":829,"function":"save","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php","line":252,"function":"save_object","class":"WC_REST_Orders_V2_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1292,"function":"update_item","class":"WC_REST_CRUD_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1125,"function":"respond_to_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":439,"function":"dispatch","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api.php","line":459,"function":"serve_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":324,"function":"rest_api_loaded"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":565,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":418,"function":"do_action_ref_array"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":818,"function":"parse_request","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/functions.php","line":1342,"function":"main","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-blog-header.php","line":16,"function":"wp"},{"file":"/home/customer/www/julietindia.com/public_html/index.php","line":17,"args":["/home/customer/www/julietindia.com/public_html/wp-blog-header.php"],"function":"require"}]}
    2025-11-28T04:59:49+00:00 DEBUG Order 76013 updated from processing to completed CONTEXT: {"data":"","backtrace":[{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/order-status-logger/order-status-logger.php","line":14,"function":"debug","class":"WC_Logger","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":326,"function":"log_order_status_update"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":517,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":448,"function":"do_action"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":272,"function":"status_transition","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php","line":829,"function":"save","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php","line":252,"function":"save_object","class":"WC_REST_Orders_V2_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1292,"function":"update_item","class":"WC_REST_CRUD_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1125,"function":"respond_to_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":439,"function":"dispatch","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api.php","line":459,"function":"serve_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":324,"function":"rest_api_loaded"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":565,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":418,"function":"do_action_ref_array"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":818,"function":"parse_request","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/functions.php","line":1342,"function":"main","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-blog-header.php","line":16,"function":"wp"},{"file":"/home/customer/www/julietindia.com/public_html/index.php","line":17,"args":["/home/customer/www/julietindia.com/public_html/wp-blog-header.php"],"function":"require"}]}
    2025-11-28T04:59:53+00:00 DEBUG Order 76029 updated from processing to completed CONTEXT: {"data":"","backtrace":[{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/order-status-logger/order-status-logger.php","line":14,"function":"debug","class":"WC_Logger","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":326,"function":"log_order_status_update"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":517,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":448,"function":"do_action"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":272,"function":"status_transition","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php","line":829,"function":"save","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php","line":252,"function":"save_object","class":"WC_REST_Orders_V2_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1292,"function":"update_item","class":"WC_REST_CRUD_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1125,"function":"respond_to_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":439,"function":"dispatch","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api.php","line":459,"function":"serve_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":324,"function":"rest_api_loaded"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":565,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":418,"function":"do_action_ref_array"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":818,"function":"parse_request","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/functions.php","line":1342,"function":"main","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-blog-header.php","line":16,"function":"wp"},{"file":"/home/customer/www/julietindia.com/public_html/index.php","line":17,"args":["/home/customer/www/julietindia.com/public_html/wp-blog-header.php"],"function":"require"}]}
    2025-11-28T04:59:56+00:00 DEBUG Order 76030 updated from processing to completed CONTEXT: {"data":"","backtrace":[{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/order-status-logger/order-status-logger.php","line":14,"function":"debug","class":"WC_Logger","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":326,"function":"log_order_status_update"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":517,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":448,"function":"do_action"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php","line":272,"function":"status_transition","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php","line":829,"function":"save","class":"WC_Order","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php","line":252,"function":"save_object","class":"WC_REST_Orders_V2_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1292,"function":"update_item","class":"WC_REST_CRUD_Controller","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":1125,"function":"respond_to_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api/class-wp-rest-server.php","line":439,"function":"dispatch","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/rest-api.php","line":459,"function":"serve_request","class":"WP_REST_Server","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":324,"function":"rest_api_loaded"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp-hook.php","line":348,"function":"apply_filters","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/plugin.php","line":565,"function":"do_action","class":"WP_Hook","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":418,"function":"do_action_ref_array"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/class-wp.php","line":818,"function":"parse_request","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-includes/functions.php","line":1342,"function":"main","class":"WP","type":"->"},{"file":"/home/customer/www/julietindia.com/public_html/wp-blog-header.php","line":16,"function":"wp"},{"file":"/home/customer/www/julietindia.com/public_html/index.php","line":17,"args":["/home/customer/www/julietindia.com/public_html/wp-blog-header.php"],"function":"require"}]}
    Plugin Support Sai (woo-hc)

    (@saivutukuru)

    Hi @karthik92,

    Thanks for sharing the log. This actually gives us a very clear picture of what is happening.

    From the log entries you provided, we can see that the orders are being updated to Completed through a REST API request. Specifically, this line reveals it:

    woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php → update_item

    WooCommerce core never updates its own orders through its REST API. That means the status change is being triggered externally by one of the following:

    1. The Shiprocket integration or API callback
    2. A custom script connected to Shiprocket
    3. Another plugin or system that sends REST API requests to update orders

    Since WooCommerce is only receiving the API request and applying the new status, this confirms the change is not being triggered internally by WooCommerce itself.

    To identify exactly which system is sending the request, please check the following with your developer or Shiprocket support:

    • Any Shiprocket webhook or API callback configured to update order statuses
    • Any custom code your team or their team added for order syncing
    • Whether the Shiprocket plugin or API is sending an “order completed” update by mistake

    If Shiprocket says they are not sending the update, you can ask them to check their outgoing webhook logs. Those logs will show whether their system called your WooCommerce REST API.

    Once that is checked, feel free to share more logs here and we’ll gladly help interpret them.

    Let us know how it goes.

    Plugin Support thelmachido a11n

    (@thelmachido)

    It’s been a while since we heard back from you for this reason we are closing this thread. 

    If WooCommerce has been useful for your store and you appreciate the support you’ve received, we’d truly appreciate it if you could leave us a quick review here: 

     https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

    Feel free to open a new forum topic if you run into any other problem. 

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

You must be logged in to reply to this topic.