I realize there is another post from 5 years ago that asked this similar question but the answer didn’t really make sense.
I have a trigger for a new paid order in WooCommerce and I want to create a sales invoice in Xero for that order. All worked fine except that the invoice did not include shipping if there was a shipping cost. I did some digging on the internet and found this solution:
- Add an intermediary action step: choose Formatter by Zapier and select Utilities or Line Itemizer. [1, 2]
- Map your regular product line items into the primary item fields. [1]
- Create an extra row/entry in the Line Itemizer for shipping:
- Description/Title: Type
"Shipping & Handling".- Quantity: Set to
1.- Unit Amount: Map the
Shipping Totalfield from your WooCommerce trigger data. [1]
I am stymied by this solution because:
- I’m unclear where to “Map your regular product line items into the primary item fields.” Is this within the itemizer step? Or in the step where the invoice is created?
- Where is the “extra row/entry” created? In the configuration screen, I see a field for “Line Items Group Name” and then a repeating field set of fields for line-item properties.
When I added properties for my regular product line items and then, after that I added several properties for the shipping, the shipping properties are added to the first line item not as a separate line item. This is what the test looks like this:
Output
Line Items
1
Product Description 1
Shipping
34.95 (product price)
1 (product quantity)
1 (shipping quantity)
0 (shipping total)
2
Product 2
29.95 (product price)
1 (product quantity)
3 [etc...]
Clearly, I didn’t set this up right. I have been trying to understand this now for several hours to no avail? What am I missing?















