# Include PO numbers in the order confirmation email

> Learn how to display PO numbers in Shopify order confirmation emails and automatically include them in Sufio invoices.

Many businesses use purchase order (PO) numbers to track and match orders, invoices, and internal purchasing records.

Sufio helps Shopify merchants automatically create invoices and other order documents for their online stores.

If your customers use PO numbers, you can include them in Shopify order confirmation emails to keep order information consistent across emails and documents.

The following steps apply only if you are already capturing [PO numbers on the cart page](<https://sufio.com/articles/shopify/create-documents-orders/po-numbers/>).

To add PO numbers to the order confirmation email template:

1. In your Shopify admin, go to the **Settings** → **Notifications** page.
2. In the **Customer notifications** section, click **Order confirmation**.
3. Click **Edit code**.
4. Add the `{{ attributes['Invoice PO Number'] }}` variable to the **Email body (HTML)** field.
5. Click **Save** to apply your changes.

The variable shows the PO number on its own. To show it with a label, and only for orders that have a PO number, use this code instead:

```liquid
{% if attributes['Invoice PO Number'] != blank %}
  <p>PO number: {{ attributes['Invoice PO Number'] }}</p>
{% endif %}
```

When a customer enters a PO number on the cart page, it will automatically appear in both the order confirmation email and your Sufio invoices.

> **See also**
>
> Learn how to [include PO numbers on your documents](<https://sufio.com/articles/shopify/create-documents-orders/po-numbers/>) or [add links to invoices in the order confirmation email](<https://sufio.com/articles/shopify/include-links-invoices/order-confirmation-email/>).
