{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sellerassistant-app/json-schema/sellerassistant-app-repricer-product-history-item-schema.json",
  "title": "RepricerProductHistoryItem",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sellerassistant-app-openapi.json#/components/schemas/RepricerProductHistoryItem",
  "properties": {
    "id": {
      "description": "History record ID.",
      "type": "integer"
    },
    "asin": {
      "description": "Product ASIN used in repricing run.",
      "type": [
        "string",
        "null"
      ]
    },
    "marketplace_id": {
      "description": "Marketplace ID used in repricing run.",
      "type": [
        "string",
        "null"
      ]
    },
    "sku": {
      "description": "Seller SKU used in repricing run.",
      "type": [
        "string",
        "null"
      ]
    },
    "reprice_priority": {
      "description": "Reprice priority at run time.",
      "type": "string"
    },
    "status": {
      "description": "Final repricing status.",
      "type": "string",
      "enum": [
        "FAILED",
        "SKIPPED",
        "PRICE_SKIPPED_OUT_OF_BOUNDS",
        "PRICE_ALREADY_OPTIMAL",
        "PRICE_UPDATE_SKIPPED_BY_ALLOW_FLAG",
        "PRICE_UPDATE_SUBMITTED",
        "PRICE_UPDATE_CONFIRMED",
        "DRY_RUN_PRICE_UPDATE_EMULATED"
      ]
    },
    "error_code": {
      "description": "Detailed failure reason. Present when status=FAILED. Values: FAILED_TO_LOAD_REPRICER_PRODUCT, NO_REPRICER_PRODUCT_FOUND, FAILED_TO_RESOLVE_STRATEGY, FAILED_TO_RESOLVE_AMAZON_SELLER_CONTEXT, NO_AMAZON_SELLER_AUTHORIZATION_FOUND, FAILED_TO_FETCH_SELLER_PRICE_FROM_AMAZON, REPRICER_PRODUCT_PAUSED, NO_SELLER_LISTINGS_FOUND_ON_AMAZON, INACTIVE_SELLER_LISTING, NO_SELLER_PRICE_FOUND_ON_AMAZON_LISTINGS, FAILED_TO_FETCH_COMPETITIVE_PRICING_FROM_AMAZON, NO_LOWEST_PRICED_OFFERS_FOUND, NO_COMPETITIVE_PRICE_FOUND, CURRENCY_MISMATCH_BETWEEN_LISTING_AND_MARKET_DATA, FAILED_TO_CALCULATE_TARGET_PRICE, FAILED_TO_SUBMIT_PRICE_TO_AMAZON.",
      "type": [
        "string",
        "null"
      ]
    },
    "market_data": {
      "description": "Raw/normalized market data snapshot used in calculation.",
      "type": [
        "object",
        "null"
      ]
    },
    "settings_snapshot": {
      "description": "Settings snapshot containing default, team-effective and product-effective values used during repricing.",
      "type": [
        "object",
        "null"
      ]
    },
    "strategy": {
      "description": "Resolved strategy used in this run.",
      "type": [
        "string",
        "null"
      ]
    },
    "strategy_params": {
      "description": "Resolved strategy parameters used in this run.",
      "type": [
        "object",
        "null"
      ]
    },
    "limits": {
      "description": "Resolved price limits used in this run.",
      "type": [
        "object",
        "null"
      ]
    },
    "old_price": {
      "description": "Seller price before repricing.",
      "type": [
        "number",
        "null"
      ],
      "format": "float"
    },
    "currency": {
      "description": "Currency code for old/final prices.",
      "type": [
        "string",
        "null"
      ]
    },
    "price_before_limits": {
      "description": "Calculated target price before limits were applied.",
      "type": [
        "number",
        "null"
      ],
      "format": "float"
    },
    "should_update_before_limits": {
      "description": "Whether update was needed before limits check.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "reason_before_limits": {
      "description": "Decision reason before limits check.",
      "type": [
        "string",
        "null"
      ]
    },
    "final_price": {
      "description": "Final price after limits/application rules.",
      "type": [
        "number",
        "null"
      ],
      "format": "float"
    },
    "should_update_after_limits": {
      "description": "Whether update should be sent after all checks.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "reason_after_limits": {
      "description": "Final decision reason after limits and flags.",
      "type": [
        "string",
        "null"
      ]
    },
    "limits_applied": {
      "description": "List of limits that affected price decision.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "mode": {
      "description": "Effective repricing mode for this run. `simulation` is a run of a test system: it sent no price.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "off",
        "simulation",
        "live"
      ]
    },
    "amazon_submit_price_status": {
      "description": "Amazon submission status, if submission attempt was made.",
      "type": [
        "string",
        "null"
      ]
    },
    "amazon_submit_price_submission_id": {
      "description": "Amazon submission identifier for tracking.",
      "type": [
        "string",
        "null"
      ]
    },
    "amazon_submit_price_blocking_issues": {
      "description": "Blocking issues returned by Amazon for price submission.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object"
      }
    },
    "created_at": {
      "description": "History record creation timestamp.",
      "type": "string",
      "format": "date-time"
    }
  },
  "type": "object"
}