Magento Orders, Invoices and Shipments — Complete Order Lifecycle
In this tutorial, you'll learn how Magento handles the complete order lifecycle, from order placement through invoicing, shipment, refunds, and order management in the admin panel.
What You'll Learn
- The order lifecycle states and what each one means
- Navigating the order grid with search, filters, and bulk actions
- Creating orders from the admin panel for phone orders
- Generating invoices and capturing payments
- Creating shipments with tracking numbers
- Managing credit memos and refunds
- Handling order statuses and custom order states
- Understanding the order view detail area
Why It Matters
Order management is the operational backbone of your store. Every sale passes through the order lifecycle. Knowing how to create invoices, Process shipments, and issue refunds efficiently saves hours of manual work and prevents errors that cost money and customer trust. Understanding order states prevents accidental double-fulfillment or missing orders.
Real-World Use
A customer calls to change their shipping address after placing an order. The order is still "Pending" (not yet invoiced or shipped), so the admin user edits the order, updates the address, and adds an order comment for the customer. Later, they generate the invoice, create the shipment with a tracking number, and the customer receives an automated email with tracking information.
Learning Path
flowchart LR A["Tax Configuration"] --> B["Orders & Invoices
← You are here"]:::current B --> C["Sales Rules & Coupons"] C --> D["Customer Accounts"] D --> E["Customer Groups"] classDef current fill:#38bdf8,color:#0f172a,stroke-width:2px
Order Lifecycle States
Every order in Magento progresses through a series of states. The state determines what actions are available.
Order states in Magento:
| State | Description | Actions Available |
|---|---|---|
| Pending | Order received, payment not yet processed | Cancel, Hold, Edit |
| Pending Payment | Payment initiated but not confirmed (e.g., PayPal redirect) | Cancel, Hold |
| Processing | Payment captured, order being fulfilled | Ship, Invoice, Cancel |
| Complete | All items shipped and invoiced, no further action needed | Reorder, Create Credit Memo |
| Closed | Refunded or fully credited | View only |
| Canceled | Order cancelled before fulfillment | View Only |
| On Hold | Temporarily suspended | Unhold, Cancel |
| Suspected Fraud | Flagged by fraud detection | Review, Cancel, Accept |
Understanding these states is critical. For example, you cannot invoice a "Canceled" order, and you cannot ship an order that has not been invoiced (if capture on invoice is enabled).
Order Grid
The order grid is at Sales > Orders. It lists every order with columns:
- Order ID — Incremental order number
- Purchase Date — Date and time of order
- Bill-to Name — Customer name
- Ship-to Name — Shipping recipient name
- Grand Total — Total including tax and shipping
- Status — Current order state
- Action — View, Invoice, Ship, Cancel, Hold
Search and filters:
- Search by order ID, customer name, email, or SKU
- Filter by status, date range, store, and customer group
Bulk actions:
- Cancel orders
- Hold orders
- Invoice orders
- Print orders and packing slips
The order grid is the first place you check for sales activity, customer issues, and fulfillment status.
Creating Orders from Admin
You can create orders from the admin panel for phone orders, email orders, or manual entries:
- Go to Sales > Orders > Create New Order.
- Select a customer (or create a new customer).
- Add products to the order:
- Search and select products
- Set quantities
- Configure options (configurable attributes, custom options)
- Apply discounts or update prices manually.
- Select shipping address (choose existing or enter new).
- Select shipping method and payment method.
- Add order comments (e.g., "Customer requested gift wrapping").
- Submit the order.
Admin-created orders follow the same lifecycle as customer-placed orders. They appear in the order grid and can be invoiced, shipped, and refunded normally.
Invoices
An invoice records that payment has been collected for an order. Go to Sales > Invoices to view existing invoices, or create a new invoice from an order.
Creating an invoice:
- Open the order in Sales > Orders.
- Click Invoice.
- Select items to invoice (partial invoice for backordered items).
- Set the quantity to invoice for each item.
- Choose capture method:
- Capture Online — Charge the payment gateway immediately
- Capture Offline — Record the invoice but capture payment separately (for checks, bank transfers)
- Add comments and send an email copy to the customer.
- Submit Invoice.
After invoicing:
- The order status may change to "Processing" (if all items invoiced)
- The payment is captured (if online capture)
- The customer receives an invoice email
Partial invoices: If only some items are shipped, create a partial invoice for those items. The remaining items can be invoiced later.
Shipments
A shipment records that items have been dispatched to the customer. Go to Sales > Shipments.
Creating a shipment:
- Open the order in Sales > Orders.
- Click Ship (available after invoicing, depending on configuration).
- Select items to ship (partial shipments allowed).
- Enter tracking number and carrier.
- Add comments.
- Send shipment email to customer.
- Submit Shipment.
After shipping:
- Items are marked as shipped
- Inventory is reduced (if not already reserved)
- Customer receives tracking information
- Order status may progress toward "Complete"
Partial shipments: If the order has multiple items with different availability, you can create multiple shipments. Each shipment has its own tracking number.
Credit Memos
A credit memo records a refund or credit. Go to Sales > Credit Memos.
Creating a credit memo:
- Open the invoiced order in Sales > Orders.
- Click Credit Memo.
- Adjust quantities to refund.
- Adjust refund totals:
- Adjustment Fee — Charge to customer (restocking fee)
- Adjustment Refund — Additional refund beyond item prices
- Return to Stock — Check to return items to inventory.
- Select refund method:
- Refund Online — Process refund through payment gateway
- Refund Offline — Record refund processed manually (check, cash)
- Add comments.
- Submit Credit Memo.
After the credit memo:
- The payment is refunded (if online)
- Items may be returned to stock
- The order status may change to "Closed"
- Customer receives a refund confirmation email
Refund Workflow
The complete refund process:
- Order is placed and paid.
- Invoice is created (payment captured).
- Return is requested by customer (handled through Returns in Adobe Commerce).
- Credit Memo is created to record the refund.
- Payment is refunded via the gateway (or marked as offline refund).
- Order status changes to "Closed."
Without an invoice, you cannot create a credit memo. Without a credit memo, the payment cannot be refunded through the system.
Order Status Options
Magento includes default statuses but you can create custom ones.
Go to Stores > Order Status to manage:
Default statuses:
- Pending, Processing, Complete, Closed, Canceled, On Hold, Suspected Fraud
Custom order statuses: Create custom statuses for your specific workflow:
Status Code: ready_for_pickup
Status Label: Ready for Pickup
State Assigned: Processing
Assign the custom status to a state. The state determines the available actions.
Order statuses are not the same as order states. States are system-defined (cannot be changed). Statuses are labels you create and assign to states.
Order View Detail Area
When you open an order, the view page shows comprehensive information:
Order Information:
- Order ID, date, status, customer name, email
- Purchase order number (if applicable)
Billing Address:
- Customer's billing address
- Payment method used
Shipping Address:
- Shipping address
- Shipping method
Payment and Shipping:
- Payment method details (card type, last 4 digits, Transaction ID)
- Shipping carrier and method
Items Ordered:
- Product name, SKU, options
- Qty ordered, qty invoiced, qty shipped, qty refunded
- Price, tax, discount, row total
Order Totals:
- Subtotal, shipping, discount, tax, grand total
- Store credit, gift card amounts
Notes/Comments:
- Order comments (visible to customer)
- Internal notes
History:
- Chronological log: order placed, invoiced, shipped, refunded
- Who performed each action and when
Invoices, Shipments, Credit Memos tabs:
- Invoices created for this order
- Shipments and tracking numbers
- Credit memos and refund amounts
Common Mistakes
Invoicing before shipping is confirmed. If you capture payment on invoice but then cannot fulfill the order, you have taken the customer's money without shipping. Set payment action to "Authorize" (not "Sale") to delay capture until shipment.
Forgetting to include tracking numbers. Customers expect tracking information. Always enter the carrier and tracking number when creating shipments. Missing tracking data generates support inquiries.
Issuing partial credit memos without accounting. A partial refund without adjusting the invoice totals causes accounting discrepancies. Always verify the refund amounts match what the customer should receive.
Not canceling unpaid orders. Orders that are pending but never paid (e.g., failed PayPal redirects) remain in "Pending Payment." These orders reserve inventory. Cancel them if payment is not received within a reasonable time.
Overwriting order statuses incorrectly. Custom order statuses must be assigned to the correct state. Assigning a "Refunded" status to the "Processing" state means the order does not progress correctly.
Practice Questions
What is the difference between an order state and an order status? Answer: An order state is a system-defined stage (Pending, Processing, Complete, etc.) that controls available actions. An order status is a customizable label (Ready for Pickup, Awaiting Payment, etc.) you assign to a state. Multiple statuses can map to the same state.
What is the correct sequence for fulfilling an order? Answer: Order placed -> Invoice created (payment captured) -> Shipment created (items dispatched) -> (Optional: Credit Memo if refund needed). The order moves from Pending -> Processing (after invoice) -> Complete (after shipment and all items fulfilled).
What happens when you create a credit memo with "Return to Stock" checked? Answer: The refunded item's quantity is returned to the inventory source stock. The order is credited, the payment is refunded (if online), and the order status changes to "Closed." The item becomes available for purchase again.
Challenge: Create a custom order workflow for a print-on-demand store. The workflow must include states: Pending, Awaiting Artwork Approval (custom), In Production (custom), Shipped, Complete, Canceled. Create the custom statuses and assign them to the correct states. Document the allowed transitions (e.g., from "Awaiting Artwork Approval" you can go to "In Production" or "Canceled" but not directly to "Shipped").
FAQ
Mini Project
Your task: Process the complete order lifecycle end to end.
- Place an order as a customer on your Magento store (use a test product you created).
- Log into the admin panel. Find the order in Sales > Orders.
- Create an invoice for the order (Capture Offline).
- Create a shipment with a tracking number (use any carrier, e.g., "Custom" with "TRACK123").
- Verify the order status changed.
- Create a credit memo for a partial refund (one item out of two) with Return to Stock.
- Check that inventory was updated.
- Create a second order from the admin panel for a new customer (simulate a phone order).
- Add a custom order status "Awaiting Stock" assigned to the "Processing" state.
- Change the second order status to "Awaiting Stock" and add a comment.
This exercise covers the full order lifecycle that every Magento operator manages daily.
What's Next
Now that you understand order management, learn about promotions and coupons:
Continue to Lesson 14: Sales Rules and Coupons — Cart price rules and coupon codes.
Related lessons:
- Shipping — Shipping methods and tracking
- Payment Gateways — Payment capture and refunds
- Inventory and Stock — Return to stock process
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro