Skip to content

Catch pay application errors before anyone certifies them

Send the G702 summary and the G703 continuation sheet as an Excel workbook, CSV or JSON, with the last certified application and the approved change orders if you have them. Get every line and total recalculated, and each cell that does not add up with the expected and reported amounts.

$0.50/application ยท 10 free calls a day, no signup ยท REST and MCP

curl https://api.kanagu.dev/v1/payapp/check \
  -H "Content-Type: application/json" \
  -d '{"current":{"summary":{"originalContractSum":12000,"netChangeOrders":0,"contractSumToDate":12000,"totalCompletedAndStored":4500,"retainage":{"mode":"fixed","completedWorkRate":10,"storedMaterialsRate":5,"completedWork":350,"storedMaterials":50,"total":400},"earnedLessRetainage":4100,"previousCertificates":0,"currentPaymentDue":4100,"balanceToFinish":7900},"continuationSheet":{"format":"json","lines":[{"item":"03-100","description":"Concrete formwork","scheduledValue":12000,"previousWork":0,"currentWork":3500,"storedMaterials":1000,"totalCompletedAndStored":4500,"percentComplete":37.5,"balanceToFinish":7500}]}}}'
const res = await fetch("https://api.kanagu.dev/v1/payapp/check", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "current": {
      "summary": {
        "originalContractSum": 12000,
        "netChangeOrders": 0,
        "contractSumToDate": 12000,
        "totalCompletedAndStored": 4500,
        "retainage": {
          "mode": "fixed",
          "completedWorkRate": 10,
          "storedMaterialsRate": 5,
          "completedWork": 350,
          "storedMaterials": 50,
          "total": 400
        },
        "earnedLessRetainage": 4100,
        "previousCertificates": 0,
        "currentPaymentDue": 4100,
        "balanceToFinish": 7900
      },
      "continuationSheet": {
        "format": "json",
        "lines": [
          {
            "item": "03-100",
            "description": "Concrete formwork",
            "scheduledValue": 12000,
            "previousWork": 0,
            "currentWork": 3500,
            "storedMaterials": 1000,
            "totalCompletedAndStored": 4500,
            "percentComplete": 37.5,
            "balanceToFinish": 7500
          }
        ]
      }
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "payapp.check",
    "arguments": {
      "current": {
        "summary": {
          "originalContractSum": 12000,
          "netChangeOrders": 0,
          "contractSumToDate": 12000,
          "totalCompletedAndStored": 4500,
          "retainage": {
            "mode": "fixed",
            "completedWorkRate": 10,
            "storedMaterialsRate": 5,
            "completedWork": 350,
            "storedMaterials": 50,
            "total": 400
          },
          "earnedLessRetainage": 4100,
          "previousCertificates": 0,
          "currentPaymentDue": 4100,
          "balanceToFinish": 7900
        },
        "continuationSheet": {
          "format": "json",
          "lines": [
            {
              "item": "03-100",
              "description": "Concrete formwork",
              "scheduledValue": 12000,
              "previousWork": 0,
              "currentWork": 3500,
              "storedMaterials": 1000,
              "totalCompletedAndStored": 4500,
              "percentComplete": 37.5,
              "balanceToFinish": 7500
            }
          ]
        }
      }
    }
  }
}

Why

What it solves

A pay application is a grid of sums. Each G703 line adds previous work, this period's work and stored materials, the percentage and balance follow from that, and the G702 carries the totals through retainage and previous certificates to the payment due. One cell typed over in the spreadsheet, a previous-work column that does not match last month's certified application, or a change order missing from the schedule of values, and the wrong amount gets certified. Reviewers recheck it by hand every month. Kanagu recalculates every figure to the cent and points at the cell that differs.

Built for

  • General contractors and subcontractors who prepare AIA pay applications every month
  • Owners' representatives, architects and lenders' construction monitors who review them before certifying payment
  • Construction accounting and payment software, and AI agents, that check an application before it goes out
Every column and line
G703 columns G, percent complete, H and I are recalculated from C to F for each item, and G702 lines 1 to 9 from the continuation sheet. A difference comes back as calculation_mismatch with its G702 line or G703 column and row, the expected amount and the one you sent.
Against the last certified application
With the prior application, previous work must equal its completed work per item, line 7 must equal its line 6, scheduled values must equal its schedule plus the approved change orders, and stored materials can fall only by what was installed.
Overbilling and retainage
Billing past a line's scheduled value or 100%, a payment due beyond the contract sum less previous certificates, retainage that drifts from its rate or drops without an agreed release, and retainage that switches between fixed and variable.

Example

What goes in, what comes out

In: The current G702 and G703 as one XLSX workbook, or a G702 summary with a G703 in JSON, CSV or XLSX, plus the prior certified application and change orders when you have them. Out: Findings by G702 line or G703 column and row with the expected and reported amounts, and the recalculated lines and summary.

