Can we add a one-time coupon code to a customer's first order packing slip?

Topic summary

Goal: Show a one-time coupon on the packing slip for a customer’s first order only; hide it on repeat orders.

Proposed approach:

  • Create an order-level metafield (custom field) to store the coupon.
  • Create a default “first-time customer” discount code.
  • Use Shopify Flow (automation) to populate the order metafield with that code for first-time customers.
  • Edit the packing slip Liquid template (Shopify’s templating language) to read and display the metafield.

Context/constraints:

  • Some orders are imported from eBay via Marketplace Connect, so relying on order confirmation emails isn’t viable; the coupon must appear on the packing slip.
  • The responder states that as long as orders exist in Shopify, the method should work. A screenshot (image) was provided illustrating the Flow setup.

Status/outcomes:

  • No confirmed implementation yet; the requester will test the Flow/metafield method on packing slips, including for marketplace-imported orders.
  • Open questions: precise Flow condition for “first order” detection and confirmation that packing slip templates can access the metafield on imported orders.
Summarized with AI on December 24. AI used: gpt-5.

Hello!

We want to send out a coupon code for new customers on their first order, and adding it to the packing slip is idea as we print these out for all orders. However, we just want to offer a coupon code if it is their first order. On repeat orders, we dont want to provide a coupon code.

Any one know if there is a way to use a variable to check how many orders the customer has, then add the coupon code & text to the packing slip if this is their first order, and on repeat orders hide it?

1 Like

I wish there was a way to do this too.

Hey @Joachimgolf ,

Feature can be built using the below flow.

  1. Create a metafield at order level.

  2. Create a default discount code for first time user.

  3. Create a flow which will add that discount code in order metafield

  1. Now edit the shopping label liquid code to read.

Hope this will help…

Thanks @gr_trading , we would like to add this to the Packing Slip instead of the order as some of our orders come into Shopify from eBay via Marketplace Connect and I doubt they get our order emails.

I’ll have a look if your method works for Packing Slips too. Thanks again.

hi @thefoalyard ,

If orders are coming in Shopify then my answer will definitely work, let me know if you face any issues.