{
  "id": "ship-return",
  "name": "Return Shipping Label",
  "description": "Return Shipping Label layout with mapped RMA Number, Customer Name, Return Address, Order Number fields, XLSX sample data, and print-ready sizing.",
  "category": "Shipping & Logistics",
  "thumbnail": "/templates/thumbnails/ship-return.svg",
  "settings": {
    "width": 76,
    "height": 50,
    "unit": "mm",
    "dpi": 203,
    "name": "Return Shipping Label",
    "type": "return_shipping_label"
  },
  "elements": [
    {
      "id": "border",
      "type": "RECTANGLE",
      "x": 1,
      "y": 1,
      "width": 74,
      "height": 48,
      "fill": "#ffffff",
      "stroke": "#111827",
      "strokeWidth": 0.4,
      "borderRadius": 1
    },
    {
      "id": "title",
      "type": "TEXT",
      "x": 3,
      "y": 3,
      "width": 70,
      "height": 8,
      "content": "Return Shipping Label",
      "fontSize": 8,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "main",
      "type": "TEXT",
      "x": 4,
      "y": 12,
      "width": 68,
      "height": 8,
      "content": "{{RMA Number}}",
      "fontSize": 8.5,
      "fontWeight": "bold",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "secondary",
      "type": "TEXT",
      "x": 4,
      "y": 22,
      "width": 68,
      "height": 6,
      "content": "{{Customer Name}} | {{Return Address}}",
      "fontSize": 6,
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "barcode",
      "type": "BARCODE",
      "x": 4,
      "y": 33,
      "width": 68,
      "height": 12.5,
      "content": "{{Barcode}}",
      "barcodeFormat": "CODE128",
      "barcodeShowText": true
    },
    {
      "id": "mapped-details",
      "type": "TEXT",
      "x": 3,
      "y": 44,
      "width": 70,
      "height": 4,
      "content": "Order Number: {{Order Number}}",
      "fontSize": 4,
      "textFitMode": "shrink",
      "textAlign": "center",
      "color": "#374151"
    }
  ],
  "columns": [
    {
      "key": "rma_number",
      "label": "RMA Number",
      "required": true
    },
    {
      "key": "customer_name",
      "label": "Customer Name",
      "required": true
    },
    {
      "key": "return_address",
      "label": "Return Address",
      "required": true
    },
    {
      "key": "order_number",
      "label": "Order Number",
      "required": false
    },
    {
      "key": "barcode",
      "label": "Barcode",
      "required": false
    }
  ],
  "files": {
    "xlsx": "/label-templates/ship-return.xlsx",
    "json": "/templates/ship-return.json",
    "svg": "/templates/thumbnails/ship-return.svg"
  }
}