LemMeBuyIt · Schema

Change

A single immutable event from the retail-events ledger. Mirrors the `retail_events` document read at `/v1/changes`. Enrichment fields (marketplace matches, computed discounts, resolved category/seller) are `nullable: true` because they are populated only when the underlying product/match data is available at read time. Internal sourcing and tracking fields are never serialized into this feed.

RetailReal-Time DataProduct IntelligenceAI Agents

Properties

Name Type Description
event_id string Stable immutable identity (ES _id).
event string Event type.
retailer_id string
sku string
source string Emitting lane (refresh, ext_sighting, live_lookup, feed).
ingest_seq_ms integer Pipeline-stamped monotonic sort key (ms).
observed_at stringnull
changed_at stringnull
current_price numbernull
previous_price numbernull
original_price numbernull
drop_amount numbernull
drop_percent numbernull
computed_discount_amount numbernull
computed_discount_percent numbernull Read-time markdown OFF THE LIST PRICE (original_price - current effective price, as a %), computed from the live product doc. This is the deal-quality signal (distinct from drop_percent, which is the
retailer_discount_percent numbernull
on_sale booleannull
in_stock booleannull
stock_state stringnull
clearance booleannull
deal_type stringnull Walmart clearance deal type on clearance events / Walmart price events.
sold_by stringnull
seller_type stringnull
category stringnull
upc stringnull
gtin stringnull
has_marketplace_match booleannull
match_type stringnull
match_confidence stringnull Empty, 'exact', or 'fuzzy' only.
matches array Read-time-enriched marketplace matches. Always an array (never null).
promotion_id stringnull Promotion identity. Present only on promotion_started / promotion_ended events.
promotion_title stringnull Human-readable promotion title.
coupon_code stringnull Coupon code, if the promotion requires one.
promotion_type stringnull Single primary promotion type (first of the full list on /v1/promotions).
promotion_ends_at stringnull Promotion end date/time.
View JSON Schema on GitHub

JSON Schema

lemmebuyit-com-change-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemmebuyit-com/json-schema/lemmebuyit-com-change-schema.json",
  "title": "Change",
  "description": "A single immutable event from the retail-events ledger. Mirrors the\n`retail_events` document read at `/v1/changes`. Enrichment fields\n(marketplace matches, computed discounts, resolved category/seller) are\n`nullable: true` because they are populated only when the underlying\nproduct/match data is available at read time. Internal sourcing and\ntracking fields are never serialized into this feed.\n",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemmebuyit-com-openapi.yaml#/components/schemas/Change",
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "Stable immutable identity (ES _id)."
    },
    "event": {
      "type": "string",
      "description": "Event type.",
      "enum": [
        "price_changed",
        "restock",
        "out_of_stock",
        "seller_changed",
        "promotion_started",
        "promotion_ended",
        "clearance",
        "clearance_ended",
        "match_added",
        "match_removed",
        "match_changed"
      ]
    },
    "retailer_id": {
      "type": "string"
    },
    "sku": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "refresh",
        "ext_sighting",
        "live_lookup",
        "feed"
      ],
      "description": "Emitting lane (refresh, ext_sighting, live_lookup, feed)."
    },
    "ingest_seq_ms": {
      "type": "integer",
      "format": "int64",
      "description": "Pipeline-stamped monotonic sort key (ms)."
    },
    "observed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "changed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "current_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "previous_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "original_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "drop_amount": {
      "type": [
        "number",
        "null"
      ]
    },
    "drop_percent": {
      "type": [
        "number",
        "null"
      ]
    },
    "computed_discount_amount": {
      "type": [
        "number",
        "null"
      ]
    },
    "computed_discount_percent": {
      "type": [
        "number",
        "null"
      ],
      "description": "Read-time markdown OFF THE LIST PRICE (original_price - current effective price, as a %), computed from the live product doc. This is the deal-quality signal (distinct from drop_percent, which is the refresh-to-refresh delta): filter it with min_discount_percent. The list and current-effective prices are coalesced per retailer from (original_price | compare_at_price | price) and (sale_price | final_price | current_price | price). null when the product doc is absent or is not a markdown."
    },
    "retailer_discount_percent": {
      "type": [
        "number",
        "null"
      ]
    },
    "on_sale": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "in_stock": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "stock_state": {
      "type": [
        "string",
        "null"
      ]
    },
    "clearance": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "deal_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Walmart clearance deal type on clearance events / Walmart price events.",
      "enum": [
        "clearance",
        "rollback",
        "reduced"
      ]
    },
    "sold_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "seller_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "upc": {
      "type": [
        "string",
        "null"
      ]
    },
    "gtin": {
      "type": [
        "string",
        "null"
      ]
    },
    "has_marketplace_match": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "match_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "match_confidence": {
      "type": [
        "string",
        "null"
      ],
      "description": "Empty, 'exact', or 'fuzzy' only.",
      "enum": [
        "",
        "exact",
        "fuzzy"
      ]
    },
    "matches": {
      "type": "array",
      "description": "Read-time-enriched marketplace matches. Always an array (never null).",
      "items": {
        "type": "object",
        "properties": {
          "asin": {
            "type": "string"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "confidence": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "sales_rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Amazon sales rank for online-arbitrage scoring. Omitted when unknown (Amazon's -1 sentinel)."
          },
          "package_quantity": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Units per Amazon pack, for per-unit profit math."
          },
          "buy_box_price": {
            "type": [
              "number",
              "null"
            ],
            "format": "float",
            "description": "Amazon buy-box price (joined from the resolved UPC/ASIN mapping). Omitted when the mapping is unresolved."
          },
          "amazon_fees": {
            "type": [
              "number",
              "null"
            ],
            "format": "float",
            "description": "Estimated Amazon per-unit fee total. Omitted when not yet computed."
          }
        },
        "required": [
          "asin"
        ]
      }
    },
    "promotion_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Promotion identity. Present only on promotion_started / promotion_ended events."
    },
    "promotion_title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Human-readable promotion title."
    },
    "coupon_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Coupon code, if the promotion requires one."
    },
    "promotion_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Single primary promotion type (first of the full list on /v1/promotions)."
    },
    "promotion_ends_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Promotion end date/time."
    }
  },
  "required": [
    "event_id",
    "event",
    "retailer_id",
    "sku",
    "source",
    "ingest_seq_ms"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/lemmebuyit-com-change"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.