{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Merchant Feed Discrepancy Checker",
    "description": "Resolve each Shopify variant and show whether the feed, public catalog, initial HTML, or JSON-LD offer disagrees on price, currency, or availability.",
    "version": "0.1",
    "x-build-id": "HGttbKonwCMzghIOT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plusonets~shopify-merchant-feed-discrepancy-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plusonets-shopify-merchant-feed-discrepancy-checker",
        "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/plusonets~shopify-merchant-feed-discrepancy-checker/runs": {
      "post": {
        "operationId": "runs-sync-plusonets-shopify-merchant-feed-discrepancy-checker",
        "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/plusonets~shopify-merchant-feed-discrepancy-checker/run-sync": {
      "post": {
        "operationId": "run-sync-plusonets-shopify-merchant-feed-discrepancy-checker",
        "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": {
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Shopify stores to check. Leave this as the Dawn demo to try the actor. Agencies can list several client stores.",
            "items": {
              "type": "object",
              "properties": {
                "storeUrl": {
                  "title": "Store URL",
                  "type": "string",
                  "editor": "textfield",
                  "description": "Public store origin, for example https://your-store.myshopify.com.",
                  "prefill": "https://theme-dawn-demo.myshopify.com"
                },
                "label": {
                  "title": "Label",
                  "type": "string",
                  "editor": "textfield",
                  "description": "Name used in the output.",
                  "prefill": "Dawn theme demo"
                },
                "market": {
                  "title": "Market",
                  "type": "string",
                  "editor": "textfield",
                  "description": "Expected market, for example CA or US.",
                  "prefill": "CA"
                },
                "currency": {
                  "title": "Currency",
                  "type": "string",
                  "editor": "textfield",
                  "description": "Expected ISO currency, for example CAD.",
                  "prefill": "CAD"
                }
              },
              "required": [
                "storeUrl"
              ]
            }
          },
          "feedUrl": {
            "title": "Feed URL",
            "type": "string",
            "description": "Public URL of a Google Merchant TSV, CSV, or XML feed. Used instead of the built-in sample."
          },
          "feedText": {
            "title": "Feed text",
            "type": "string",
            "description": "Paste a TSV, CSV, or XML feed. Used when you do not have a feed URL."
          },
          "feedFormat": {
            "title": "Feed format",
            "enum": [
              "auto",
              "tsv",
              "csv",
              "xml"
            ],
            "type": "string",
            "description": "How to read the feed. Auto detects TSV, CSV, and XML.",
            "default": "auto"
          },
          "feedName": {
            "title": "Feed name",
            "type": "string",
            "description": "Name of the comparison feed in the timeline.",
            "default": "primary"
          },
          "feedGeneratedAt": {
            "title": "Feed generated at",
            "type": "string",
            "description": "When this feed was generated, as an ISO timestamp. Row-level dates in the file win when they exist."
          },
          "additionalFeeds": {
            "title": "Additional feeds",
            "type": "array",
            "description": "Older or supplemental feeds for the same items. They are not the comparison baseline. They show whether a conflict started in a specific feed.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "title": "Name",
                  "type": "string",
                  "editor": "textfield",
                  "description": "Feed name shown in the timeline."
                },
                "url": {
                  "title": "URL",
                  "type": "string",
                  "editor": "textfield",
                  "description": "Public URL of this feed."
                },
                "text": {
                  "title": "Text",
                  "type": "string",
                  "editor": "textarea",
                  "description": "Paste this feed instead of providing a URL."
                },
                "format": {
                  "title": "Format",
                  "type": "string",
                  "editor": "select",
                  "description": "auto, tsv, csv, or xml.",
                  "enum": [
                    "auto",
                    "tsv",
                    "csv",
                    "xml"
                  ],
                  "default": "auto"
                },
                "generatedAt": {
                  "title": "Generated at",
                  "type": "string",
                  "editor": "textfield",
                  "description": "ISO timestamp for this feed."
                }
              }
            }
          },
          "affectedProductsUrl": {
            "title": "Affected products URL",
            "type": "string",
            "description": "CSV or TSV export of the products you need checked. When a feed is also provided, only matching rows are diagnosed."
          },
          "affectedProductsText": {
            "title": "Affected products text",
            "type": "string",
            "description": "Paste an affected-products CSV. Recognized columns include id, title, link, price, availability, gtin, sku, and issue."
          },
          "useBuiltInSample": {
            "title": "Use built-in sample",
            "type": "boolean",
            "description": "When no feed and no affected-products file are provided, build a four-row feed from the live catalog and plant a price, availability, and currency mismatch.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum variants to diagnose in this run.",
            "default": 25
          },
          "maxCatalogPages": {
            "title": "Max catalog pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Pages of products.json to scan when a row has no product link. Each page has up to 250 products.",
            "default": 3
          },
          "alertOnlyOnChange": {
            "title": "Alert only on change",
            "type": "boolean",
            "description": "Deliver and bill only new, changed, fixed, or reopened rows. Unchanged confirmations update the incident baseline and are not billed.",
            "default": false
          },
          "enableBrowserEscalation": {
            "title": "Browser escalation",
            "type": "boolean",
            "description": "Off by default. For a resolved variant whose initial HTML and JSON-LD do not identify the offer, open the variant URL in a browser. Raise run memory to 2048 MB when you enable this.",
            "default": false
          },
          "recheckOpenIncidents": {
            "title": "Recheck open incidents",
            "type": "boolean",
            "description": "Also recheck incidents still open in the state store, using the feed values saved last time.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store that keeps incident baselines across runs. An errored item does not replace a good baseline.",
            "default": "shopify-feed-discrepancy-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}