{"id":2257,"date":"2023-08-02T07:30:57","date_gmt":"2023-08-02T07:30:57","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/auto-generate-invoices-and-shipments-for-backend-orders-in-magento-2\/"},"modified":"2025-11-28T12:21:01","modified_gmt":"2025-11-28T06:51:01","slug":"auto-generate-invoices-and-shipments-for-backend-orders-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/auto-generate-invoices-and-shipments-for-backend-orders-in-magento-2\/","title":{"rendered":"How to Auto-generate Invoices and Shipments for Backend Orders in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/business.adobe.com\/products\/magento\/magento-commerce.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento<\/a>&nbsp;is a fantastic platform to use as a POS for a physical store. You can manage customer accounts and place orders on their behalf. You\u2019ll must manually generate invoices and shipments in Magento 2 for every order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But what if you could auto-generate invoices and shipments for backend orders in Magento 2? It would save a lot of time processing the backend orders in the physical store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This micro post is aimed at helping you&nbsp;<em><strong>auto-generate invoices and shipments for backend orders in Magento 2<\/strong><\/em>.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Auto-generate Invoices and Shipments for Backend Orders in Magento 2?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re using Magento to process in-store orders, the invoice and shipments need to be generated instantly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Automating these tasks in Magento 2 can save a lot of time for you and make the process smoother.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also Read,&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/create-magento-2-auto-invoices-and-shipments\/\">Create Magento 2 Auto Invoices and Shipments<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methods to Auto Generate Invoice and Shipment for Backend Orders in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Mainly, there are two ways to auto-generate invoices and shipments for Magento 2 backend orders. You can do it programmatically or using an extension, as there is no default functionality in Magento 2.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Programmatic Method<\/li>\n\n\n\n<li>Using an Extension<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"programmatic-method\">1. Programmatic Method<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/create-shipment-programmatically-in-magento-2\/\">Creating a shipment programmatically in the Magento 2<\/a> method suits you if you\u2019re a developer or technical geek. We\u2019ll use the event and observer method to automatically generate invoices and shipments for Magento 2 backend orders.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, create the&nbsp;<em><strong><em><strong>app\\code\\Meetanshi\\AutoInvShip\\etc\\adminhtml.xml<\/strong><\/em><\/strong><\/em>&nbsp;file with the following code:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?xml version=\"1.0\"?>\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Event\/etc\/events.xsd\">\n&lt;event name=\"sales_order_save_commit_after\">\n&lt;observer name=\"vendor_module_sales_order_commit_after\" instance=\"vendor\\module\\Observer\\OrderplaceAfter\"\/>\n&lt;\/event>\n&lt;\/config><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-an-extension\">2. Using an Extension<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Meetanshi\u2019s Magento 2 Auto Invoice &amp; Shipment is the easiest method to auto-generate invoices &amp; shipments for backend orders. The extension helps you auto generate invoices and shipments in Magento 2 through easy installation and set up.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Just install the extension and enable the functionality from the configuration. You can also enable the extension for specific payment methods per your requirements.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2023\/07\/Auto-invoice-and-shipments-in-Magento-2.png\" alt=\"Auto invoice and shipments in Magento 2 through Meetanshi extension\" class=\"wp-image-32954\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">In addition to this, you can also choose to switch auto-generation functionality for invoices and shipments individually. Also as we know with increasing E-commerce facilities, the default features fall short. Fortunately, Magento 2 also allows customizing the default features, for example,&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/generate-invoice-with-pending-status-in-magento-2\/\">generate Magento 2 invoice with pending status<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/magento-2-auto-invoice-and-shipment.html\" target=\"_blank\" rel=\"noreferrer noopener\">Try the Demo of Magento 2 Auto Invoice &amp; Shipment extension now<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I hope the above micro post will be helpful to you.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can use the event + observer method to auto-generate invoices and shipments for backend orders in Magento 2. Or the easy way to do that is using Meetanshi\u2019s Magento 2 extension.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento&nbsp;is a fantastic platform to use as a POS for a physical store. You can manage customer accounts and place orders on their behalf. You\u2019ll&#8230;<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2257","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2257"}],"version-history":[{"count":5,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2257\/revisions"}],"predecessor-version":[{"id":24494,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2257\/revisions\/24494"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}