Skip to content
cccskills
FreePublished on GitHub

extract-ct600-data

Extract structured fields from ct600 documents.

The English summary is being prepared. Showing the original description.

Works withn8n
See how to install

Files included (1)

  • SKILL.md14.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Extract CT600 Data

Tax and finance teams use this recipe to extract CT600 fields from official forms into structured JSON for review, routing, and downstream filing preparation.

APIs Used

Document Extraction (1 credit per page)

Prerequisites

You need an Iteration Layer API key. Get one at platform.iterationlayer.com during the 7-day trial.

For full integration guidance (SDKs, auth, MCP, error handling), see the Iteration Layer Integration Guide.

Implementation

curl -X POST https://api.iterationlayer.com/document-extraction/v1/extract \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "files": [
    {
      "type": "url",
      "name": "ct600.pdf",
      "url": "https://example.com/documents/ct600-sample.pdf"
    }
  ],
  "schema": {
    "fields": [
      {
        "name": "taxpayer_name",
        "type": "TEXT",
        "description": "Taxpayer, filer, or recipient name"
      },
      {
        "name": "taxpayer_identifier",
        "type": "TEXT",
        "description": "Taxpayer identifier"
      },
      {
        "name": "issuer_or_authority",
        "type": "TEXT",
        "description": "Employer, payer, or tax authority"
      },
      {
        "name": "tax_period",
        "type": "TEXT",
        "description": "Tax year or filing period"
      },
      {
        "name": "tax_lines",
        "type": "ARRAY",
        "description": "Reported tax lines",
        "fields": [
          {
            "name": "code",
            "type": "TEXT",
            "description": "Box, line, or tax code"
          },
          {
            "name": "description",
            "type": "TEXT",
            "description": "Line description"
          },
          {
            "name": "amount",
            "type": "CURRENCY_AMOUNT",
            "description": "Reported amount"
          }
        ]
      },
      {
        "name": "taxable_amount",
        "type": "CURRENCY_AMOUNT",
        "description": "Taxable amount or tax base"
      },
      {
        "name": "tax_due_or_withheld",
        "type": "CURRENCY_AMOUNT",
        "description": "Tax due, assessed, or withheld"
      },
      {
        "name": "currency",
        "type": "CURRENCY_CODE",
        "description": "Currency code"
      }
    ]
  }
}'
import { IterationLayer } from "iterationlayer";

const client = new IterationLayer({ apiKey: "YOUR_API_KEY" });

const result = await client.extractDocument({
  "files": [
    {
      "type": "url",
      "name": "ct600.pdf",
      "url": "https://example.com/documents/ct600-sample.pdf"
    }
  ],
  "schema": {
    "fields": [
      {
        "name": "taxpayer_name",
        "type": "TEXT",
        "description": "Taxpayer, filer, or recipient name"
      },
      {
        "name": "taxpayer_identifier",
        "type": "TEXT",
        "description": "Taxpayer identifier"
      },
      {
        "name": "issuer_or_authority",
        "type": "TEXT",
        "description": "Employer, payer, or tax authority"
      },
      {
        "name": "tax_period",
        "type": "TEXT",
        "description": "Tax year or filing period"
      },
      {
        "name": "tax_lines",
        "type": "ARRAY",
        "description": "Reported tax lines",
        "fields": [
          {
            "name": "code",
            "type": "TEXT",
            "description": "Box, line, or tax code"
          },
          {
            "name": "description",
            "type": "TEXT",
            "description": "Line description"
          },
          {
            "name": "amount",
            "type": "CURRENCY_AMOUNT",
            "description": "Reported amount"
          }
        ]
      },
      {
        "name": "taxable_amount",
        "type": "CURRENCY_AMOUNT",
        "description": "Taxable amount or tax base"
      },
      {
        "name": "tax_due_or_withheld",
        "type": "CURRENCY_AMOUNT",
        "description": "Tax due, assessed, or withheld"
      },
      {
        "name": "currency",
        "type": "CURRENCY_CODE",
        "description": "Currency code"
      }
    ]
  }
});
from iterationlayer import IterationLayer

client = IterationLayer(api_key="YOUR_API_KEY")

result = client.extract_document(**{
  "files": [
    {
      "type": "url",
      "name": "ct600.pdf",
      "url": "https://example.com/documents/ct600-sample.pdf"
    }
  ],
  "schema": {
    "fields": [
      {
        "name": "taxpayer_name",
        "type": "TEXT",
        "description": "Taxpayer, filer, or recipient name"
      },
      {
        "name": "taxpayer_identifier",
        "type": "TEXT",
        "description": "Taxpayer identifier"
      },
      {
        "name": "issuer_or_authority",
        "type": "TEXT",
        "description": "Employer, payer, or tax authority"
      },
      {
        "name": "tax_period",
        "type": "TEXT",
        "description": "Tax year or filing period"
      },
      {
        "name": "tax_lines",
        "type": "ARRAY",
        "description": "Reported tax lines",
        "fields": [
          {
            "name": "code",
            "type": "TEXT",
            "description": "Box, line, or tax code"
          },
          {
            "name": "description",
            "type": "TEXT",
            "description": "Line description"
          },
          {
            "name": "amount",
            "type": "CURRENCY_AMOUNT",
            "description": "Reported amount"
          }
        ]
      },
      {
        "name": "taxable_amount",
        "type": "CURRENCY_AMOUNT",
        "description": "Taxable amount or tax base"
      },
      {
        "name": "tax_due_or_withheld",
        "type": "CURRENCY_AMOUNT",
        "description": "Tax due, assessed, or withheld"
      },
      {
        "name": "currency",
        "type": "CURRENCY_CODE",
        "description": "Currency code"
      }
    ]
  }
})
package main

