{
  "product": "Photo Albums",
  "url": "https://wp2print.net/shop/photo-albums/",
  "price_page": "https://wp2print.net/shop/photo-albums/prices/",
  "currency": "USD",
  "prices_include_tax": false,
  "updated": "2022-05-19",
  "product_type": "book",
  "detail": "full",
  "rules": {
    "formula": "total = (printing[paper_type](color_pages) + cover_page[cover_page](books) + binding[binding](books)) × (1 + speed%)",
    "measures": {"color_pages": "books × Color pages per book", "books": "number of books"},
    "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",
    "speed": "speed% is the percent of the chosen production speed",
    "min_books": 1
  },
  "options": {
    "paper_type": ["120gsm Semi-Matte", "200gsm Semi-Matte", "300gsm Semi-Matte"],
    "cover_page": ["None", "White card", "Transparent sheet"],
    "binding": ["None", "Staple top-left corner", "Staples left-edge", "Perfect", "Spiral"],
    "speed": ["Slow", "Fast", "Very fast"]
  },
  "tables": {
    "printing": {
      "price_of": "printing",
      "priced_by": "color_pages",
      "columns": [1, 100, 1000],
      "keys": ["paper_type"],
      "rows": [
        {"paper_type": "120gsm Semi-Matte", "prices": [1, 100, 800]},
        {"paper_type": "200gsm Semi-Matte", "prices": [2, 200, 1600]},
        {"paper_type": "300gsm Semi-Matte", "prices": [3, 300, 2400]}
      ]
    },
    "cover_page": {
      "price_of": "Cover Page",
      "priced_by": "books",
      "columns": [10, 20],
      "keys": ["cover_page"],
      "rows": [
        {"cover_page": "None", "prices": [0, 0]},
        {"cover_page": "White card", "prices": [3, 6]},
        {"cover_page": "Transparent sheet", "prices": [2.5, 5]}
      ]
    },
    "binding": {
      "price_of": "Binding",
      "priced_by": "books",
      "columns": [10, 20],
      "keys": ["binding"],
      "rows": [
        {"binding": "None", "prices": [0, 0]},
        {"binding": "Staple top-left corner", "prices": [1, 2]},
        {"binding": "Staples left-edge", "prices": [1.5, 3]},
        {"binding": "Perfect", "prices": [10, 20]},
        {"binding": "Spiral", "prices": [20, 40]}
      ]
    }
  },
  "speed": [
    {"speed": "Slow", "percent": 0, "days": 5},
    {"speed": "Fast", "percent": 20, "days": 3},
    {"speed": "Very fast", "percent": 50, "days": 1}
  ],
  "example": {
    "input": {
      "books": 50,
      "printing": {"pages_per_book": 40, "paper_type": "120gsm Semi-Matte"},
      "cover_page": "White card",
      "binding": "Staple top-left corner",
      "speed": "Fast"
    },
    "lines": [
      {"table": "printing", "color_pages": 2000, "price": 1577.78},
      {"table": "cover_page", "books": 50, "price": 15},
      {"table": "binding", "books": 50, "price": 5}
    ],
    "subtotal": 1597.78,
    "speed_percent": 20,
    "total": 1917.33
  },
  "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"
  }
}
