# Include PO numbers on your documents

Some business customers need invoices that include the purchase order (PO) number they entered at checkout.

PO numbers help business customers match invoices with their internal accounting and purchasing records.

Sufio automatically creates professional invoices for ecommerce stores and lets you customize the information included on them.

This article explains how to capture PO numbers and include them on your invoices.

- [Capture the PO number using the Shopify B2B feature](<https://sufio.com/articles/shopify/create-documents-orders/po-numbers/#shopify-b2b>)
- [Capture the PO number on the Cart page](<https://sufio.com/articles/shopify/create-documents-orders/po-numbers/#cart-page>)
- [Add the PO number to order notes](<https://sufio.com/articles/shopify/create-documents-orders/po-numbers/#order-notes>)
- [Customize how PO numbers are displayed on documents](<https://sufio.com/articles/shopify/create-documents-orders/po-numbers/#customize-documents>)

## Capture the PO number using the Shopify B2B feature

If you use Shopify B2B, you can add a PO number field to the B2B checkout page, allowing customers to enter their PO number when placing an order.

This feature is part of [Shopify B2B](<https://help.shopify.com/en/manual/b2b>) (also known as Shopify wholesale), which is built into the Shopify admin.

![Checkout page with PO number](<https://sufio.com/content/media/images/checkout-page-PO-number-720w.webp>)

Shopify B2B checkout page with PO number field.

You can also enter PO numbers when manually creating or editing draft orders for B2B customers in the Shopify admin.

If an order contains a PO number, Sufio automatically displays it on the related document.

## Capture the PO number on the Cart page

You can add a PO number field to your cart page so customers can enter the PO number just before checkout. These numbers are stored as[order attributes](<https://shopify.dev/docs/api/storefront/latest/objects/Attribute>).![Shopify cart PO number](<https://sufio.com/content/media/images/shopify%5Fcart%5Fpo%5Fnumber-310w.webp>)

Example of a PO number field on a cart page.

Sufio reads the PO number from an attribute named `Invoice PO Number`, `PO Number`, or `PO-Number`. The snippet below uses `Invoice PO Number`.

To add a PO number field to the cart page:

1. In your Shopify admin, go to the **Online Store** → **Themes** page.
2. Click the **Actions** button, then click **Edit code**.
3. Select **cart.liquid** in the left sidebar. You can use the search bar at the top to find it faster.
4. Insert the following code snippet inside the `<form>` tag. The best place for the field is just before the **Checkout** button.

```html
<!-- Shopify cart page -- include PO numbers on your invoices. Used by Sufio for Shopify (sufio.com/shopify). -->
<div class="po-number">
    <label for="po_number">PO Number</label>
    <input type="text" name="attributes[Invoice PO Number]" id="po_number" value="{{ cart.attributes['Invoice PO Number'] }}" form="cart" />
</div>
```

> **See also**
>
> Want to include the PO number in your order confirmation emails too? Learn [how to add the PO number to Shopify order confirmation emails.](<https://sufio.com/articles/shopify/create-documents-orders/po-numbers/po-numbers-order-confirmation-email/>)

## Add the PO number to order notes

Alternatively, you can manually add the PO number as an order note in your Shopify admin. The [order note](<https://sufio.com/articles/templates/properties/order/#order.note>) can then be displayed on your documents.

The PO number must be on its own line in the order note and start with `PO:` or `PO Number:`.

For example, a note for an order with the PO number 841612 should look like this: `PO: 841612`.

To add an order note with a PO number:

1. In your Shopify admin, go to the **Orders** page.
2. Open the order you want to update.
3. In the **Notes** section, click **Edit note.**
4. Enter the PO number using the format shown above, then click **Save**.

## Customize how PO numbers are displayed on documents

To customize how PO numbers are displayed on documents:

1. In your Sufio account, go to the **Design** → **Payments** page.
2. To rename the field, click **Rename** next to **PO Number**, then enter a new name.
3. To move the field, drag and drop it to a new position.
4. Click **Save** to apply the changes.

The PO number is also available as the [document.payments.po\_number](<https://sufio.com/articles/templates/properties/document/#document.payments.po%5Fnumber>) property, which you can use in your document templates.

PO numbers can be up to 40 characters long. If a PO number is longer, Sufio keeps only the first 40 characters.

![customize PO numbers](<https://sufio.com/content/media/images/Image%5Fpleine%5Flargeur%5FPO%5FNotion-720w.webp>)
