{
  "openapi": "3.0.1",
  "info": {
    "title": "WooCommerce CSV Import Checker & Catalog Diff",
    "description": "Compare current and proposed WooCommerce catalog CSVs before import. SKUFuse flags significant price changes, stock going to zero, unmatched SKUs, duplicates, and rows requiring manual review. Comparison only — it never writes to your store.",
    "version": "0.0",
    "x-build-id": "zpPwozhQXbgjG69OU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overbifrost~woocommerce-csv-import-checker-catalog-diff/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overbifrost-woocommerce-csv-import-checker-catalog-diff",
        "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~woocommerce-csv-import-checker-catalog-diff/runs": {
      "post": {
        "operationId": "runs-sync-overbifrost-woocommerce-csv-import-checker-catalog-diff",
        "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~woocommerce-csv-import-checker-catalog-diff/run-sync": {
      "post": {
        "operationId": "run-sync-overbifrost-woocommerce-csv-import-checker-catalog-diff",
        "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": "Recommended first run. Uses a fixed 3-row example with a large price drop and stock going to zero. Turn this off before comparing your own files. The demo is billed like a normal 3-row comparison."
          },
          "schemaVersion": {
            "title": "Comparison profile",
            "enum": [
              "woo_simple_price_stock_v1",
              "woo_product_variations_v2"
            ],
            "type": "string",
            "description": "Use Simple products for ordinary SKU, price, and stock files. Use Products & variations when variable products, parent relationships, IDs, or stock inheritance matter.",
            "default": "woo_simple_price_stock_v1"
          },
          "currentCsvFile": {
            "title": "Current WooCommerce CSV",
            "type": "string",
            "description": "Upload the catalog CSV that represents the current state (up to 10 MB). Use exactly one current source."
          },
          "proposedCsvFile": {
            "title": "Proposed import CSV",
            "type": "string",
            "description": "Upload the WooCommerce CSV you plan to import (up to 10 MB). Use exactly one proposed source."
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Z]{3}$",
            "type": "string",
            "description": "Required for real comparisons. Enter the three-letter ISO 4217 code used by both files, for example USD. SKUFuse labels the report with this currency; it does not convert prices."
          },
          "confirmComparablePrices": {
            "title": "Prices use the same basis",
            "type": "boolean",
            "description": "Required for real comparisons. Confirm that both files use the same currency and price basis, such as both net or both gross."
          },
          "confirmSimpleProducts": {
            "title": "Assume simple products if Type is missing",
            "type": "boolean",
            "description": "Only needed when either CSV lacks the Type column. This asserts that rows without Type are simple products.",
            "default": false
          },
          "confirmUpdateExistingProducts": {
            "title": "Import uses Update existing products",
            "type": "boolean",
            "description": "Required only for Products & variations. Confirm that the planned WooCommerce import has Update existing products enabled."
          },
          "rules": {
            "title": "Price and stock review rules",
            "type": "object",
            "description": "Control which price and stock changes are highlighted for review.",
            "properties": {
              "maxPriceDropPercent": {
                "title": "Max price drop (%)",
                "type": "number",
                "editor": "number",
                "description": "Flag regular-price decreases strictly larger than this percentage.",
                "minimum": 0,
                "maximum": 100,
                "default": 30
              },
              "maxPriceIncreasePercent": {
                "title": "Max price increase (%)",
                "type": "number",
                "editor": "number",
                "description": "Flag regular-price increases strictly larger than this percentage.",
                "minimum": 0,
                "maximum": 10000,
                "default": 30
              },
              "flagStockToZero": {
                "title": "Flag stock → 0",
                "type": "boolean",
                "editor": "checkbox",
                "description": "Flag numeric stock changing from a positive value to zero.",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "maxFindings": {
            "title": "Maximum findings returned",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Limit the retained finding list to 1–1000 entries. SKUFuse still counts all findings when the list is capped.",
            "default": 1000
          },
          "currentCsv": {
            "title": "Current CSV — paste text",
            "type": "string",
            "description": "Alternative to file upload: paste the current CSV as text (max 512 KB). Use exactly one current source."
          },
          "proposedCsv": {
            "title": "Proposed CSV — paste text",
            "type": "string",
            "description": "Alternative to file upload: paste the proposed CSV as text (max 512 KB). Use exactly one proposed source."
          },
          "currentCsvUrl": {
            "title": "Current CSV URL",
            "type": "string",
            "description": "Public HTTPS URL returning the current CSV (max 10 MB). HTTPS port 443 only; redirects and URL credentials are rejected."
          },
          "proposedCsvUrl": {
            "title": "Proposed CSV URL",
            "type": "string",
            "description": "Public HTTPS URL returning the proposed CSV (max 10 MB). HTTPS port 443 only; redirects and URL credentials are rejected."
          },
          "csvDelimiter": {
            "title": "CSV delimiter",
            "enum": [
              ",",
              ";",
              "\t"
            ],
            "type": "string",
            "description": "Delimiter used by uploaded, pasted, or URL CSV files. Dataset and saved-baseline sources use canonical comma CSV."
          },
          "currentDataset": {
            "title": "Current catalog dataset",
            "type": "string",
            "description": "Alternative current source: select an Apify dataset. SKUFuse requests READ-only access."
          },
          "proposedDataset": {
            "title": "Proposed update dataset",
            "type": "string",
            "description": "Alternative proposed source: select an Apify dataset containing the planned update. SKUFuse requests READ-only access."
          },
          "currentDatasetMapping": {
            "title": "Current dataset field mapping",
            "type": "object",
            "description": "Optional visual mapping when current dataset field names differ from WooCommerce columns.",
            "properties": {
              "SKU": {
                "title": "SKU field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing SKU, for example sku."
              },
              "Regular price": {
                "title": "Regular price field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing regular price, for example price.regular."
              },
              "Stock": {
                "title": "Stock field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing stock quantity, for example inventory.qty."
              },
              "Type": {
                "title": "Type field path",
                "type": "string",
                "editor": "textfield",
                "description": "Optional product Type field path."
              },
              "ID": {
                "title": "ID field path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only: product or variation ID."
              },
              "Parent": {
                "title": "Parent field path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only: parent identifier."
              },
              "GTIN, UPC, EAN, or ISBN": {
                "title": "Global identifier field path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only: GTIN, UPC, EAN, or ISBN."
              },
              "Attribute 1 name": {
                "title": "Attribute 1 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 1 value(s)": {
                "title": "Attribute 1 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 2 name": {
                "title": "Attribute 2 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 2 value(s)": {
                "title": "Attribute 2 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 3 name": {
                "title": "Attribute 3 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 3 value(s)": {
                "title": "Attribute 3 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 4 name": {
                "title": "Attribute 4 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 4 value(s)": {
                "title": "Attribute 4 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              }
            },
            "additionalProperties": false
          },
          "proposedDatasetMapping": {
            "title": "Proposed dataset field mapping",
            "type": "object",
            "description": "Optional visual mapping when proposed dataset field names differ from WooCommerce columns.",
            "properties": {
              "SKU": {
                "title": "SKU field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing SKU."
              },
              "Regular price": {
                "title": "Regular price field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing regular price."
              },
              "Stock": {
                "title": "Stock field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing stock quantity."
              },
              "Type": {
                "title": "Type field path",
                "type": "string",
                "editor": "textfield",
                "description": "Optional product Type field path."
              },
              "ID": {
                "title": "ID field path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Parent": {
                "title": "Parent field path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "GTIN, UPC, EAN, or ISBN": {
                "title": "Global identifier field path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 1 name": {
                "title": "Attribute 1 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 1 value(s)": {
                "title": "Attribute 1 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 2 name": {
                "title": "Attribute 2 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 2 value(s)": {
                "title": "Attribute 2 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 3 name": {
                "title": "Attribute 3 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 3 value(s)": {
                "title": "Attribute 3 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 4 name": {
                "title": "Attribute 4 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              },
              "Attribute 4 value(s)": {
                "title": "Attribute 4 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variations profile only."
              }
            },
            "additionalProperties": false
          },
          "baseline": {
            "title": "Saved baseline",
            "required": [
              "operation",
              "name"
            ],
            "type": "object",
            "description": "Optional recurring workflow. Save, replace, inspect, delete, or compare against a named catalog baseline without writing JSON.",
            "properties": {
              "operation": {
                "title": "Operation",
                "type": "string",
                "editor": "select",
                "description": "Choose what to do with the named baseline.",
                "enum": [
                  "set",
                  "compare",
                  "replace",
                  "inspect",
                  "delete"
                ],
                "enumTitles": [
                  "Save current snapshot",
                  "Compare proposed update to baseline",
                  "Replace saved baseline",
                  "Inspect saved baseline",
                  "Delete saved baseline"
                ]
              },
              "name": {
                "title": "Baseline name",
                "type": "string",
                "editor": "textfield",
                "description": "1–64 characters. Letters, numbers, hyphen, or underscore; start with a letter or number.",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
                "example": "main-catalog"
              },
              "expectedVersion": {
                "title": "Expected version",
                "type": "integer",
                "editor": "number",
                "description": "Required only when replacing a baseline. Enter its current generation.",
                "minimum": 1
              }
            },
            "additionalProperties": false
          },
          "reviewWebhook": {
            "title": "Review notification webhook (advanced API)",
            "type": "object",
            "description": "Optional encrypted webhook configuration for API or Task input. Hidden from the Form view so customers are never asked to enter JSON."
          },
          "payload": {
            "title": "Integration payload",
            "type": "object",
            "description": "Platform-provided integration envelope for chained Apify runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}