{
  "id": "ship-standard-4x6",
  "name": "Standard 4x6 Shipping Label",
  "description": "Standard 4x6 Shipping Label layout with mapped Recipient Name, Street Address, Address Line 2, City fields, XLSX sample data, and print-ready sizing.",
  "category": "Shipping & Logistics",
  "thumbnail": "/templates/thumbnails/ship-standard-4x6.svg",
  "settings": {
    "width": 101,
    "height": 152,
    "unit": "mm",
    "dpi": 203,
    "name": "Standard 4x6 Shipping Label",
    "type": "standard_4x6_shipping_label"
  },
  "elements": [
    {
      "id": "border",
      "type": "RECTANGLE",
      "x": 1,
      "y": 1,
      "width": 99,
      "height": 150,
      "fill": "#ffffff",
      "stroke": "#111827",
      "strokeWidth": 0.4,
      "borderRadius": 1
    },
    {
      "id": "title",
      "type": "TEXT",
      "x": 3,
      "y": 3,
      "width": 95,
      "height": 8,
      "content": "Standard 4x6 Shipping Label",
      "fontSize": 9,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "main",
      "type": "TEXT",
      "x": 4,
      "y": 12,
      "width": 93,
      "height": 24.32,
      "content": "{{Recipient Name}}",
      "fontSize": 12,
      "fontWeight": "bold",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "secondary",
      "type": "TEXT",
      "x": 4,
      "y": 22,
      "width": 93,
      "height": 18.24,
      "content": "{{Street Address}} | {{Address Line 2}}",
      "fontSize": 6,
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "barcode",
      "type": "BARCODE",
      "x": 4,
      "y": 135,
      "width": 93,
      "height": 14,
      "content": "{{Tracking}}",
      "barcodeFormat": "CODE128",
      "barcodeShowText": true
    },
    {
      "id": "mapped-details",
      "type": "TEXT",
      "x": 3,
      "y": 146,
      "width": 95,
      "height": 4,
      "content": "City: {{City}} | Postal Code: {{Postal Code}} | Country: {{Country}} | Reference: {{Reference}} | Phone: {{Phone}}",
      "fontSize": 4,
      "textFitMode": "shrink",
      "textAlign": "center",
      "color": "#374151"
    }
  ],
  "columns": [
    {
      "key": "recipient_name",
      "label": "Recipient Name",
      "required": true
    },
    {
      "key": "street_address",
      "label": "Street Address",
      "required": true
    },
    {
      "key": "address_line_2",
      "label": "Address Line 2",
      "required": true
    },
    {
      "key": "city",
      "label": "City",
      "required": false
    },
    {
      "key": "postal_code",
      "label": "Postal Code",
      "required": false
    },
    {
      "key": "country",
      "label": "Country",
      "required": false
    },
    {
      "key": "reference",
      "label": "Reference",
      "required": false
    },
    {
      "key": "phone",
      "label": "Phone",
      "required": false
    },
    {
      "key": "tracking",
      "label": "Tracking",
      "required": false
    }
  ],
  "files": {
    "xlsx": "/label-templates/ship-standard-4x6.xlsx",
    "json": "/templates/ship-standard-4x6.json",
    "svg": "/templates/thumbnails/ship-standard-4x6.svg"
  }
}