Liquid: Discount lines in Document Designer

Platform

With discount lines in Liquid, packing slips and other documents can show the price your customer actually paid, including the discount code.

An order’s discount lines can now be used in Liquid, so discounts can be shown on packing slips and other documents in Document Designer. That way, the document in the parcel shows the price your customer actually paid.

What a discount line contains

The discount lines are available in order.discount_lines and are used the same way as the item lines and shipping lines. Each discount line has a name, quantity, amount excl. VAT, VAT rate, and currency. The name is what the webshop sends with the order, for example a discount code like “SUMMER10”. If the line has no name, “Rabat” or “Discount” is shown, depending on the language. The amount is negative because the discount is deducted.

How to add discounts to your documents

Discount lines are not added to existing templates automatically. You need to add them yourself in the templates where the discount should be shown. The sample data in the template editor preview includes a discount line, so you can test your template with a discount.

Read more about Liquid in Introduction to Liquid in Shipmondo.

Start shipping in minutes

Create an account and you're good to go

Latest news

Inbound commodity code on DHL Express shipments from Portugal

Bookings from Portugal to countries outside the EU are no longer rejected for a missing inbound commodity code, and you don't have to enter an extra code.

Carrier

Shipmondo MCP: Connect Claude, ChatGPT and other AI assistants to Shipmondo

Let Claude, ChatGPT and other AI assistants find prices, book shipments and handle orders directly in your Shipmondo account.

Integration

Product identifiers (M-PID, NS-PID, S-PID) for imports into the EU

From November 1, 2026, customs requires product identifiers (M-PID, NS-PID and S-PID) for imports into the EU. Here is how to fill them in for each carrier.

PlatformCarrier