BRAINIAC Accounts Payable is an MCP server published by software.brainiac, hosted at www.brainiac.software. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 10 tools, including accounts-payable_invoice-data-extract, accounts-payable_invoice-line-item-extract, accounts-payable_invoice-total-validate, accounts-payable_invoice-duplicate-detect, accounts-payable_purchase-order-match.
Paid Accounts Payable API via x402. Unpaid tool calls return 402.
649 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Extract supplier, invoice number, dates, currency, purchase-order number, terms, and amounts from a supplied invoice or a text-based PDF before you approve or pay an invoice. Missing fields stay unavailable. No tax rule or payment term is invented. Call with optional invoice, file. Returns checkedAt, paymentInitiated, source, fields, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, source, fields, findings, Extract invoice data, invoice data extract.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
{
"name": "accounts-payable_invoice-data-extract",
"title": "Extract invoice data",
"description": "Extract supplier, invoice number, dates, currency, purchase-order number, terms, and amounts from a supplied invoice or a text-based PDF before you approve or pay an invoice. Missing fields stay unavailable. No tax rule or payment term is invented. Call with optional invoice, file. Returns checkedAt, paymentInitiated, source, fields, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, source, fields, findings, Extract invoice data, invoice data extract.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "name. String."
},
"value": {
"type": "string",
"description": "value. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"evidence": {
"type": "string",
"description": "evidence. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "fields. Array."
},
"source": {
"type": "string",
"description": "source. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Extract invoice data",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Extract invoice line descriptions, quantities, unit prices, and amounts from supplied lines or selectable document text before you approve or pay an invoice. Lines that are not present are not created. Call with optional invoice, file. Returns checkedAt, paymentInitiated, lines, and findings (lines includes description, sku, quantity, unitPrice, amount, tax, source). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, lines, findings, Extract invoice line items, invoice line item extract.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
{
"name": "accounts-payable_invoice-line-item-extract",
"title": "Extract invoice line items",
"description": "Extract invoice line descriptions, quantities, unit prices, and amounts from supplied lines or selectable document text before you approve or pay an invoice. Lines that are not present are not created. Call with optional invoice, file. Returns checkedAt, paymentInitiated, lines, and findings (lines includes description, sku, quantity, unitPrice, amount, tax, source). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, lines, findings, Extract invoice line items, invoice line item extract.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"description": "sku. String."
},
"tax": {
"type": "number",
"description": "tax. Number."
},
"amount": {
"type": "number",
"description": "amount. Number."
},
"source": {
"type": "string",
"description": "source. String."
},
"quantity": {
"type": "number",
"description": "quantity. Number."
},
"unitPrice": {
"type": "number",
"description": "unitPrice. Number."
},
"description": {
"type": "string",
"description": "description. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "lines. Array."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Extract invoice line items",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Recompute the total from line amounts, subtotal, tax, discount, and shipping figures that are actually present before you approve or pay an invoice. A missing figure is not treated as zero. Call with optional invoice, file. Returns checkedAt, paymentInitiated, subtotal, discount, tax, shipping, lineTotal, expectedTotal, total, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, subtotal, discount, tax, shipping, lineTotal, expectedTotal, total, Validate invoice totals, invoice total validate.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
{
"name": "accounts-payable_invoice-total-validate",
"title": "Validate invoice totals",
"description": "Recompute the total from line amounts, subtotal, tax, discount, and shipping figures that are actually present before you approve or pay an invoice. A missing figure is not treated as zero. Call with optional invoice, file. Returns checkedAt, paymentInitiated, subtotal, discount, tax, shipping, lineTotal, expectedTotal, total, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, subtotal, discount, tax, shipping, lineTotal, expectedTotal, total, Validate invoice totals, invoice total validate.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"tax": {
"type": "number",
"description": "tax. Number."
},
"total": {
"type": "number",
"description": "total. Number."
},
"status": {
"type": "string",
"description": "status. String."
},
"discount": {
"type": "number",
"description": "discount. Number."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"shipping": {
"type": "number",
"description": "shipping. Number."
},
"subtotal": {
"type": "number",
"description": "subtotal. Number."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"lineTotal": {
"type": "number",
"description": "lineTotal. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"expectedTotal": {
"type": "number",
"description": "expectedTotal. Number."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Validate invoice totals",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Compare one invoice with other invoices supplied in the same request using the supplier and invoice number, and a content fingerprint before you approve or pay an invoice. This does not search an accounts payable ledger. Call with optional invoice, file, candidates. Returns checkedAt, paymentInitiated, supplierName, invoiceNumber, fingerprint, fingerprintComplete, matches. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, candidates, checkedAt, paymentInitiated, supplierName, invoiceNumber, fingerprint, fingerprintComplete, matches, findings, Detect duplicate invoices, invoice duplicate detect.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
| candidates | array | candidates, array. Optional. |
{
"name": "accounts-payable_invoice-duplicate-detect",
"title": "Detect duplicate invoices",
"description": "Compare one invoice with other invoices supplied in the same request using the supplier and invoice number, and a content fingerprint before you approve or pay an invoice. This does not search an accounts payable ledger. Call with optional invoice, file, candidates. Returns checkedAt, paymentInitiated, supplierName, invoiceNumber, fingerprint, fingerprintComplete, matches. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, candidates, checkedAt, paymentInitiated, supplierName, invoiceNumber, fingerprint, fingerprintComplete, matches, findings, Detect duplicate invoices, invoice duplicate detect.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "id, string, length 1 to 80. Required."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "candidates, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"status": {
"type": "string",
"description": "status. String."
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"detail": {
"type": "string",
"description": "detail. String."
},
"relation": {
"type": "string",
"description": "relation. String."
},
"severity": {
"type": "string",
"description": "severity. String."
},
"candidateId": {
"type": "string",
"description": "candidateId. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "matches. Array."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"fingerprint": {
"type": "string",
"description": "fingerprint. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"supplierName": {
"type": "string",
"description": "supplierName. String."
},
"invoiceNumber": {
"type": "string",
"description": "invoiceNumber. String."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
},
"fingerprintComplete": {
"type": "boolean",
"description": "fingerprintComplete. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Detect duplicate invoices",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Match the invoice to a purchase order supplied in the request before you approve or pay an invoice. Purchase orders are not looked up or created. Lines match on SKU when both sides have one, otherwise on the same description. Call with optional invoice, file, purchaseOrder. Returns checkedAt, paymentInitiated, poNumber, lines, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, purchaseOrder, checkedAt, paymentInitiated, poNumber, lines, findings, Match an invoice to a purchase order, purchase order match.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
| purchaseOrder | object | purchaseOrder, object. Optional. |
{
"name": "accounts-payable_purchase-order-match",
"title": "Match an invoice to a purchase order",
"description": "Match the invoice to a purchase order supplied in the request before you approve or pay an invoice. Purchase orders are not looked up or created. Lines match on SKU when both sides have one, otherwise on the same description. Call with optional invoice, file, purchaseOrder. Returns checkedAt, paymentInitiated, poNumber, lines, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, purchaseOrder, checkedAt, paymentInitiated, poNumber, lines, findings, Match an invoice to a purchase order, purchase order match.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
},
"purchaseOrder": {
"type": "object",
"required": [
"poNumber"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Required."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
}
},
"description": "purchaseOrder, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"description": "sku. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"description": {
"type": "string",
"description": "description. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "lines. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"poNumber": {
"type": "string",
"description": "poNumber. String."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Match an invoice to a purchase order",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Check a printed or supplied tax amount against a printed or supplied rate and subtotal before you approve or pay an invoice. No statutory tax rate is applied. Call with optional invoice, file. Returns checkedAt, paymentInitiated, tax, taxRate, expectedTax, and findings (findings includes severity, code, detail), plus coverage status and missing_items. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, tax, taxRate, expectedTax, findings, Validate invoice tax, invoice tax validate.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
{
"name": "accounts-payable_invoice-tax-validate",
"title": "Validate invoice tax",
"description": "Check a printed or supplied tax amount against a printed or supplied rate and subtotal before you approve or pay an invoice. No statutory tax rate is applied. Call with optional invoice, file. Returns checkedAt, paymentInitiated, tax, taxRate, expectedTax, and findings (findings includes severity, code, detail), plus coverage status and missing_items. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, tax, taxRate, expectedTax, findings, Validate invoice tax, invoice tax validate.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"tax": {
"type": "number",
"description": "tax. Number."
},
"status": {
"type": "string",
"description": "status. String."
},
"taxRate": {
"type": "number",
"description": "taxRate. Number."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"expectedTax": {
"type": "number",
"description": "expectedTax. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Validate invoice tax",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Read payment terms only when they are supplied or printed, including Net N, due on receipt, and a stated discount such as 2/10 Net 30 before you approve or pay an invoice. Call with optional invoice, file. Returns checkedAt, paymentInitiated, paymentTerms, netDays, discountPercent, discountDays, basis, evidence, and findings (findings includes severity, code, detail). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, paymentTerms, netDays, discountPercent, discountDays, basis, evidence, findings, Extract payment terms, payment terms extract.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
{
"name": "accounts-payable_payment-terms-extract",
"title": "Extract payment terms",
"description": "Read payment terms only when they are supplied or printed, including Net N, due on receipt, and a stated discount such as 2/10 Net 30 before you approve or pay an invoice. Call with optional invoice, file. Returns checkedAt, paymentInitiated, paymentTerms, netDays, discountPercent, discountDays, basis, evidence, and findings (findings includes severity, code, detail). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, paymentTerms, netDays, discountPercent, discountDays, basis, evidence, findings, Extract payment terms, payment terms extract.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"basis": {
"type": "string",
"description": "basis. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"netDays": {
"type": "number",
"description": "netDays. Number."
},
"evidence": {
"type": "string",
"description": "evidence. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"discountDays": {
"type": "number",
"description": "discountDays. Number."
},
"paymentTerms": {
"type": "string",
"description": "paymentTerms. String."
},
"discountPercent": {
"type": "number",
"description": "discountPercent. Number."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Extract payment terms",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Return a stated due date, or calculate one from an invoice date plus terms that were actually stated before you approve or pay an invoice. Net 30 is not assumed, and no payment is scheduled. Call with optional invoice, file. Returns checkedAt, paymentInitiated, approvesPayment, invoiceDate, paymentTerms, dueDate, basis, and findings (findings includes severity, code, detail). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, approvesPayment, invoiceDate, paymentTerms, dueDate, basis, findings, Calculate a payment due date, payment due date calculate.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
{
"name": "accounts-payable_payment-due-date-calculate",
"title": "Calculate a payment due date",
"description": "Return a stated due date, or calculate one from an invoice date plus terms that were actually stated before you approve or pay an invoice. Net 30 is not assumed, and no payment is scheduled. Call with optional invoice, file. Returns checkedAt, paymentInitiated, approvesPayment, invoiceDate, paymentTerms, dueDate, basis, and findings (findings includes severity, code, detail). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, approvesPayment, invoiceDate, paymentTerms, dueDate, basis, findings, Calculate a payment due date, payment due date calculate.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"basis": {
"type": "string",
"description": "basis. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"dueDate": {
"type": "string",
"description": "dueDate. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"invoiceDate": {
"type": "string",
"description": "invoiceDate. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"paymentTerms": {
"type": "string",
"description": "paymentTerms. String."
},
"approvesPayment": {
"type": "boolean",
"description": "approvesPayment. Boolean."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Calculate a payment due date",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Flag amount mismatches, negative figures, date-order problems, and repeated lines that are present on the invoice before you approve or pay an invoice. Unusual amounts are not guessed from a normal range. Call with optional invoice, file. Returns checkedAt, paymentInitiated, and findings (findings includes severity, code, detail), plus coverage status and missing_items. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, findings, Detect invoice anomalies, invoice anomaly detect.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
{
"name": "accounts-payable_invoice-anomaly-detect",
"title": "Detect invoice anomalies",
"description": "Flag amount mismatches, negative figures, date-order problems, and repeated lines that are present on the invoice before you approve or pay an invoice. Unusual amounts are not guessed from a normal range. Call with optional invoice, file. Returns checkedAt, paymentInitiated, and findings (findings includes severity, code, detail), plus coverage status and missing_items. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, checkedAt, paymentInitiated, findings, Detect invoice anomalies, invoice anomaly detect.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"severity": {
"type": "string",
"description": "severity. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Detect invoice anomalies",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Combine the invoice checks into one review before you approve or pay an invoice. No payment is initiated, and a clear review is not an approval to pay. Call with optional invoice, file, purchaseOrder, candidates. Returns checkedAt, paymentInitiated, approvesPayment, assessment, summary, invoice, lines, sections, counts, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, purchaseOrder, candidates, checkedAt, paymentInitiated, approvesPayment, assessment, summary, lines, sections, counts, findings, Review an invoice for payment.
| Parameter | Type | Description |
|---|---|---|
| file | object | file, object. Optional. |
| invoice | object | invoice, object. Optional. |
| candidates | array | candidates, array. Optional. |
| purchaseOrder | object | purchaseOrder, object. Optional. |
{
"name": "accounts-payable_review",
"title": "Review an invoice for payment",
"description": "Combine the invoice checks into one review before you approve or pay an invoice. No payment is initiated, and a clear review is not an approval to pay. Call with optional invoice, file, purchaseOrder, candidates. Returns checkedAt, paymentInitiated, approvesPayment, assessment, summary, invoice, lines, sections, counts, and findings. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you approve or pay an invoice, invoice, file, purchaseOrder, candidates, checkedAt, paymentInitiated, approvesPayment, assessment, summary, lines, sections, counts, findings, Review an invoice for payment.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string",
"description": "mediaType, string, one of application/pdf, text/plain, text/csv. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "invoice, object. Optional."
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "id, string, length 1 to 80. Required."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "dueDate, string, date. Optional."
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "taxRate, number, from 0 to 100. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "discount, number, from -1000000000000 to 1000000000000. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Optional."
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "shipping, number, from -1000000000000 to 1000000000000. Optional."
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "subtotal, number, from -1000000000000 to 1000000000000. Optional."
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "invoiceDate, string, date. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "paymentTerms, string, length 1 to 120. Optional."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "invoiceNumber, string, length 1 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "candidates, array. Optional."
},
"purchaseOrder": {
"type": "object",
"required": [
"poNumber"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "sku, string, length 1 to 80. Optional."
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "tax, number, from -1000000000000 to 1000000000000. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "amount, number, from -1000000000000 to 1000000000000. Optional."
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000,
"description": "quantity, number, from -1000000000 to 1000000000. Optional."
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "unitPrice, number, from -1000000000000 to 1000000000000. Optional."
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "description, string, length 1 to 300. Required."
}
},
"description": "item, object. Required."
},
"description": "lines, array. Optional."
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000,
"description": "total, number, from -1000000000000 to 1000000000000. Optional."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "currency, string. Optional."
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "poNumber, string, length 1 to 80. Required."
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "supplierName, string, length 1 to 200. Optional."
}
},
"description": "purchaseOrder, object. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"description": "sku. String."
},
"tax": {
"type": "number",
"description": "tax. Number."
},
"amount": {
"type": "number",
"description": "amount. Number."
},
"source": {
"type": "string",
"description": "source. String."
},
"quantity": {
"type": "number",
"description": "quantity. Number."
},
"unitPrice": {
"type": "number",
"description": "unitPrice. Number."
},
"description": {
"type": "string",
"description": "description. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "lines. Array."
},
"counts": {
"type": "object",
"properties": {
"error": {
"type": "number",
"description": "error. Number."
},
"warning": {
"type": "number",
"description": "warning. Number."
},
"unavailable": {
"type": "number",
"description": "unavailable. Number."
}
},
"description": "counts. Object.",
"additionalProperties": {}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"description": "tax. Number."
},
"total": {
"type": "number",
"description": "total. Number."
},
"dueDate": {
"type": "string",
"description": "dueDate. String."
},
"taxRate": {
"type": "number",
"description": "taxRate. Number."
},
"currency": {
"type": "string",
"description": "currency. String."
},
"discount": {
"type": "number",
"description": "discount. Number."
},
"poNumber": {
"type": "string",
"description": "poNumber. String."
},
"shipping": {
"type": "number",
"description": "shipping. Number."
},
"subtotal": {
"type": "number",
"description": "subtotal. Number."
},
"invoiceDate": {
"type": "string",
"description": "invoiceDate. String."
},
"paymentTerms": {
"type": "string",
"description": "paymentTerms. String."
},
"supplierName": {
"type": "string",
"description": "supplierName. String."
},
"invoiceNumber": {
"type": "string",
"description": "invoiceNumber. String."
}
},
"description": "invoice. Object.",
"additionalProperties": {}
},
"summary": {
"type": "string",
"description": "summary. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "name. String."
},
"status": {
"type": "string",
"description": "status. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sections. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"assessment": {
"type": "string",
"description": "assessment. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"approvesPayment": {
"type": "boolean",
"description": "approvesPayment. Boolean."
},
"paymentInitiated": {
"type": "boolean",
"description": "paymentInitiated. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Review an invoice for payment",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Tool calls wrap the existing POST APIs and stay pay-per-call. initialize and tools/list are free. An unpaid tool call returns the x402 payment terms in the tool result and does not run. Retry with the payment in params._meta["x402/payment"], or send payment-signature. Payment settles only after a successful result.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.