Request ยท POST /v1/payapp/check
{
  "current": {
    "summary": {
      "originalContractSum": 12000,
      "netChangeOrders": 0,
      "contractSumToDate": 12000,
      "totalCompletedAndStored": 4500,
      "retainage": {
        "mode": "fixed",
        "completedWorkRate": 10,
        "storedMaterialsRate": 5,
        "completedWork": 350,
        "storedMaterials": 50,
        "total": 400
      },
      "earnedLessRetainage": 4100,
      "previousCertificates": 0,
      "currentPaymentDue": 4100,
      "balanceToFinish": 7900
    },
    "continuationSheet": {
      "format": "json",
      "lines": [
        {
          "item": "03-100",
          "description": "Concrete formwork",
          "scheduledValue": 12000,
          "previousWork": 0,
          "currentWork": 3500,
          "storedMaterials": 1000,
          "totalCompletedAndStored": 4500,
          "percentComplete": 37.5,
          "balanceToFinish": 7500
        }
      ]
    }
  }
}
Response ยท 200
{
  "edition": 1992,
  "sources": {
    "G702": "https://assets.aiacontracts.com/ctrzdweb02/zdpdfs/preview_g702-1992.pdf",
    "G703": "https://help.aiacontracts.com/hc/en-us/articles/1500009308302-Instructions-G703-1992-Continuation-Sheet",
    "G702Instructions": "https://help.aiacontracts.com/hc/en-us/articles/1500009290501-completing-payment-applications-in-acd5"
  },
  "needs_review": false,
  "findings": [],
  "lines": [
    {
      "row": 1,
      "item": "03-100",
      "description": "Concrete formwork",
      "scheduledValue": 12000,
      "previousWork": 0,
      "currentWork": 3500,
      "storedMaterials": 1000,
      "totalCompletedAndStored": 4500,
      "percentComplete": 37.5,
      "balanceToFinish": 7500,
      "retainage": null
    }
  ],
  "summary": {
    "originalContractSum": 12000,
    "netChangeOrders": 0,
    "contractSumToDate": 12000,
    "totalCompletedAndStored": 4500,
    "retainage": {
      "completedWork": 350,
      "storedMaterials": 50,
      "total": 400
    },
    "earnedLessRetainage": 4100,
    "previousCertificates": 0,
    "currentPaymentDue": 4100,
    "balanceToFinish": 7900
  }
}

One concrete formwork line on a $12,000 contract: $3,500 of work this period and $1,000 of materials stored. Retainage of 10% on work and 5% on materials is $350 and $50, so $4,100 is due and $7,900 is left to finish. Every reported figure agrees, so findings is empty. The line's retainage is null because the rates are fixed on the G702, not entered per line in column I. One application costs $0.50.

Try it

Run it on the live API

The sample checks one line with fixed retainage. Change currentPaymentDue to 4500 and the call returns a calculation_mismatch on G702 line 8, expected 4100, with needs_review true.

payapp.check

$0.50/application

No key needed ยท 10 free calls per IP per day

Response

Run the request to see the live response here.

Reference

Operations

OperationPrice
payapp.check

Reconcile an AIA G702/G703 (1992) pay application from one workbook or a JSON summary with up to 500 JSON, CSV, or XLSX line items per period. PDF is unsupported.

