{
  "openapi": "3.0.1",
  "info": {
    "title": "Invoice Checker: 3-Way Match PO, Delivery & Invoice",
    "description": "Upload an invoice, purchase order and delivery note (CSV, Excel or PDF). Get every over-billed line, short delivery and price change with the file row as proof, plus supplier quote comparison and a reorder plan. Built for e-commerce sellers, wholesalers and bookkeepers. $0.02 per report.",
    "version": "0.0",
    "x-build-id": "9MO3PzWFaW1b4n6O5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ryanbot_research~islem-b2b-automation/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ryanbot_research-islem-b2b-automation",
        "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/ryanbot_research~islem-b2b-automation/runs": {
      "post": {
        "operationId": "runs-sync-ryanbot_research-islem-b2b-automation",
        "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/ryanbot_research~islem-b2b-automation/run-sync": {
      "post": {
        "operationId": "run-sync-ryanbot_research-islem-b2b-automation",
        "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": {
          "operation": {
            "title": "Workflow",
            "enum": [
              "catalog",
              "reconciliation",
              "procurement",
              "inventory",
              "collections",
              "returns",
              "shipping",
              "contracts",
              "tenders",
              "workorders",
              "renewals",
              "fx_convert",
              "business_calendar",
              "invoice_import",
              "support",
              "browser",
              "appointments",
              "dispatch",
              "bank_match",
              "cashflow",
              "margin_analysis",
              "inventory_abc",
              "supplier_scorecard",
              "sla_audit",
              "expense_audit",
              "calendar_export",
              "contact_clean",
              "table_quality",
              "record_link",
              "locale_normalize",
              "lei_lookup",
              "public_holidays",
              "workflow"
            ],
            "type": "string",
            "description": "Choose one of 32 operations, then provide its documented payload. Prefill is a synthetic catalog example. Use JSON mode for batches or connected workflows.",
            "default": "catalog"
          },
          "payload": {
            "title": "Workflow data",
            "type": "object",
            "description": "Structured fields for the selected operation. See the README examples. Synthetic prefill is for catalog only; replace it when choosing another operation."
          },
          "source_url": {
            "title": "Optional public catalog URL",
            "type": "string",
            "description": "HTTPS URL ending in .pdf, .csv or .xlsx. Redirects and private networks are blocked."
          },
          "column_mapping": {
            "title": "Source column mapping (required with catalog URL)",
            "type": "object",
            "description": "Map the output field names to exact source column headers. Required when importing a public catalog URL."
          },
          "decimal_separator": {
            "title": "Decimal separator",
            "enum": [
              ".",
              ","
            ],
            "type": "string",
            "description": "Decimal mark used by numeric columns in the imported catalog. This setting does not change the output currency.",
            "default": "."
          },
          "invoice_file": {
            "title": "Invoice file (CSV, Excel or PDF)",
            "type": "string",
            "description": "For invoice, purchase order and delivery matching. Needs SKU, quantity and unit price columns. Upload a file or paste a public HTTPS link."
          },
          "order_file": {
            "title": "Purchase order file",
            "type": "string",
            "description": "For invoice matching. Needs SKU, quantity and unit price columns."
          },
          "delivery_file": {
            "title": "Delivery note file (optional)",
            "type": "string",
            "description": "For invoice matching. Needs SKU and quantity. Without it, the invoice is compared with the order only."
          },
          "required_file": {
            "title": "Items you need (supplier comparison)",
            "type": "string",
            "description": "For supplier quote comparison. Needs SKU and quantity columns."
          },
          "offers_file": {
            "title": "Supplier quotes (one file, all suppliers)",
            "type": "string",
            "description": "For supplier quote comparison. Needs supplier, SKU and unit price columns; optional shipping and lead time columns. A quote without a quantity covers the quantity you need."
          },
          "stock_file": {
            "title": "Stock and sales file",
            "type": "string",
            "description": "For inventory planning. Needs SKU, stock on hand and units sold columns; optional pack size, unit cost and lead time columns."
          },
          "number_format": {
            "title": "Number format in your files",
            "enum": [
              "auto",
              "1,234.56",
              "1.234,56"
            ],
            "type": "string",
            "description": "How decimals and thousands are written in uploaded CSV or PDF files. Excel number cells are read exactly.",
            "default": "auto"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter currency used when a file has no currency column or symbol.",
            "default": "EUR"
          },
          "budget": {
            "title": "Budget (optional)",
            "type": "string",
            "description": "Purchase budget for supplier comparison or stock planning, for example 150."
          },
          "max_lead_days": {
            "title": "Latest acceptable delivery (days, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "For supplier comparison: offers slower than this are marked not eligible."
          },
          "period_days": {
            "title": "Days covered by the sales column",
            "minimum": 1,
            "type": "integer",
            "description": "For stock planning: how many days the units-sold figure in your stock file covers.",
            "default": 30
          },
          "lead_days": {
            "title": "Supplier lead time in days",
            "minimum": 0,
            "type": "integer",
            "description": "For stock planning when your stock file has no lead time column."
          },
          "jobs": {
            "title": "Optional batch jobs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Run 1 to 100 jobs. Each item must contain operation and payload. When supplied, this batch replaces the single operation and payload fields above. Each completed report can be billed separately."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}