Home/Tools/@tpmjs/official-invoice-terms-extract

invoiceTermsExtractTool

@tpmjs/official-invoice-terms-extract

Extracts payment terms, due dates, and late fees from invoice text

Official
legal
v0.1.1
MIT

Interactive Playground

Test @tpmjs/official-invoice-terms-extract (invoiceTermsExtractTool) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/official-invoice-terms-extract
pnpm add @tpmjs/official-invoice-terms-extract
yarn add @tpmjs/official-invoice-terms-extract
bun add @tpmjs/official-invoice-terms-extract
deno add npm:@tpmjs/official-invoice-terms-extract

2. Import the tool

import { invoiceTermsExtractTool } from '@tpmjs/official-invoice-terms-extract';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { invoiceTermsExtractTool } from '@tpmjs/official-invoice-terms-extract';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { invoiceTermsExtractTool },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Signature

(invoiceText: string) => Promise<unknown>

Tags

dates
due
extract
extracts
fees
invoice
late
legal
official
payment
terms
text
tpmjs

Parameters

Available configuration options

Auto-extracted
invoiceText
Required
Type: string

Invoice text or terms section

Schema extracted: 2/22/2026, 4:25:55 AM

README

ERROR: No README data found!

Statistics

Downloads/month

0

Quality Score

0%

Bundle Size

NPM Keywords

tpmjs
legal
invoice
payment
terms

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai