{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://smklog.com/developers/schemas/price-index-issue.schema.json",
  "title": "PriceIndexIssue",
  "type": "object",
  "description": "One monthly issue of the SMKlog parcel shipping price index: six common boxes shipped from Newark, NJ to five US cities, each cell the cheapest purchasable checkout total with every service behind it. The same checkout totals are published on the issue pages and in the open dataset https://smklog.com/downloads/parcel-price-index.csv (CC BY 4.0, DOI 10.5281/zenodo.23376798).",
  "required": [
    "month",
    "label",
    "captured_on",
    "origin",
    "cells",
    "page"
  ],
  "properties": {
    "month": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}$",
      "description": "The issue, YYYY-MM"
    },
    "label": {
      "type": "string",
      "description": "The issue name, e.g. October 2026"
    },
    "captured_on": {
      "type": "string",
      "description": "The date the prices were captured, YYYY-MM-DD"
    },
    "origin": {
      "type": "string",
      "description": "Where every box ships from"
    },
    "basket_average": {
      "type": [
        "number",
        "null"
      ],
      "description": "Average of the cheapest checkout totals across the basket, USD"
    },
    "carrier_wins": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "integer"
      },
      "description": "How many cells each carrier is cheapest in"
    },
    "cells": {
      "type": "array",
      "description": "One entry per box and destination",
      "items": {
        "type": "object",
        "properties": {
          "box": {
            "type": "string",
            "description": "The basket box"
          },
          "dims": {
            "type": "string",
            "description": "Its size in inches"
          },
          "weight": {
            "type": "string",
            "description": "Its weight"
          },
          "to": {
            "type": "string",
            "description": "Destination city"
          },
          "to_zip": {
            "type": "string",
            "description": "Destination ZIP"
          },
          "cheapest": {
            "type": "object",
            "description": "The cheapest purchasable service for this cell",
            "properties": {
              "carrier": {
                "type": "string"
              },
              "service": {
                "type": "string"
              },
              "amount": {
                "type": "number",
                "description": "Checkout total, USD, with the SMKlog fee inside"
              },
              "delivery_window": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "services": {
            "type": "array",
            "description": "Every purchasable service quoted for this cell, cheapest first",
            "items": {
              "type": "object",
              "properties": {
                "carrier": {
                  "type": "string"
                },
                "service": {
                  "type": "string"
                },
                "amount": {
                  "type": "number",
                  "description": "Checkout total, USD, with the SMKlog fee inside"
                },
                "retail_amount": {
                  "type": "number",
                  "description": "The carrier’s own counter price for the same parcel, 0 where none is published"
                },
                "delivery_window": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "page": {
      "type": "string",
      "format": "uri",
      "description": "The published issue page"
    },
    "methodology": {
      "type": "string",
      "description": "How the prices were captured"
    }
  },
  "x-provenance": {
    "method": "published",
    "publisher": "SMKlog (SMKLOG-2022 LLC)",
    "source": "https://quote-api.smklog.com/openapi.json",
    "published": "2026-11-26"
  }
}
