{
  "product": "Postcard mailing with database purchase",
  "url": "https://wp2print.net/shop/postcard-mailing-with-database-purchase/",
  "price_page": "https://wp2print.net/shop/postcard-mailing-with-database-purchase/prices/",
  "currency": "USD",
  "prices_include_tax": false,
  "updated": "2024-12-19",
  "product_type": "fixed",
  "detail": "full",
  "rules": {
    "formula": "total = (printing[size,color,paper_type](qty) + rounded_corners[size,rounded_corners](qty) + database_purchase[size,database_purchase](qty))",
    "measures": {"qty": "number of pieces"},
    "price_basis": "each price is the total for the number in its column, not a unit price",
    "lookup": "table[keys](measure) = the row whose keys match the chosen options, at the value of the measure",
    "interpolation": "linear",
    "above_max_column": "extrapolate_last_slope",
    "below_min_column": "proportional_to_first_column",
    "min_quantity": 100
  },
  "options": {
    "size": ["6in x 4in", "8.5in x 5.5in"],
    "color": ["4/0 Full-color front only", "4/4 Full-color both sides"],
    "paper_type": ["12pt C2S", "14pt C2S"],
    "rounded_corners": ["None", "1/4\"", "1/2\""],
    "database_purchase": ["None", "Geographic segmentation only", "Geography and income segmentation"]
  },
  "tables": {
    "printing": {
      "price_of": "printing",
      "priced_by": "qty",
      "columns": [100, 1000, 5000, 10000],
      "keys": ["size", "color", "paper_type"],
      "rows": [
        {"size": "6in x 4in", "color": "4/0 Full-color front only", "paper_type": "12pt C2S", "prices": [30, 300, 1400, 2000]},
        {"size": "6in x 4in", "color": "4/0 Full-color front only", "paper_type": "14pt C2S", "prices": [35, 350, 1600, 2500]},
        {"size": "6in x 4in", "color": "4/4 Full-color both sides", "paper_type": "12pt C2S", "prices": [40, 400, 1900, 3100]},
        {"size": "6in x 4in", "color": "4/4 Full-color both sides", "paper_type": "14pt C2S", "prices": [45, 450, 2400, 3900]},
        {"size": "8.5in x 5.5in", "color": "4/0 Full-color front only", "paper_type": "12pt C2S", "prices": [45, 450, 1800, 2500]},
        {"size": "8.5in x 5.5in", "color": "4/0 Full-color front only", "paper_type": "14pt C2S", "prices": [50, 500, 2000, 2700]},
        {"size": "8.5in x 5.5in", "color": "4/4 Full-color both sides", "paper_type": "12pt C2S", "prices": [55, 550, 2000, 3000]},
        {"size": "8.5in x 5.5in", "color": "4/4 Full-color both sides", "paper_type": "14pt C2S", "prices": [60, 600, 2200, 3300]}
      ]
    },
    "rounded_corners": {
      "price_of": "Rounded corners",
      "priced_by": "qty",
      "columns": [100, 1000, 5000, 10000],
      "keys": ["size", "rounded_corners"],
      "rows": [
        {"size": "6in x 4in", "rounded_corners": "None", "prices": [0, 0, 0, 0]},
        {"size": "6in x 4in", "rounded_corners": "1/4\"", "prices": [5, 20, 90, 160]},
        {"size": "6in x 4in", "rounded_corners": "1/2\"", "prices": [5, 20, 90, 160]},
        {"size": "8.5in x 5.5in", "rounded_corners": "None", "prices": [0, 0, 0, 0]},
        {"size": "8.5in x 5.5in", "rounded_corners": "1/4\"", "prices": [5, 20, 90, 160]},
        {"size": "8.5in x 5.5in", "rounded_corners": "1/2\"", "prices": [5, 20, 90, 160]}
      ]
    },
    "database_purchase": {
      "price_of": "Database purchase",
      "priced_by": "qty",
      "columns": [100, 1000, 5000, 10000],
      "keys": ["size", "database_purchase"],
      "rows": [
        {"size": "6in x 4in", "database_purchase": "None", "prices": [0, 0, 0, 0]},
        {"size": "6in x 4in", "database_purchase": "Geographic segmentation only", "prices": [10, 100, 450, 800]},
        {"size": "6in x 4in", "database_purchase": "Geography and income segmentation", "prices": [15, 150, 550, 1000]},
        {"size": "8.5in x 5.5in", "database_purchase": "None", "prices": [0, 0, 0, 0]},
        {"size": "8.5in x 5.5in", "database_purchase": "Geographic segmentation only", "prices": [10, 100, 450, 800]},
        {"size": "8.5in x 5.5in", "database_purchase": "Geography and income segmentation", "prices": [15, 150, 550, 1000]}
      ]
    }
  },
  "example": {
    "input": {
      "size": "6in x 4in",
      "color": "4/0 Full-color front only",
      "paper_type": "12pt C2S",
      "rounded_corners": "1/4\"",
      "database_purchase": "Geographic segmentation only",
      "qty": 550
    },
    "lines": [
      {"table": "printing", "qty": 550, "price": 165},
      {"table": "rounded_corners", "qty": 550, "price": 12.5},
      {"table": "database_purchase", "qty": 550, "price": 55}
    ],
    "subtotal": 232.5,
    "total": 232.5
  },
  "note": "Account or group pricing may differ. The price shown in the cart is authoritative.",
  "seller": {
    "name": "Acme Print Shop",
    "url": "https://wp2print.net/",
    "location": "Kittery, Maine, United States",
    "service_area": "Kittery, Eliot, York county and southern Maine"
  }
}
