{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify CSV Import Checker & Catalog Diff",
    "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": "2oS1BKNabWx8QXKVw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overbifrost~shopify-csv-import-checker-catalog-diff/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overbifrost-shopify-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~shopify-csv-import-checker-catalog-diff/runs": {
      "post": {
        "operationId": "runs-sync-overbifrost-shopify-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~shopify-csv-import-checker-catalog-diff/run-sync": {
      "post": {
        "operationId": "run-sync-overbifrost-shopify-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 Shopify example with a large price drop and inventory 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": [
              "shopify_product_price_stock_single_location_v1",
              "shopify_product_variants_v2"
            ],
            "type": "string",
            "description": "Use Price + inventory for the standard single-location product CSV workflow. Use Product variants for variant identity, options, blank-overwrite, compare-at-price, and optional inventory checks.",
            "default": "shopify_product_price_stock_single_location_v1"
          },
          "currentCsvFile": {
            "title": "Current Shopify product CSV",
            "type": "string",
            "description": "Upload the Shopify product CSV that represents the current state (up to 10 MB). Use exactly one current source."
          },
          "proposedCsvFile": {
            "title": "Proposed Shopify import CSV",
            "type": "string",
            "description": "Upload the Shopify product 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 both files use the same currency and price basis, such as both net or both gross."
          },
          "confirmSingleLocationInventory": {
            "title": "Inventory is single-location",
            "type": "boolean",
            "description": "Required whenever the proposed file includes Inventory quantity. Confirm that quantity represents one inventory location."
          },
          "confirmOverwriteMatchingHandles": {
            "title": "Import overwrites matching handles",
            "type": "boolean",
            "description": "Required only for Product variants. Confirm the planned Shopify import overwrites existing products with matching handles."
          },
          "rules": {
            "title": "Price and inventory review rules",
            "type": "object",
            "description": "Control which price and inventory changes are highlighted for review.",
            "properties": {
              "maxPriceDropPercent": {
                "title": "Max price drop (%)",
                "type": "number",
                "editor": "number",
                "description": "Flag price decreases strictly larger than this percentage.",
                "minimum": 0,
                "maximum": 100,
                "default": 30
              },
              "maxPriceIncreasePercent": {
                "title": "Max price increase (%)",
                "type": "number",
                "editor": "number",
                "description": "Flag price increases strictly larger than this percentage.",
                "minimum": 0,
                "maximum": 10000,
                "default": 30
              },
              "flagStockToZero": {
                "title": "Flag inventory → 0",
                "type": "boolean",
                "editor": "checkbox",
                "description": "Flag tracked inventory 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 Shopify product 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 Shopify product 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."
          },
          "currentDataset": {
            "title": "Current products dataset",
            "type": "string",
            "description": "Alternative current source: select an Apify dataset containing Shopify product records. 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 Shopify columns.",
            "properties": {
              "URL handle": {
                "title": "URL handle field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing Shopify URL handle."
              },
              "Title": {
                "title": "Title field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing product title."
              },
              "SKU": {
                "title": "SKU field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing SKU."
              },
              "Price": {
                "title": "Price field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing variant price."
              },
              "Inventory tracker": {
                "title": "Inventory tracker field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing Inventory tracker."
              },
              "Inventory quantity": {
                "title": "Inventory quantity field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing single-location inventory quantity."
              },
              "Option1 name": {
                "title": "Option 1 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option1 value": {
                "title": "Option 1 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option2 name": {
                "title": "Option 2 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option2 value": {
                "title": "Option 2 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option3 name": {
                "title": "Option 3 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option3 value": {
                "title": "Option 3 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Barcodes": {
                "title": "Barcode field path",
                "type": "string",
                "editor": "textfield",
                "description": "Optional barcode field."
              },
              "Compare-at price": {
                "title": "Compare-at price field path",
                "type": "string",
                "editor": "textfield",
                "description": "Optional compare-at price field."
              }
            },
            "additionalProperties": false
          },
          "proposedDatasetMapping": {
            "title": "Proposed dataset field mapping",
            "type": "object",
            "description": "Optional visual mapping when proposed dataset field names differ from Shopify columns.",
            "properties": {
              "URL handle": {
                "title": "URL handle field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing Shopify URL handle."
              },
              "Title": {
                "title": "Title field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing product title."
              },
              "SKU": {
                "title": "SKU field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing SKU."
              },
              "Price": {
                "title": "Price field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing variant price."
              },
              "Inventory tracker": {
                "title": "Inventory tracker field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing Inventory tracker."
              },
              "Inventory quantity": {
                "title": "Inventory quantity field path",
                "type": "string",
                "editor": "textfield",
                "description": "Field path containing single-location inventory quantity."
              },
              "Option1 name": {
                "title": "Option 1 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option1 value": {
                "title": "Option 1 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option2 name": {
                "title": "Option 2 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option2 value": {
                "title": "Option 2 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option3 name": {
                "title": "Option 3 name path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Option3 value": {
                "title": "Option 3 value path",
                "type": "string",
                "editor": "textfield",
                "description": "Variants profile only."
              },
              "Barcodes": {
                "title": "Barcode field path",
                "type": "string",
                "editor": "textfield",
                "description": "Optional barcode field."
              },
              "Compare-at price": {
                "title": "Compare-at price field path",
                "type": "string",
                "editor": "textfield",
                "description": "Optional compare-at price field."
              }
            },
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}