import il "github.com/iterationlayer/sdk-go"

func main() {
	client := il.NewClient("YOUR_API_KEY")

	result, err := client.ExtractDocument(il.ExtractDocumentRequest{
		Files: []il.FileInput{
			il.FileInput{
				Type: "url",
				Name: "ct600.pdf",
				Url: "https://example.com/documents/ct600-sample.pdf",
			},
		},
		Schema: il.ExtractionSchema{
			Fields: []any{
				il.TextFieldConfig{
					Name: "taxpayer_name",
					Type: "TEXT",
					Description: "Taxpayer, filer, or recipient name",
				},
				il.TextFieldConfig{
					Name: "taxpayer_identifier",
					Type: "TEXT",
					Description: "Taxpayer identifier",
				},
				il.TextFieldConfig{
					Name: "issuer_or_authority",
					Type: "TEXT",
					Description: "Employer, payer, or tax authority",
				},
				il.TextFieldConfig{
					Name: "tax_period",
					Type: "TEXT",
					Description: "Tax year or filing period",
				},
				il.ArrayFieldConfig{
					Name: "tax_lines",
					Type: "ARRAY",
					Description: "Reported tax lines",
					Fields: []any{
						il.TextFieldConfig{
							Name: "code",
							Type: "TEXT",
							Description: "Box, line, or tax code",
						},
						il.TextFieldConfig{
							Name: "description",
							Type: "TEXT",
							Description: "Line description",
						},
						il.CurrencyAmountFieldConfig{
							Name: "amount",
							Type: "CURRENCY_AMOUNT",
							Description: "Reported amount",
						},
					},
				},
				il.CurrencyAmountFieldConfig{
					Name: "taxable_amount",
					Type: "CURRENCY_AMOUNT",
					Description: "Taxable amount or tax base",
				},
				il.CurrencyAmountFieldConfig{
					Name: "tax_due_or_withheld",
					Type: "CURRENCY_AMOUNT",
					Description: "Tax due, assessed, or withheld",
				},
				il.CurrencyCodeFieldConfig{
					Name: "currency",
					Type: "CURRENCY_CODE",
					Description: "Currency code",
				},
			},
		},
	})
	if err != nil {
		panic(err)
	}

	_ = result
}
{
  "name": "Extract CT600 Data",
  "nodes": [
    {
      "parameters": {
        "content": "## Extract CT600 Data\n\nTax and finance teams use this recipe to extract CT600 fields from official forms into structured JSON for review, routing, and downstream filing preparation.\n\n**Note:** This workflow uses the Iteration Layer community node (`n8n-nodes-iterationlayer`). Install it via Settings > Community Nodes on self-hosted n8n, or add it directly on n8n Cloud with Verified Community Nodes enabled.",
        "height": 280,
        "width": 500,
        "color": 2
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        200,
        40
      ],
      "id": "extract-ct600-data-overview",
      "name": "Overview"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "extract-ct600-data-trigger",
      "name": "Manual Trigger"
    },
    {
      "parameters": {
        "resource": "documentExtraction",
        "schemaInputMode": "rawJson",
        "schemaJson": "{\n  \"fields\": [\n    {\n      \"name\": \"taxpayer_name\",\n      \"type\": \"TEXT\",\n      \"description\": \"Taxpayer, filer, or recipient name\"\n    },\n    {\n      \"name\": \"taxpayer_identifier\",\n      \"type\": \"TEXT\",\n      \"description\": \"Taxpayer identifier\"\n    },\n    {\n      \"name\": \"issuer_or_authority\",\n      \"type\": \"TEXT\",\n      \"description\": \"Employer, payer, or tax authority\"\n    },\n    {\n      \"name\": \"tax_period\",\n      \"type\": \"TEXT\",\n      \"description\": \"Tax year or filing period\"\n    },\n    {\n      \"name\": \"tax_lines\",\n      \"type\": \"ARRAY\",\n      \"description\": \"Reported tax lines\",\n      \"fields\": [\n        {\n          \"name\": \"code\",\n          \"type\": \"TEXT\",\n          \"description\": \"Box, line, or tax code\"\n        },\n        {\n          \"name\": \"description\",\n          \"type\": \"TEXT\",\n          \"description\": \"Line description\"\n        },\n        {\n          \"name\": \"amount\",\n          \"type\": \"CURRENCY_AMOUNT\",\n          \"description\": \"Reported amount\"\n        }\n      ]\n    },\n    {\n      \"name\": \"taxable_amount\",\n      \"type\": \"CURRENCY_AMOUNT\",\n      \"description\": \"Taxable amount or tax base\"\n    },\n    {\n      \"name\": \"tax_due_or_withheld\",\n      \"type\": \"CURRENCY_AMOUNT\",\n      \"description\": \"Tax due, assessed, or withheld\"\n    },\n    {\n      \"name\": \"currency\",\n      \"type\": \"CURRENCY_CODE\",\n      \"description\": \"Currency code\"\n    }\n  ]\n}",
        "files": {
          "fileValues": [
            {
              "fileInputMode": "url",
              "fileName": "ct600.pdf",
              "fileUrl": "https://example.com/documents/ct600-sample.pdf"
            }
          ]
        }
      },
      "type": "n8n-nodes-iterationlayer.iterationLayer",
      "typeVersion": 1,
      "position": [
        500,
        300
      ],
      "id": "extract-ct600-data-extract",
      "name": "Extract Data",
      "credentials": {
        "iterationLayerApi": {
          "id": "1",
          "name": "Iteration Layer API"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Extract Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
Extract ct600 data from the file at [file URL]. Use the extract_document tool with these fields:

- taxpayer_name (TEXT): Taxpayer, filer, or recipient name
- taxpayer_identifier (TEXT): Taxpayer identifier
- issuer_or_authority (TEXT): Employer, payer, or tax authority
- tax_period (TEXT): Tax year or filing period
- tax_lines (ARRAY): Each with code (TEXT), description (TEXT), amount (CURRENCY_AMOUNT)
- taxable_amount (CURRENCY_AMOUNT): Taxable amount or tax base
- tax_due_or_withheld (CURRENCY_AMOUNT): Tax due, assessed, or withheld
- currency (CURRENCY_CODE): Currency code

Response

{
  "success": true,
  "data": {
    "taxpayer_name": {
      "value": "Taxpayer Name",
      "confidence": 0.97,
      "citations": [
        "TAXPAYER NAME"
      ]
    },
    "taxpayer_identifier": {
      "value": "Taxpayer Identifier",
      "confidence": 0.97,
      "citations": [
        "TAXPAYER IDENTIFIER"
      ]
    },
    "issuer_or_authority": {
      "value": "Issuer Or Authority",
      "confidence": 0.97,
      "citations": [
        "ISSUER OR AUTHORITY"
      ]
    },
    "tax_period": {
      "value": "Tax Period",
      "confidence": 0.97,
      "citations": [
        "TAX PERIOD"
      ]
    },
    "tax_lines": {
      "value": [
        {
          "code": {
            "value": "Code",
            "confidence": 0.96,
            "citations": [
              "CODE"
            ]
          },
          "description": {
            "value": "Description",
            "confidence": 0.96,
            "citations": [
              "DESCRIPTION"
            ]
          },
          "amount": {
            "value": {
              "amount": "1234.56",
              "currency": "GBP"
            },
            "confidence": 0.96,
            "citations": [
              "GBP 1,234.56"
            ]
          }
        }
      ],
      "confidence": 0.97,
      "citations": [
        "TAX LINES"
      ]
    },
    "taxable_amount": {
      "value": {
        "amount": "1234.56",
        "currency": "GBP"
      },
      "confidence": 0.97,
      "citations": [
        "GBP 1,234.56"
      ]
    },
    "tax_due_or_withheld": {
      "value": {
        "amount": "1234.56",
        "currency": "GBP"
      },
      "confidence": 0.97,
      "citations": [
        "GBP 1,234.56"
      ]
    },
    "currency": {
      "value": "GBP",
      "confidence": 0.97,
      "citations": [
        "CURRENCY"
      ]
    }
  }
}

Links

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Resize, sharpen, and compress an image to fit email platform size limits in a single pipeline.

The English summary is being prepared. Showing the original description.

iterationlayer/skills4Updated Jun 9, 2026

Compress an image to fit within a specific file size in bytes using quality-first compression.

The English summary is being prepared. Showing the original description.

iterationlayer/skills4Updated Jun 9, 2026

Convert a contract PDF to clean markdown for clause extraction or LLM analysis.

The English summary is being prepared. Showing the original description.

iterationlayer/skills4Updated Jun 9, 2026

Convert external documents — specs, contracts, reports — to markdown for knowledge base ingestion.

The English summary is being prepared. Showing the original description.

iterationlayer/skills4Updated Jun 9, 2026

Convert a document to clean markdown suitable for chunking and embedding in a RAG pipeline.

The English summary is being prepared. Showing the original description.

iterationlayer/skills4Updated Jun 9, 2026

Convert an image between PNG, JPEG, and WebP formats with quality control for web optimization.

The English summary is being prepared. Showing the original description.

iterationlayer/skills4Updated Jun 9, 2026

See all skills by iterationlayer

Report a problem with this skill