Skip to content
Preview of the Return label (A6) template

105 × 148 mm

Shipping labels

Return label (A6)

An A6 prepaid return label for online retailers. The upper part carries the returns centre address, the sender and a Code 128 barcode of the RMA number; below a cut line, the customer keeps a summary with the return reason, return-by date and packing instructions.

PDFA6 portraitLocale en-GBHTML + Jinja

Opens Dynamic Document API with this template preloaded in a free workspace.

Template language features

  • Loops
  • Conditionals
  • Filters
  • Barcode
  • Date formatting
  • Number formatting

Filters such as format_currency and qrcode are described in the template language reference.

Variables

Derived from the sample data: 6 top-level fields, 30 paths in total. Send the same shape as data.

PathTypeExample
retailerobject
retailer.namestring"Fellside Outfitters"
retailer.websitestring"fellside.example.com"
retailer.returns_emailstring"returns@fellside.example.com"
returns_centreobject
returns_centre.namestring"Fellside Outfitters Returns"
returns_centre.address_linesarray<string> · 2"Unit 12, Beckside Distribution Park"
returns_centre.townstring"Kendal"
returns_centre.postcodestring"LA9 6XY"
returns_centre.countrystring"United Kingdom"
customerobject
customer.namestring"Oluwaseun Pryce"
customer.address_linesarray<string> · 1"5 Thistle Row"
customer.townstring"Stirling"
customer.postcodestring"FK8 2XY"
rmaobject
rma.numberstring"RMA-FSO-083145"
rma.order_numberstring"FSO-2026-557102"
rma.created_ondate"2026-09-16"
rma.return_window_daysnumber14
rma.servicestring"Prepaid tracked return"
rma.reasonstring"Wrong size: too small"
rma.resolutionstring"Exchange for size L"
rma.parcel_weight_kgnumber0.9
rma.localestring"en-GB"
itemsarray<object> · 1
items[].skustring"FSO-TSJ-M-SLT"
items[].namestring"Trail shell jacket, men's, M, slate"
items[].quantitynumber1
instructionsarray<string> · 4"Pack the item unworn, with its tags attached."

Render it with the API

After adding the template to your workspace, render it by ID and pass your data. Arrays are shortened here.

curl -X POST https://api-eu.dynamicdocumentapi.com/v1/renders \
  -H "Authorization: Bearer $DYNAMIC_DOCUMENT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "type": "template",
    "template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
  },
  "data": {
    "retailer": {
      "name": "Fellside Outfitters",
      "website": "fellside.example.com",
      "returns_email": "returns@fellside.example.com"
    },
    "returns_centre": {
      "name": "Fellside Outfitters Returns",
      "address_lines": [
        "Unit 12, Beckside Distribution Park",
        "Heronbrook Way"
      ],
      "town": "Kendal",
      "postcode": "LA9 6XY",
      "country": "United Kingdom"
    },
    "customer": {
      "name": "Oluwaseun Pryce",
      "address_lines": [
        "5 Thistle Row"
      ],
      "town": "Stirling",
      "postcode": "FK8 2XY"
    },
    "rma": {
      "number": "RMA-FSO-083145",
      "order_number": "FSO-2026-557102",
      "created_on": "2026-09-16",
      "return_window_days": 14,
      "service": "Prepaid tracked return",
      "reason": "Wrong size: too small",
      "resolution": "Exchange for size L",
      "parcel_weight_kg": 0.9,
      "locale": "en-GB"
    },
    "items": [
      {
        "sku": "FSO-TSJ-M-SLT",
        "name": "Trail shell jacket, men'\''s, M, slate",
        "quantity": 1
      }
    ],
    "instructions": [
      "Pack the item unworn, with its tags attached.",
      "Cut along the dashed line and keep this lower part."
    ]
  },
  "output": {
    "format": "pdf",
    "filename": "shipping-label-return-a6.pdf"
  }
}'