{
  "openapi": "3.0.1",
  "info": {
    "title": "Woo GTIN Fallback Review",
    "description": "Review supplied WooCommerce CSV identifiers for ID/SKU blocks on Global Unique ID fallback using a frozen native Woo 11.2 rule profile.",
    "version": "1.1",
    "x-build-id": "mNaLQSJkP2kOb3Ol3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/remarkable_whipscorpion~woo-gtin-fallback-review/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-remarkable_whipscorpion-woo-gtin-fallback-review",
        "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/remarkable_whipscorpion~woo-gtin-fallback-review/runs": {
      "post": {
        "operationId": "runs-sync-remarkable_whipscorpion-woo-gtin-fallback-review",
        "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/remarkable_whipscorpion~woo-gtin-fallback-review/run-sync": {
      "post": {
        "operationId": "run-sync-remarkable_whipscorpion-woo-gtin-fallback-review",
        "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": {
          "mode": {
            "title": "Review mode",
            "enum": [
              "demo",
              "review"
            ],
            "type": "string",
            "description": "Demo runs only the included original fixture with no custom report event. CSV data supplied in demo is rejected. Review processes your CSV strings and may charge one useful report event.",
            "default": "demo"
          },
          "currentCsv": {
            "title": "Complete current native export CSV",
            "maxLength": 5242880,
            "type": "string",
            "description": "Required in review: complete current native WooCommerce export text with ID, SKU, Type, and the exact declared Global Unique ID header. Maximum 5 MiB UTF-8, 5,000 data rows, and 200 columns. Omit in demo."
          },
          "proposedCsv": {
            "title": "Already mapped update CSV",
            "maxLength": 5242880,
            "type": "string",
            "description": "Required in review: proposed native WooCommerce update CSV text. Perform supplier-to-native column mapping before using this Actor. Maximum 5 MiB UTF-8, 5,000 data rows, and 200 columns. Omit in demo."
          },
          "nativeWooVersion": {
            "title": "Native WooCommerce version",
            "maxLength": 64,
            "type": "string",
            "description": "Input profile identifier 11.2 binds to the frozen native 11.2.0 tag/commit only; no claim for all 11.2.x releases. Other versions are unsupported. The Actor does not detect your installed version.",
            "default": "11.2"
          },
          "globalUniqueIdHeader": {
            "title": "Exact Global Unique ID column header",
            "enum": [
              "GTIN, UPC, EAN, or ISBN"
            ],
            "type": "string",
            "description": "Frozen native header only: GTIN, UPC, EAN, or ISBN. This exact name contains commas, so quote it in CSV. Custom header overrides are rejected; map supplier columns before using the Actor.",
            "default": "GTIN, UPC, EAN, or ISBN"
          },
          "confirmUpdateExistingProducts": {
            "title": "I will select Update existing products",
            "type": "boolean",
            "description": "Review requires true. Confirm that this review is for the native importer with Update existing products selected.",
            "default": false
          },
          "currentExportComplete": {
            "title": "The current export includes the complete target catalog",
            "type": "boolean",
            "description": "Review requires true. Confirm that the supplied current export is complete for the target catalog and includes identifier coverage; missing products cannot be inferred from an incomplete export.",
            "default": false
          },
          "globalUniqueIdMappingConfirmed": {
            "title": "I mapped this column to Global Unique ID",
            "type": "boolean",
            "description": "Review requires true. Confirm the declared GTIN/UPC/EAN/ISBN column is mapped to native Global Unique ID in the importer.",
            "default": false
          },
          "rightsConfirmed": {
            "title": "I am authorized to process these CSV files",
            "type": "boolean",
            "description": "Review requires true. Confirm permission to upload and process both CSV files in your Apify storage. This acknowledgement is exempt only for the included original demo.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}