{
  "openapi": "3.0.1",
  "info": {
    "title": "US 1099-NEC $2,000 Threshold, State Rules & Withholding (MCP)",
    "description": "Audit 2026 US Form 1099-NEC compliance across all 50 states + DC: compares the new $2,000 Federal threshold vs. $600 State filing traps, IRS CF/SF vs. direct state e-filing portals, entity/credit-card exemptions, 24% backup withholding, and IRS penalty exposure for CPAs and AI agents.",
    "version": "0.1",
    "x-build-id": "WJxyooNzaxllA2pwd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ferraz_michel~us-1099-nec-state-compliance-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ferraz_michel-us-1099-nec-state-compliance-mcp",
        "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/ferraz_michel~us-1099-nec-state-compliance-mcp/runs": {
      "post": {
        "operationId": "runs-sync-ferraz_michel-us-1099-nec-state-compliance-mcp",
        "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/ferraz_michel~us-1099-nec-state-compliance-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-ferraz_michel-us-1099-nec-state-compliance-mcp",
        "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": {
          "states": {
            "title": "US States to Evaluate (or ['ALL'])",
            "type": "array",
            "description": "Two-letter US state codes (e.g. ['CA', 'NY', 'TX', 'PA', 'MA']) or ['ALL'] to evaluate all 50 states + DC. Ignored if 'contractors' batch array is provided.",
            "default": [
              "CA",
              "NY",
              "TX",
              "PA",
              "MA",
              "FL",
              "IL",
              "NJ",
              "OR",
              "GA"
            ],
            "items": {
              "type": "string"
            }
          },
          "taxYear": {
            "title": "Tax Year",
            "minimum": 2025,
            "maximum": 2026,
            "type": "integer",
            "description": "Tax year being audited. Federal 1099-NEC threshold jumped from $600 (2025) to $2,000 (2026), while many states kept $600.",
            "default": 2026
          },
          "paymentAmountUsd": {
            "title": "Annual Gross Payments (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Total annual contractor compensation in USD. Default $1,250 highlights the 2026 $600–$1,999 Federal-vs-State filing trap.",
            "default": 1250
          },
          "entityType": {
            "title": "Contractor Entity Type",
            "enum": [
              "individual_sole_prop",
              "single_member_llc",
              "partnership_llc",
              "c_corp",
              "s_corp",
              "nonprofit"
            ],
            "type": "string",
            "description": "Payee tax classification from Form W-9.",
            "default": "individual_sole_prop"
          },
          "paymentMethod": {
            "title": "Payment Method",
            "enum": [
              "ach_wire_check_cash",
              "credit_card_1099k"
            ],
            "type": "string",
            "description": "Credit card / third-party network payments (1099-K) are exempt from 1099-NEC reporting under IRC § 6050W.",
            "default": "ach_wire_check_cash"
          },
          "w9Verified": {
            "title": "Signed Form W-9 / Valid TIN Verified",
            "type": "boolean",
            "description": "Whether a valid signed Form W-9 with TIN was collected before payment. False triggers mandatory 24% Federal backup withholding and $0.01 threshold filing.",
            "default": true
          },
          "isAttorneyOrLegalServices": {
            "title": "Attorney or Legal Services Payment",
            "type": "boolean",
            "description": "Payments for legal services are reportable on Form 1099-NEC even when paid to C-Corps or S-Corps.",
            "default": false
          },
          "stateTaxWithheldUsd": {
            "title": "State Income Tax Already Withheld (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Any state income tax already withheld from the contractor during the year.",
            "default": 0
          },
          "contractors": {
            "title": "Optional Batch Contractor List (JSON)",
            "type": "array",
            "description": "Optional array of contractor objects for batch vendor auditing: [{contractorId, name, state, paymentAmountUsd, entityType, paymentMethod, w9Verified, isAttorneyOrLegalServices, stateTaxWithheldUsd}]."
          },
          "outputMode": {
            "title": "Output Mode",
            "enum": [
              "detailed",
              "mcp_summary"
            ],
            "type": "string",
            "description": "Choose between detailed dataset records or a compact MCP executive compliance summary.",
            "default": "detailed"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}