$0.50/application
curl https://api.kanagu.dev/v1/payapp/check \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"current":{"summary":{"originalContractSum":12000,"netChangeOrders":0,"contractSumToDate":12000,"totalCompletedAndStored":4500,"retainage":{"mode":"fixed","completedWorkRate":10,"storedMaterialsRate":5,"completedWork":350,"storedMaterials":50,"total":400},"earnedLessRetainage":4100,"previousCertificates":0,"currentPaymentDue":4100,"balanceToFinish":7900},"continuationSheet":{"format":"json","lines":[{"item":"03-100","description":"Concrete formwork","scheduledValue":12000,"previousWork":0,"currentWork":3500,"storedMaterials":1000,"totalCompletedAndStored":4500,"percentComplete":37.5,"balanceToFinish":7500}]}}}'
const res = await fetch("https://api.kanagu.dev/v1/payapp/check", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "current": {
      "summary": {
        "originalContractSum": 12000,
        "netChangeOrders": 0,
        "contractSumToDate": 12000,
        "totalCompletedAndStored": 4500,
        "retainage": {
          "mode": "fixed",
          "completedWorkRate": 10,
          "storedMaterialsRate": 5,
          "completedWork": 350,
          "storedMaterials": 50,
          "total": 400
        },
        "earnedLessRetainage": 4100,
        "previousCertificates": 0,
        "currentPaymentDue": 4100,
        "balanceToFinish": 7900
      },
      "continuationSheet": {
        "format": "json",
        "lines": [
          {
            "item": "03-100",
            "description": "Concrete formwork",
            "scheduledValue": 12000,
            "previousWork": 0,
            "currentWork": 3500,
            "storedMaterials": 1000,
            "totalCompletedAndStored": 4500,
            "percentComplete": 37.5,
            "balanceToFinish": 7500
          }
        ]
      }
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
  --header "Authorization: Bearer $KANAGU_KEY"
{
  "mcpServers": {
    "kanagu": {
      "url": "https://api.kanagu.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:KANAGU_KEY}"
      }
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "payapp.check",
    "arguments": {
      "current": {
        "summary": {
          "originalContractSum": 12000,
          "netChangeOrders": 0,
          "contractSumToDate": 12000,
          "totalCompletedAndStored": 4500,
          "retainage": {
            "mode": "fixed",
            "completedWorkRate": 10,
            "storedMaterialsRate": 5,
            "completedWork": 350,
            "storedMaterials": 50,
            "total": 400
          },
          "earnedLessRetainage": 4100,
          "previousCertificates": 0,
          "currentPaymentDue": 4100,
          "balanceToFinish": 7900
        },
        "continuationSheet": {
          "format": "json",
          "lines": [
            {
              "item": "03-100",
              "description": "Concrete formwork",
              "scheduledValue": 12000,
              "previousWork": 0,
              "currentWork": 3500,
              "storedMaterials": 1000,
              "totalCompletedAndStored": 4500,
              "percentComplete": 37.5,
              "balanceToFinish": 7500
            }
          ]
        }
      }
    }
  }
}

Every field, error and schema is in the payapp.check reference.

Coverage

Limits and coverage

Forms
AIA G702 and G703, 1992 edition, following AIA's form and G703 instructions. Amounts in USD to the cent. Percentages compared at 2 decimals unless you set percentDecimals.
Input
One XLSX workbook with sheets named G702 and G703, or a G702 summary in JSON with the G703 as JSON, CSV or XLSX. G703 headers are read from field names, AIA column letters or printed labels such as FROM PREVIOUS APPLICATION and RETAINAGE 10%.
Change orders
Up to 500 approved orders, each on one G703 item or split across several, marked with whether the prior application already includes it.
Not covered
PDF or scanned applications, other AIA editions, lien waivers, and certifying or paying the application
Limits
500 G703 items per application, 512 KiB per file and 2 MiB per request.
Data
Inputs are processed in memory. For keyed calls the JSON result is kept for 30 days so a retry with the same Idempotency-Key returns it, then deleted. Trial calls store only a daily counter. The check runs inside Kanagu's API and calls no third party.

Fields of each finding

rule
What failed, e.g. calculation_mismatch, overbilling, carry_forward_mismatch, retainage_rate_drift or change_order_missing.
severity
mismatch when a figure is wrong, needs_review when a person must supply or confirm something.
form
G702 or G703.
column
The G702 line (1 to 9, 5a, 5b) or the G703 column letter, with G% for percent complete.
row
The one-based JSON line, spreadsheet row or CSV record.
item
The G703 item number.
changeOrderId
The change order the finding is about.
expected
What the forms, the prior application or the change orders require.
actual
What you sent, or null when it is missing.

Compare

Compared with the usual approaches

Ways contractors and reviewers usually check a pay application:

ApproachWhat you take on
Recheck by handRe-add every G703 line and G702 total each month and compare previous work with last month's certified application.
Spreadsheet template formulasTrust the template, which misses a cell typed over, a change order left out of the schedule or a previous-work column copied from the wrong month.
KanaguOne call recalculates the whole application against the last certified one and the approved change orders, at $0.50 per application.

Pricing

$0.50/application, billed only on success

$1 of usage free every month after sign-in. Then pay as you go with no monthly fee, or the $9/month Bundle with $9 of usage included, shared across every Kanagu product. Compare plans

Sign in, create a key and use $1 of calls free each month, no card needed. Subscribe from your dashboard when you need more. Polar is the merchant of record and handles payment, tax and invoices.

10 free calls a day
Start without a key
Try every call above for free. When it works, sign in for a key with $1 of usage free every month.

FAQ

Pay applications questions

How is a call priced?
$0.50 per call, which checks one application, with or without its prior application and change orders. A request that fails, such as a PDF or a continuation sheet without a required header, returns an error and is not billed.
What do mismatch and needs_review mean?
A finding with severity mismatch is a figure that is wrong. needs_review means a person must supply or confirm something, such as whether a change order was in the prior schedule. needs_review on the result is true whenever there is any finding.
Can I send a PDF?
No. Send the Excel workbook or a CSV of the continuation sheet. A PDF comes back as unsupported_pdf.
Does it read the formulas in my workbook?
It reads the values Excel saved with the file, so recalculate formulas before saving. Saved percentages are compared at the precision you display, set with percentDecimals.
How do I send change orders?
List every approved change through this period with its amount and the G703 item it goes to, or allocations across several items. With a prior application, set reflectedInPrevious so Kanagu knows which ones its schedule already includes. Leave the list out and the prior schedule and net change carry forward.

More APIs with the same key