{
  "product": "Door Sign Example",
  "url": "https://wp2print.net/shop/door-sign-example/",
  "price_page": "https://wp2print.net/shop/door-sign-example/prices/",
  "currency": "USD",
  "prices_include_tax": false,
  "updated": "2022-05-19",
  "product_type": "fixed",
  "detail": "full",
  "rules": {
    "formula": "total = (printing[new_size_label,color,paper_type](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": "none",
    "quantities_available": [100, 500, 1000, 1001],
    "min_quantity": 100,
    "unavailable": "a configuration matching every field of any entry in unavailable cannot be ordered"
  },
  "options": {
    "new_size_label": ["250mm x 200mm", "2cm x 10cm"],
    "color": ["4/0 Full-color front only", "4/4 Full-color both sides"],
    "paper_type": ["Melamine", "White-Canary"]
  },
  "tables": {
    "printing": {
      "price_of": "printing",
      "priced_by": "qty",
      "columns": [100, 500, 1000, 1001],
      "keys": ["new_size_label", "color", "paper_type"],
      "rows": [
        {"new_size_label": "250mm x 200mm", "color": "4/0 Full-color front only", "paper_type": "Melamine", "prices": [1, 5, 10, null]},
        {"new_size_label": "250mm x 200mm", "color": "4/0 Full-color front only", "paper_type": "White-Canary", "prices": [1, 5, 10, null]},
        {"new_size_label": "250mm x 200mm", "color": "4/4 Full-color both sides", "paper_type": "Melamine", "prices": [1, 5, 10, null]},
        {"new_size_label": "250mm x 200mm", "color": "4/4 Full-color both sides", "paper_type": "White-Canary", "prices": [1, 5, 10, null]}
      ]
    }
  },
  "unavailable": [
    {"new_size_label": "2cm x 10cm", "color": "4/0 Full-color front only", "paper_type": "Melamine"},
    {"new_size_label": "2cm x 10cm", "color": "4/0 Full-color front only", "paper_type": "White-Canary"},
    {"new_size_label": "2cm x 10cm", "color": "4/4 Full-color both sides", "paper_type": "Melamine"},
    {"new_size_label": "2cm x 10cm", "color": "4/4 Full-color both sides", "paper_type": "White-Canary"}
  ],
  "example": {
    "input": {"new_size_label": "250mm x 200mm", "color": "4/0 Full-color front only", "paper_type": "Melamine", "qty": 500},
    "lines": [{"table": "printing", "qty": 500, "price": 5}],
    "subtotal": 5,
    "total": 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"
  }
}
