{
  "openapi": "3.0.1",
  "info": {
    "title": "SKUFuse — Shopify Catalog Update Review",
    "description": "Compare current and proposed Shopify product CSVs before import. SKUFuse flags significant price changes, stock going to zero, unmatched or ambiguous SKUs, and rows requiring manual review. Comparison only — it never writes to your store.",
    "version": "0.0",
    "x-build-id": "gQoLIh3BFwrVjHdrv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overbifrost~SKUFuse-shopify/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overbifrost-SKUFuse-shopify",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/overbifrost~SKUFuse-shopify/runs": {
      "post": {
        "operationId": "runs-sync-overbifrost-SKUFuse-shopify",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/overbifrost~SKUFuse-shopify/run-sync": {
      "post": {
        "operationId": "run-sync-overbifrost-SKUFuse-shopify",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "demoMode": {
            "title": "Run synthetic demo",
            "type": "boolean",
            "description": "Try SKUFuse on built-in synthetic Shopify data — no files needed and nothing about your catalog is sent. Leave ON for a first look at the report; turn OFF to compare your own Shopify product CSVs. When off, real sources and the declarations below are required. A demo run is billed like any other run (one comparison over 3 rows)."
          },
          "currentCsvFile": {
            "title": "Current products CSV file",
            "type": "string",
            "description": "Upload the current Shopify products export as a CSV file from your computer (up to 10 MB). Exactly one source per file — either this upload or one of the advanced options below."
          },
          "proposedCsvFile": {
            "title": "Proposed update CSV file",
            "type": "string",
            "description": "Upload the proposed products CSV from your computer (up to 10 MB) — the file you plan to import. Exactly one source per file."
          },
          "rules": {
            "title": "Review rules",
            "type": "object",
            "description": "Configure the price-change thresholds and whether inventory changes from positive to zero are reported.",
            "properties": {
              "maxPriceDropPercent": {
                "title": "Max price drop (%)",
                "type": "number",
                "editor": "number",
                "description": "Price decreases larger than this are flagged. 0–100.",
                "minimum": 0,
                "maximum": 100,
                "default": 30
              },
              "maxPriceIncreasePercent": {
                "title": "Max price increase (%)",
                "type": "number",
                "editor": "number",
                "description": "Price increases larger than this are flagged. 0–10000.",
                "minimum": 0,
                "maximum": 10000,
                "default": 30
              },
              "flagStockToZero": {
                "title": "Flag inventory → 0",
                "type": "boolean",
                "editor": "checkbox",
                "description": "Report rows whose inventory quantity changes from positive to zero.",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Z]{3}$",
            "type": "string",
            "description": "ISO 4217 code for the compared prices, e.g. EUR or USD. Required for a real comparison. Declared context only — the Actor does not convert prices."
          },
          "confirmComparablePrices": {
            "title": "Prices are comparable",
            "type": "boolean",
            "description": "Required declaration: both files use the same currency and the same price basis (e.g. both net or both gross). Intentionally not pre-checked."
          },
          "confirmSingleLocationInventory": {
            "title": "Single-location inventory",
            "type": "boolean",
            "description": "Required declaration: your store uses a single inventory location, so the CSV's Inventory quantity column describes your whole inventory. Stores with multiple inventory locations are NOT supported by this profile — the product CSV cannot express per-location quantities. Intentionally not pre-checked."
          },
          "currentCsv": {
            "title": "Current products CSV (paste text)",
            "type": "string",
            "description": "Paste the current Shopify products export as CSV text (max 512 KB). An alternative to the file upload above — use exactly one source per file."
          },
          "proposedCsv": {
            "title": "Proposed update CSV (paste text)",
            "type": "string",
            "description": "Paste the proposed products CSV as text (max 512 KB). Exactly one source per file."
          },
          "currentCsvUrl": {
            "title": "Current products CSV URL",
            "type": "string",
            "description": "Public HTTPS URL returning the current CSV (max 10 MB). No redirects, no URL credentials, port 443 only."
          },
          "proposedCsvUrl": {
            "title": "Proposed update CSV URL",
            "type": "string",
            "description": "Public HTTPS URL returning the proposed CSV (max 10 MB). No redirects, no URL credentials, port 443 only."
          },
          "maxFindings": {
            "title": "Max findings",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of findings retained in the report (1–1000). Totals are always counted completely; only the returned list is bounded.",
            "default": 1000
          },
          "schemaVersion": {
            "title": "Schema version",
            "type": "string",
            "description": "Fixed input contract version. Any other value fails with UNSUPPORTED_SCHEMA.",
            "default": "shopify_product_price_stock_single_location_v1"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}