{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Product CSV Validator & Cleaner",
    "description": "Checks your Shopify product CSV before import: each variant's errors and warnings (columns, options, SKUs, GTIN check digits, prices, image URLs), one row per issue, a summary and a cleaned CSV; failed and unchanged rows are never charged. Not affiliated with or endorsed by Shopify.",
    "version": "0.1",
    "x-build-id": "QMnbfaWxD4qxZx9Fu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mouadapi~shopify-product-feed-validator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mouadapi-shopify-product-feed-validator",
        "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/mouadapi~shopify-product-feed-validator/runs": {
      "post": {
        "operationId": "runs-sync-mouadapi-shopify-product-feed-validator",
        "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/mouadapi~shopify-product-feed-validator/run-sync": {
      "post": {
        "operationId": "run-sync-mouadapi-shopify-product-feed-validator",
        "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": {
          "csvText": {
            "title": "Product CSV (text)",
            "type": "string",
            "description": "Your Shopify product CSV, pasted as text, header line first (current or older Shopify column names). Up to about 9 MB; for a larger file, use the key-value store fields below. The prefill is a small sample with problems to show what comes back."
          },
          "keyValueStoreId": {
            "title": "Key-value store with the CSV",
            "type": "string",
            "description": "Your key-value store that holds the CSV file as a record (for large files, or files another Actor wrote). The picker gives this run read access to that store only. Give the record key below."
          },
          "recordKey": {
            "title": "Record key",
            "type": "string",
            "description": "The key of the record that holds the CSV in that store, e.g. products.csv."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "watch",
              "export"
            ],
            "type": "string",
            "description": "Empty: watch when a watch list name is given, otherwise export. \"export\" returns every variant; \"watch\" returns only variants that are new or whose issues or price changed since the last run of the watch list. An explicit mode wins."
          },
          "stateName": {
            "title": "Watch list name",
            "type": "string",
            "description": "Name of your watch list (kept in your own storage between runs): upload each new version of the feed and run with the same name to see only what changed. Giving a name turns on watch mode; watch mode without a name uses the list \"default\"."
          },
          "currency": {
            "title": "Store currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "Your store's currency as an ISO 4217 code (USD, EUR, GBP, MAD…): checked, and shown beside every price (Shopify's CSV prices carry no currency)."
          },
          "decimalComma": {
            "title": "Prices use a decimal comma",
            "type": "boolean",
            "description": "On: a price written 29,99 is read as 29.99 and fixed in CLEANED_CSV. Off: it is an error with 29.99 as a suggestion only (a comma could also be a thousands separator).",
            "default": false
          },
          "targetMarginPercent": {
            "title": "Target gross margin (%)",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "Warn when (price − cost per item) / price is under this percent. Empty: no margin warning (a cost above the price is always a warning)."
          },
          "priceJumpPercent": {
            "title": "Price jump threshold (%)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Watch mode: a price that moved by this many percent or more since the last run is a price_jump warning, and the variant comes back as changed.",
            "default": 50
          },
          "issueRows": {
            "title": "One row per issue",
            "type": "boolean",
            "description": "Also write one free row per issue (rowType \"issue\"), handy in a spreadsheet. The variant rows list their issues either way.",
            "default": true
          },
          "writeCleanedCsv": {
            "title": "Save the cleaned CSV",
            "type": "boolean",
            "description": "Save CLEANED_CSV in the run's key-value store: your file with only the safe fixes (trimmed cells; column name case; true/false; lowercase status and other values; prices without currency symbols or thousands separators; whole numbers; UTF-8 with LF line ends). Nothing else is changed.",
            "default": true
          },
          "maxItems": {
            "title": "Max charged variants",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Most variant rows returned and charged per run. In watch mode the rest come in the next run.",
            "default": 100000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}