Ardaro Documents MCP
An MCP server provided by Ardaro for reviewing purchase documents. It supports receipt text extraction, invoice-to-purchase-order quantity allocation, and three-document discrepancy checks to identify differences in references, items, quantities, and prices.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://agents.getardaro.com/mcp/documentsWhat its tools do
5 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Endpoint and vendor documentation share a domain
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
About Ardaro Documents MCP
Ardaro Documents MCP assists agents in reviewing purchase documents by extracting structured expense fields from receipt text. It also allocates invoice quantities to purchase order lines and performs discrepancy checks across receipts, invoices, and purchase orders to identify variances in references, items, quantities, and prices.
Connection requires no sign-in, wallet, key, or signup. The server operates via a Streamable HTTP endpoint at agents.getardaro.com. While the initial handshake is anonymous, individual tools may require a vendor account, credentials, or permissions. Users must consult the documented prerequisites for each specific operation.
Paid calls necessitate a buyer-authorized signer. Prepaid card credits can fund a bearer API key through Stripe Checkout. The live check verifies connection and tool discovery only and does not prove access to user content or successful tool execution without proper authorization.
What you can do with it
- Extract structured expense fields from receipt text
- Allocate invoice quantities to purchase order lines
- Check for discrepancies between receipt, invoice, and PO
Source and maintenance
Protocol and capabilities
- Server
- ardaro-purchase-document-review 1.4.2
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 5 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": false
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
5 advertised
analyze_receipt — Analyze a receipt for human review
Extract and validate structured expense data from receipt text or a provider-neutral receipt extraction. Use when an agent needs merchant, date, tax, total, line items, confidence, duplicate detection, and arithmetic validation before creating or reconciling an expense. The result is advisory and always requires human review. Paid tool: 0.25 USDC per accepted request. Requires an owner-authorized x402-capable client. Use get_document_example with service='receipt' for a fixed free example.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"input",
"existing_fingerprints"
],
"properties": {
"input": {
"oneOf": [
{
"type": "object",
"required": [
"kind",
"text"
],
"properties": {
"kind": {
"const": "text",
"description": "Selects receipt text input; supply the text property."
},
"text": {
"type": "string",
"maxLength": 20000,
"minLength": 1,
"description": "OCR or receipt text for one document, up to 20,000 characters. Exclude payment-card data, credentials, customer-record payloads, and financial posting instructions."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"kind",
"analysis"
],
"properties": {
"kind": {
"const": "structured",
"description": "Selects structured receipt input; supply the analysis property."
},
"analysis": {
"type": "object",
"properties": {
"tax": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Total tax amount printed on the receipt, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"total": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Final receipt total, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"vendor": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Merchant or supplier name printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"currency": {
"oneOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Three-letter currency code shown on the receipt, for example USD. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"subtotal": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Receipt subtotal before tax, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"amount": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Extended amount printed for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"quantity": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Quantity purchased for this line item. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"unit_price": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Price per unit for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"description": {
"oneOf": [
{
"type": "string",
"maxLength": 240,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 240,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Item description printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"product_code": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Product identifier or SKU printed for this line item. Supply the extracted value directly or wrap it with optional extraction confidence."
}
},
"minProperties": 1,
"additionalProperties": false
},
"maxItems": 100,
"description": "Extracted receipt line items, limited to 100 entries; omit unavailable item fields."
},
"purchase_date": {
"oneOf": [
{
"type": "string",
"maxLength": 10,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 10,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Purchase date as extracted; YYYY-MM-DD is recommended. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"purchase_order": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Purchase-order reference printed on the receipt; this does not select or link an Ardaro job. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"receipt_reference": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Receipt, invoice, or transaction reference printed on the document. Supply the extracted value directly or wrap it with optional extraction confidence."
}
},
"description": "Provider-neutral receipt extraction using only the listed fields. Omit fields that were not extracted.",
"minProperties": 1,
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"description": "One receipt supplied as bounded OCR text or a provider-neutral structured extraction. Choose exactly one input kind."
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.request.v1",
"description": "Required request contract identifier; send this exact version string."
},
"existing_fingerprints": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"maxItems": 10000,
"description": "Receipt fingerprints already known to the caller for duplicate comparison. Supply lowercase 64-character SHA-256 hex strings, or an empty array when none are available; at most 10,000 entries."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"service",
"version",
"status",
"engine",
"receipt",
"confidence",
"duplicate_check",
"duplicate_fingerprint",
"arithmetic_verified",
"arithmetic_consistency",
"warnings",
"warning_groups",
"identities",
"result",
"metering",
"policy"
],
"properties": {
"engine": {
"type": "object"
},
"policy": {
"type": "object"
},
"result": {
"type": "object",
"required": [
"extracted_facts",
"inferred_suggestions",
"unavailable_fields",
"validation",
"provenance"
],
"properties": {
"provenance": {
"type": "object"
},
"validation": {
"type": "object"
},
"extracted_facts": {
"type": "object",
"required": [
"line_items"
],
"properties": {
"vendor": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"product_code",
"quantity",
"unit_price",
"amount"
],
"properties": {
"amount": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"quantity": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"unit_price": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"product_code": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"maxItems": 100
},
"totals.tax": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"totals.total": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"purchase_date": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 10,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"purchase_order": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"totals.currency": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 3,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"totals.subtotal": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"receipt_reference": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"unavailable_fields": {
"type": "array",
"items": {
"enum": [
"purchase order reference",
"purchase_date",
"receipt or invoice number",
"totals.currency",
"totals.subtotal",
"totals.tax",
"totals.total",
"vendor"
]
},
"uniqueItems": true
},
"inferred_suggestions": {
"type": "array",
"items": {
"type": "object",
"required": [
"field",
"value"
],
"properties": {
"field": {
"enum": [
"vendor",
"purchase_date",
"purchase_order",
"receipt_reference",
"totals.subtotal",
"totals.tax",
"totals.total",
"totals.currency"
]
},
"value": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"maxItems": 8
}
},
"description": "Sole authoritative structured analysis object. Its recursively key-sorted, compact UTF-8 JSON bytes are SHA-256 hashed under ardaro.recursive-key-sort-compact-json-utf8-sha256.v1 and published as analysis_result_identity.",
"additionalProperties": false
},
"status": {
"const": "review_required"
},
"receipt": {
"type": "object",
"required": [
"vendor",
"purchase_date",
"totals",
"line_items"
],
"properties": {
"totals": {
"type": "object",
"required": [
"subtotal",
"tax",
"total",
"currency"
],
"properties": {
"tax": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"total": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"currency": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 3,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"subtotal": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"vendor": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"product_code",
"quantity",
"unit_price",
"amount"
],
"properties": {
"amount": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"quantity": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"unit_price": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"product_code": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"maxItems": 100
},
"purchase_date": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 10,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"purchase_order": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"receipt_reference": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"description": "Non-authoritative compatibility projection generated from result under ardaro.result-receipt-projection.v1. Consumers MUST use result for structured receipt values and reject a response when this projection diverges.",
"additionalProperties": false
},
"service": {
"const": "ardaro.receipt_intelligence"
},
"version": {
"const": "1.0.0"
},
"metering": {
"type": "object"
},
"warnings": {
"type": "array",
"items": {
"type": "object"
},
"maxItems": 64
},
"confidence": {
"type": "object"
},
"identities": {
"type": "object",
"required": [
"request_identity",
"document_fingerprint",
"analysis_result_identity"
],
"properties": {
"request_identity": {
"type": "string",
"pattern": "^req_[0-9a-f]{64}$"
},
"document_fingerprint": {
"type": [
"string",
"null"
],
"pattern": "^[0-9a-f]{64}$"
},
"analysis_result_identity": {
"type": "string",
"pattern": "^res_[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"warning_groups": {
"type": "object"
},
"duplicate_check": {
"type": "object"
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.response.v1"
},
"payment_identity": {
"type": "object",
"required": [
"protocol",
"reference",
"replayed"
],
"properties": {
"protocol": {
"const": "x402-v2"
},
"replayed": {
"type": "boolean"
},
"reference": {
"type": "string",
"pattern": "^pay_[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"arithmetic_verified": {
"type": [
"boolean",
"null"
]
},
"duplicate_fingerprint": {
"type": [
"string",
"null"
],
"pattern": "^[0-9a-f]{64}$"
},
"arithmetic_consistency": {
"enum": [
"verified",
"mismatch",
"unavailable"
]
}
},
"description": "Receipt Intelligence v1 response. result is authoritative; receipt is a derived compatibility projection that MUST match result.",
"additionalProperties": false,
"x-ardaro-receipt-compatibility-path": "$.receipt",
"x-ardaro-receipt-projection-profile": "ardaro.result-receipt-projection.v1",
"x-ardaro-authoritative-analysis-path": "$.result",
"x-ardaro-analysis-result-identity-profile": "ardaro.recursive-key-sort-compact-json-utf8-sha256.v1"
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"accepts"
],
"properties": {
"error": {
"type": [
"string",
"null"
]
},
"accepts": {
"type": "array",
"items": {
"type": "object",
"required": [
"scheme",
"network",
"asset",
"amount",
"payTo",
"maxTimeoutSeconds"
],
"properties": {
"asset": {
"type": "string"
},
"extra": {
"type": "object",
"additionalProperties": true
},
"payTo": {
"type": "string"
},
"amount": {
"type": "string"
},
"scheme": {
"type": "string"
},
"network": {
"type": "string"
},
"maxTimeoutSeconds": {
"type": "integer"
}
}
}
},
"resource": {
"oneOf": [
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
},
"tags": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"iconUrl": {
"type": [
"string",
"null"
]
},
"mimeType": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"serviceName": {
"type": [
"string",
"null"
]
}
}
},
{
"type": "null"
}
]
},
"extensions": {
"oneOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"x402Version": {
"type": "integer",
"const": 2,
"default": 2
}
}
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"status",
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"service_code",
"message",
"retryable",
"remediation"
],
"properties": {
"code": {
"type": "string",
"maxLength": 80
},
"message": {
"type": "string",
"maxLength": 280
},
"retryable": {
"type": "boolean"
},
"remediation": {
"type": "string",
"maxLength": 280
},
"service_code": {
"enum": [
"ARDARO_ARITHMETIC_MISMATCH",
"ARDARO_DOCUMENT_TOO_LARGE",
"ARDARO_DUPLICATE_SUSPECTED",
"ARDARO_EXTRACTION_LOW_CONFIDENCE",
"ARDARO_IDEMPOTENCY_CONFLICT",
"ARDARO_INPUT_UNSUPPORTED",
"ARDARO_PAYMENT_INVALID",
"ARDARO_PAYMENT_RECONCILIATION_REQUIRED",
"ARDARO_PAYMENT_REQUIRED",
"ARDARO_RATE_LIMITED",
"ARDARO_SERVICE_UNAVAILABLE"
]
}
},
"additionalProperties": false
},
"status": {
"const": "error"
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.response.v1"
}
},
"additionalProperties": false
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"status",
"service",
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"message": {
"const": "Service is not ready."
}
},
"additionalProperties": false
},
"status": {
"const": "not_ready"
},
"service": {
"const": "ardaro-receipt-intelligence"
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.response.v1"
}
},
"additionalProperties": false
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"error"
],
"properties": {
"error": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"status",
"message"
],
"properties": {
"status": {
"const": "error"
},
"message": {
"type": "string"
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}match_invoice — Allocate invoice quantities to a purchase order (paid)
USE THIS WHEN the question is a quantity-allocation question: how much of this PO has been invoiced, whether an invoice is fully, partially, or over billed against the PO, or how much quantity remains. Aggregates split invoice lines against one PO line and returns a status per line - fully_invoiced, partially_invoiced, uninvoiced, or overbilled - plus remaining quantity. Matches by explicit PO line ID or a unique exact product code only, never by description. Inputs: one invoice plus one PO; it does not accept a receipt. DO NOT USE THIS to compare a receipt against an invoice, or for a general list of differences with no allocation question - call reconcile_purchase_documents instead; it is free and does not require calling this tool first or after. Paid: 0.50 USDC per accepted comparison, explicit buyer-authorized x402 payment. Call get_document_service_status with service='invoice' first to confirm current readiness and price. Advisory output only: human review required; no delivery verification, payment execution, prior-invoice history, or accounting writes.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"invoice",
"purchase_order"
],
"properties": {
"invoice": {
"oneOf": [
{
"type": "object",
"required": [
"currency",
"line_items",
"purchase_order_reference",
"reference",
"supplier_id"
],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"currency": {
"enum": [
"JPY"
],
"type": "string"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"po_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"currency",
"line_items",
"purchase_order_reference",
"reference",
"supplier_id"
],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN"
],
"type": "string"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"po_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
}
]
},
"purchase_order": {
"oneOf": [
{
"type": "object",
"required": [
"currency",
"line_items",
"reference",
"supplier_id"
],
"properties": {
"currency": {
"enum": [
"JPY"
],
"type": "string"
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"currency",
"line_items",
"reference",
"supplier_id"
],
"properties": {
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN"
],
"type": "string"
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
}
]
},
"contract_version": {
"const": "ardaro.agent-invoice-matching.request.v1"
}
},
"description": "One invoice and one purchase order with caller-supplied opaque supplier identifiers. Runtime validation additionally rejects duplicate line IDs, padded/control-bearing strings, sensitive card or credential data, and requests over 262144 UTF-8 JSON bytes. All numeric inputs are decimal strings; missing optional arithmetic evidence requires review.",
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"status",
"result",
"identities"
],
"properties": {
"result": {
"type": "object",
"required": [
"summary",
"document_checks",
"comparison_rows",
"purchase_order_line_summary",
"discrepancies",
"arithmetic",
"policy"
],
"properties": {
"policy": {
"type": "object",
"required": [
"human_review_required",
"stateless",
"raw_documents_retained",
"financial_posting_supported",
"financial_posting_performed",
"payment_approval_supported",
"delivery_verification_supported",
"model_calls",
"identity_purpose",
"matching_rule",
"quantity_scope",
"arithmetic_scope",
"supplier_scope",
"decision_scope"
],
"properties": {
"stateless": {
"const": true
},
"model_calls": {
"const": 0
},
"matching_rule": {
"const": "explicit_po_line_id_else_unique_case_sensitive_product_code"
},
"decision_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"quantity_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"supplier_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"arithmetic_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"identity_purpose": {
"const": "deterministic_result_comparison_only"
},
"human_review_required": {
"const": true
},
"raw_documents_retained": {
"const": false
},
"payment_approval_supported": {
"const": false
},
"financial_posting_performed": {
"const": false
},
"financial_posting_supported": {
"const": false
},
"delivery_verification_supported": {
"const": false
}
},
"additionalProperties": false
},
"summary": {
"type": "object",
"required": [
"outcome",
"invoice_line_count",
"purchase_order_line_count",
"matched_invoice_line_count",
"unmatched_invoice_line_count",
"discrepancy_count",
"unknown_check_count",
"human_review_required",
"delivery_verified",
"payment_approved"
],
"properties": {
"outcome": {
"enum": [
"no_discrepancies",
"review_required"
]
},
"payment_approved": {
"const": false
},
"delivery_verified": {
"const": false
},
"discrepancy_count": {
"type": "integer",
"maximum": 1000,
"minimum": 0
},
"invoice_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"unknown_check_count": {
"type": "integer",
"maximum": 1000,
"minimum": 0
},
"human_review_required": {
"const": true
},
"purchase_order_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"matched_invoice_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"unmatched_invoice_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
}
},
"additionalProperties": false
},
"arithmetic": {
"type": "object",
"required": [
"rounding_mode",
"rounding_scope",
"invoice_currency_scale",
"purchase_order_currency_scale",
"invoice_line_amount_sum",
"invoice_supplied_line_amount_sum",
"invoice_subtotal",
"invoice_tax",
"invoice_total",
"computed_invoice_total",
"invoice_subtotal_status",
"invoice_total_status"
],
"properties": {
"invoice_tax": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_total": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"rounding_mode": {
"const": "ROUND_HALF_UP"
},
"rounding_scope": {
"const": "each_line_then_sum"
},
"invoice_subtotal": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_total_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"computed_invoice_total": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_currency_scale": {
"enum": [
0,
2
]
},
"invoice_line_amount_sum": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"invoice_subtotal_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"purchase_order_currency_scale": {
"enum": [
0,
2
]
},
"invoice_supplied_line_amount_sum": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"discrepancies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"severity",
"message",
"sources"
],
"properties": {
"code": {
"enum": [
"currency_mismatch",
"supplier_mismatch",
"purchase_order_reference_mismatch",
"invoice_line_amount_unavailable",
"purchase_order_line_amount_unavailable",
"invoice_line_arithmetic_mismatch",
"purchase_order_line_arithmetic_mismatch",
"referenced_purchase_order_line_missing",
"ambiguous_product_code",
"unmatchable_invoice_line",
"unit_mismatch",
"product_code_mismatch",
"unit_price_mismatch",
"quantity_exceeds_purchase_order",
"invoice_subtotal_unavailable",
"invoice_tax_unavailable",
"invoice_total_unavailable",
"invoice_subtotal_mismatch",
"invoice_supplied_line_sum_mismatch",
"invoice_total_mismatch"
],
"type": "string"
},
"message": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"sources": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"maxItems": 101,
"minItems": 1
},
"severity": {
"enum": [
"error",
"warning"
]
}
},
"additionalProperties": false
},
"maxItems": 1000,
"minItems": 0
},
"comparison_rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"invoice_line_id",
"invoice_source",
"purchase_order_line_id",
"purchase_order_source",
"match_method",
"allocation_status",
"invoice_quantity",
"purchase_order_quantity",
"invoice_unit",
"purchase_order_unit",
"invoice_unit_price",
"purchase_order_unit_price",
"invoice_currency",
"purchase_order_currency",
"unit_price_difference",
"invoice_amount",
"computed_invoice_amount",
"line_arithmetic_status",
"discrepancy_codes",
"outcome"
],
"properties": {
"outcome": {
"enum": [
"no_discrepancies",
"review_required"
]
},
"invoice_unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"match_method": {
"enum": [
"unmatched",
"explicit_po_line_id",
"exact_product_code"
]
},
"invoice_amount": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_source": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"invoice_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"invoice_currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN",
"JPY"
]
},
"invoice_quantity": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"allocation_status": {
"enum": [
"allocated",
"not_comparable",
"unmatched"
]
},
"discrepancy_codes": {
"type": "array",
"items": {
"enum": [
"currency_mismatch",
"supplier_mismatch",
"purchase_order_reference_mismatch",
"invoice_line_amount_unavailable",
"purchase_order_line_amount_unavailable",
"invoice_line_arithmetic_mismatch",
"purchase_order_line_arithmetic_mismatch",
"referenced_purchase_order_line_missing",
"ambiguous_product_code",
"unmatchable_invoice_line",
"unit_mismatch",
"product_code_mismatch",
"unit_price_mismatch",
"quantity_exceeds_purchase_order",
"invoice_subtotal_unavailable",
"invoice_tax_unavailable",
"invoice_total_unavailable",
"invoice_subtotal_mismatch",
"invoice_supplied_line_sum_mismatch",
"invoice_total_mismatch"
],
"type": "string"
},
"maxItems": 20,
"minItems": 0,
"uniqueItems": true
},
"invoice_unit_price": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"purchase_order_unit": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
},
"purchase_order_source": {
"anyOf": [
{
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
{
"type": "null"
}
]
},
"unit_price_difference": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"line_arithmetic_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"purchase_order_line_id": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
{
"type": "null"
}
]
},
"computed_invoice_amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"purchase_order_currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN",
"JPY"
]
},
"purchase_order_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"purchase_order_unit_price": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"document_checks": {
"type": "object",
"required": [
"currency_matches",
"supplier_matches",
"purchase_order_reference_matches"
],
"properties": {
"currency_matches": {
"type": "boolean"
},
"supplier_matches": {
"type": "boolean"
},
"purchase_order_reference_matches": {
"type": "boolean"
}
},
"additionalProperties": false
},
"purchase_order_line_summary": {
"type": "array",
"items": {
"type": "object",
"required": [
"purchase_order_line_id",
"purchase_order_source",
"allocated_invoice_sources",
"ordered_quantity",
"allocated_quantity",
"uninvoiced_quantity",
"overbilled_quantity",
"unit",
"status",
"supplied_amount",
"computed_amount",
"line_arithmetic_status"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"status": {
"enum": [
"not_comparable",
"not_invoiced",
"overbilled",
"fully_invoiced",
"partially_invoiced"
]
},
"computed_amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"supplied_amount": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"ordered_quantity": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"allocated_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"overbilled_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"uninvoiced_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"purchase_order_source": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"line_arithmetic_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"purchase_order_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"allocated_invoice_sources": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"maxItems": 100,
"minItems": 0
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
}
},
"additionalProperties": false
},
"status": {
"const": "review_required"
},
"identities": {
"type": "object",
"required": [
"analysis_result_identity"
],
"properties": {
"payment_identity": {
"type": "object",
"required": [
"protocol",
"reference",
"replayed"
],
"properties": {
"protocol": {
"const": "x402-v2"
},
"replayed": {
"type": "boolean"
},
"reference": {
"type": "string",
"pattern": "^pay_[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"analysis_result_identity": {
"type": "string",
"pattern": "^res_[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"contract_version": {
"const": "ardaro.agent-invoice-matching.response.v1"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"contract_version",
"status",
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100
},
"message": {
"type": "string",
"maxLength": 300
}
},
"additionalProperties": false
},
"status": {
"const": "error"
},
"contract_version": {
"const": "ardaro.agent-invoice-matching.response.v1"
}
},
"additionalProperties": false
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"status",
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"service_code",
"message",
"retryable",
"remediation"
],
"properties": {
"code": {
"type": "string",
"maxLength": 80
},
"message": {
"type": "string",
"maxLength": 280
},
"retryable": {
"type": "boolean"
},
"remediation": {
"type": "string",
"maxLength": 280
},
"service_code": {
"enum": [
"ARDARO_ARITHMETIC_MISMATCH",
"ARDARO_DOCUMENT_TOO_LARGE",
"ARDARO_DUPLICATE_SUSPECTED",
"ARDARO_EXTRACTION_LOW_CONFIDENCE",
"ARDARO_IDEMPOTENCY_CONFLICT",
"ARDARO_INPUT_UNSUPPORTED",
"ARDARO_PAYMENT_INVALID",
"ARDARO_PAYMENT_RECONCILIATION_REQUIRED",
"ARDARO_PAYMENT_REQUIRED",
"ARDARO_RATE_LIMITED",
"ARDARO_SERVICE_UNAVAILABLE"
]
}
},
"additionalProperties": false
},
"status": {
"const": "error"
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.response.v1"
}
},
"additionalProperties": false
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"status",
"service",
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"message": {
"const": "Service is not ready."
}
},
"additionalProperties": false
},
"status": {
"const": "not_ready"
},
"service": {
"const": "ardaro-receipt-intelligence"
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.response.v1"
}
},
"additionalProperties": false
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"accepts"
],
"properties": {
"error": {
"type": [
"string",
"null"
]
},
"accepts": {
"type": "array",
"items": {
"type": "object",
"required": [
"scheme",
"network",
"asset",
"amount",
"payTo",
"maxTimeoutSeconds"
],
"properties": {
"asset": {
"type": "string"
},
"extra": {
"type": "object",
"additionalProperties": true
},
"payTo": {
"type": "string"
},
"amount": {
"type": "string"
},
"scheme": {
"type": "string"
},
"network": {
"type": "string"
},
"maxTimeoutSeconds": {
"type": "integer"
}
}
}
},
"resource": {
"oneOf": [
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
},
"tags": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"iconUrl": {
"type": [
"string",
"null"
]
},
"mimeType": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"serviceName": {
"type": [
"string",
"null"
]
}
}
},
{
"type": "null"
}
]
},
"extensions": {
"oneOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"x402Version": {
"type": "integer",
"const": 2,
"default": 2
}
}
},
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"error"
],
"properties": {
"error": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"status",
"message"
],
"properties": {
"status": {
"const": "error"
},
"message": {
"type": "string"
}
},
"additionalProperties": false
}
]
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}reconcile_purchase_documents — Compare receipt, invoice and PO for discrepancies (free)
USE THIS WHEN you have up to three documents (receipt, invoice, purchase order - any subset) and need a discrepancy list: reference, item, quantity, price, or arithmetic mismatches between them. This is the default choice for 'does this receipt match the invoice' or 'do these documents agree' questions. Links use explicit line references, exact product codes, or conservative normalized descriptions. DO NOT USE THIS if the actual question is a quantity-allocation question - how much of a PO has been invoiced, or resolving partial/split invoice lines against PO quantities. This tool does not allocate billed quantities or calculate remaining PO quantities: partial quantities are reported as plain differences, and any many-to-one (split) link is flagged ambiguous_many_to_one rather than resolved. For that, call match_invoice instead (paid, 0.50 USDC) - but you never need to call it before or after this tool; each works standalone. Free, no wallet authorization, no payment metadata accepted. Missing documents or fields are marked needs_review, never inferred. No OCR, retrieval, saved analyses, paid service calls, delivery verification, payment approval, or accounting writes. Human review required.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [],
"properties": {
"invoice": {
"type": "object",
"required": [],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"po_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"description": "Caller-supplied structured data. Use opaque supplier IDs and decimal strings; omit unknown fields. Receipt kind describes the source document, not verified delivery. Field names align with invoice matching; receipt extraction output must be mapped explicitly.",
"additionalProperties": false
},
"receipt": {
"type": "object",
"required": [],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"kind": {
"enum": [
"expense_receipt",
"delivery_receipt"
]
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"invoice_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"invoice_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"description": "Caller-supplied structured data. Use opaque supplier IDs and decimal strings; omit unknown fields. Receipt kind describes the source document, not verified delivery. Field names align with invoice matching; receipt extraction output must be mapped explicitly.",
"additionalProperties": false
},
"purchase_order": {
"type": "object",
"required": [],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"description": "Caller-supplied structured data. Use opaque supplier IDs and decimal strings; omit unknown fields. Receipt kind describes the source document, not verified delivery. Field names align with invoice matching; receipt extraction output must be mapped explicitly.",
"additionalProperties": false
}
},
"description": "Free comparison of one receipt, invoice and purchase order supplied in this request. Missing documents or fields produce needs_review. Maximum 100 lines per document and 196608 UTF-8 JSON bytes. No images, URLs, credentials, account access, or paid tool calls. Money amounts must use the supported currency's minor-unit precision; runtime also rejects sensitive data, padded strings and control characters.",
"additionalProperties": false
}{
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"contract_version",
"human_review_required",
"payment_approved",
"delivery_verified",
"financial_posting_performed",
"provenance",
"policy",
"status",
"result_identity",
"document_summary",
"comparisons",
"discrepancies"
],
"properties": {
"policy": {
"const": {
"model_calls": 0,
"matching_rule": "explicit line reference, else unique exact case-sensitive product code, else unique NFKC/casefold/whitespace-normalized description when both product codes are absent; never fuzzy or semantic",
"receipt_scope": "An expense receipt is not evidence of delivery. A delivery_receipt label is caller-supplied and does not authenticate delivery.",
"decision_scope": "No discrepancies means the supported checks found none in supplied data. It is not payment authorization, accounting approval or supplier verification.",
"quantity_scope": "Differences concern only these three supplied documents. Partial receipts, partial invoicing, prior invoices, returns and delivery events are not inferred.",
"paid_tool_calls": 0,
"retention_scope": "This function retains no documents or results; caller and transport retention are outside this function's guarantees.",
"arithmetic_scope": "Exact decimal comparisons with per-line ROUND_HALF_UP at supported currency precision. No tax applicability, discounts, freight or currency conversion is inferred.",
"payment_required": false,
"document_storage_performed": false
}
},
"status": {
"enum": [
"no_discrepancies",
"needs_review"
]
},
"provenance": {
"const": {
"source": "caller_supplied_documents_only",
"source_pointer_root": "original_arguments",
"external_data_fetched": false,
"document_authenticity_verified": false
}
},
"comparisons": {
"type": "array",
"items": {
"type": "object",
"required": [
"pair",
"status",
"document_identity_comparable",
"rows"
],
"properties": {
"pair": {
"enum": [
"receipt_to_invoice",
"invoice_to_purchase_order"
]
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"source",
"target",
"candidate_targets",
"match_method",
"comparison_performed",
"status",
"quantity_difference",
"unit_price_difference",
"amount_difference"
],
"properties": {
"source": {
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
"status": {
"enum": [
"no_discrepancies",
"needs_review"
]
},
"target": {
"anyOf": [
{
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
{
"type": "null"
}
]
},
"match_method": {
"enum": [
"unmatched",
"explicit_line_reference",
"exact_product_code",
"normalized_description"
]
},
"amount_difference": {
"type": [
"string",
"null"
],
"pattern": "^-?(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 50
},
"candidate_targets": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
"maxItems": 100
},
"quantity_difference": {
"type": [
"string",
"null"
],
"pattern": "^-?(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 50
},
"comparison_performed": {
"type": "boolean"
},
"unit_price_difference": {
"type": [
"string",
"null"
],
"pattern": "^-?(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 50
}
},
"additionalProperties": false
},
"maxItems": 100
},
"status": {
"enum": [
"no_discrepancies",
"needs_review"
]
},
"document_identity_comparable": {
"type": "boolean"
}
},
"additionalProperties": false
},
"maxItems": 2,
"minItems": 2
},
"discrepancies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"scope",
"severity",
"sources"
],
"properties": {
"code": {
"type": "string",
"pattern": "^[a-z_]+$",
"maxLength": 80
},
"scope": {
"enum": [
"receipt",
"invoice",
"purchase_order",
"receipt_to_invoice",
"invoice_to_purchase_order"
]
},
"sources": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
"maxItems": 101
},
"severity": {
"enum": [
"unknown",
"discrepancy"
]
}
},
"additionalProperties": false
},
"maxItems": 6000
},
"result_identity": {
"type": "string",
"pattern": "^res_[0-9a-f]{64}$"
},
"contract_version": {
"const": "ardaro.purchase-document-reconciliation.response.v1"
},
"document_summary": {
"type": "array",
"items": {
"type": "object",
"required": [
"document",
"present",
"line_count",
"currency_supported",
"currency_minor_units"
],
"properties": {
"present": {
"type": "boolean"
},
"document": {
"enum": [
"receipt",
"invoice",
"purchase_order"
]
},
"line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"currency_supported": {
"type": "boolean"
},
"currency_minor_units": {
"enum": [
0,
2,
null
]
}
},
"additionalProperties": false
},
"maxItems": 3,
"minItems": 3
},
"payment_approved": {
"const": false
},
"delivery_verified": {
"const": false
},
"human_review_required": {
"const": true
},
"financial_posting_performed": {
"const": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"contract_version",
"status",
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"maxLength": 80
},
"message": {
"type": "string",
"maxLength": 300
}
},
"additionalProperties": false
},
"status": {
"const": "error"
},
"contract_version": {
"const": "ardaro.purchase-document-reconciliation.response.v1"
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_document_example — Get document example
Inspect a fixed synthetic request and expected result before integrating or paying. Select service from the enum; no caller document is accepted, processed or stored. Returns service and details containing that service's example. Free; no wallet authorization. Use get_document_service_status for current readiness, prices and retention instead.
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"enum": [
"receipt",
"invoice",
"reconciliation"
],
"type": "string",
"description": "receipt: extraction checks; invoice: paid invoice-to-PO quantity allocation; reconciliation: free three-document discrepancy checks without allocation. Choose one service; examples do not process caller documents."
}
},
"additionalProperties": false
}{
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"service",
"details"
],
"properties": {
"details": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"example_version",
"synthetic_only",
"paid_processing_performed",
"input_description",
"request",
"expected_response",
"limits"
],
"properties": {
"limits": {
"type": "object",
"required": [
"max_existing_fingerprints",
"max_line_items",
"max_pages",
"max_request_bytes",
"max_text_characters",
"normal_latency_target_ms",
"request_timeout_ms"
],
"properties": {
"max_pages": {
"type": "integer",
"minimum": 1
},
"max_line_items": {
"type": "integer",
"minimum": 1
},
"max_request_bytes": {
"type": "integer",
"minimum": 1
},
"request_timeout_ms": {
"type": "integer",
"minimum": 1
},
"max_text_characters": {
"type": "integer",
"minimum": 1
},
"normal_latency_target_ms": {
"type": "integer",
"minimum": 1
},
"max_existing_fingerprints": {
"type": "integer",
"minimum": 1
}
},
"additionalProperties": false
},
"request": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"input",
"existing_fingerprints"
],
"properties": {
"input": {
"oneOf": [
{
"type": "object",
"required": [
"kind",
"text"
],
"properties": {
"kind": {
"const": "text",
"description": "Selects receipt text input; supply the text property."
},
"text": {
"type": "string",
"maxLength": 20000,
"minLength": 1,
"description": "OCR or receipt text for one document, up to 20,000 characters. Exclude payment-card data, credentials, customer-record payloads, and financial posting instructions."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"kind",
"analysis"
],
"properties": {
"kind": {
"const": "structured",
"description": "Selects structured receipt input; supply the analysis property."
},
"analysis": {
"type": "object",
"properties": {
"tax": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Total tax amount printed on the receipt, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"total": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Final receipt total, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"vendor": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Merchant or supplier name printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"currency": {
"oneOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Three-letter currency code shown on the receipt, for example USD. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"subtotal": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Receipt subtotal before tax, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"amount": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Extended amount printed for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"quantity": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Quantity purchased for this line item. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"unit_price": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Price per unit for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"description": {
"oneOf": [
{
"type": "string",
"maxLength": 240,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 240,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Item description printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"product_code": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Product identifier or SKU printed for this line item. Supply the extracted value directly or wrap it with optional extraction confidence."
}
},
"minProperties": 1,
"additionalProperties": false
},
"maxItems": 100,
"description": "Extracted receipt line items, limited to 100 entries; omit unavailable item fields."
},
"purchase_date": {
"oneOf": [
{
"type": "string",
"maxLength": 10,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 10,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Purchase date as extracted; YYYY-MM-DD is recommended. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"purchase_order": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Purchase-order reference printed on the receipt; this does not select or link an Ardaro job. Supply the extracted value directly or wrap it with optional extraction confidence."
},
"receipt_reference": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
},
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 160,
"minLength": 1
},
{
"type": "number"
}
],
"description": "The extracted field value, supplied as text or a number before receipt normalization."
},
"confidence": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence."
}
},
"additionalProperties": false
}
],
"description": "Receipt, invoice, or transaction reference printed on the document. Supply the extracted value directly or wrap it with optional extraction confidence."
}
},
"description": "Provider-neutral receipt extraction using only the listed fields. Omit fields that were not extracted.",
"minProperties": 1,
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"description": "One receipt supplied as bounded OCR text or a provider-neutral structured extraction. Choose exactly one input kind."
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.request.v1",
"description": "Required request contract identifier; send this exact version string."
},
"existing_fingerprints": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"maxItems": 10000,
"description": "Receipt fingerprints already known to the caller for duplicate comparison. Supply lowercase 64-character SHA-256 hex strings, or an empty array when none are available; at most 10,000 entries."
}
},
"additionalProperties": false
},
"synthetic_only": {
"const": true
},
"example_version": {
"const": "ardaro.receipt-intelligence.example.v1"
},
"expected_response": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"service",
"version",
"status",
"engine",
"receipt",
"confidence",
"duplicate_check",
"duplicate_fingerprint",
"arithmetic_verified",
"arithmetic_consistency",
"warnings",
"warning_groups",
"identities",
"result",
"metering",
"policy"
],
"properties": {
"engine": {
"type": "object"
},
"policy": {
"type": "object"
},
"result": {
"type": "object",
"required": [
"extracted_facts",
"inferred_suggestions",
"unavailable_fields",
"validation",
"provenance"
],
"properties": {
"provenance": {
"type": "object"
},
"validation": {
"type": "object"
},
"extracted_facts": {
"type": "object",
"required": [
"line_items"
],
"properties": {
"vendor": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"product_code",
"quantity",
"unit_price",
"amount"
],
"properties": {
"amount": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"quantity": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"unit_price": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"product_code": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"maxItems": 100
},
"totals.tax": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"totals.total": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"purchase_date": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 10,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"purchase_order": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"totals.currency": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 3,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"totals.subtotal": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"receipt_reference": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"unavailable_fields": {
"type": "array",
"items": {
"enum": [
"purchase order reference",
"purchase_date",
"receipt or invoice number",
"totals.currency",
"totals.subtotal",
"totals.tax",
"totals.total",
"vendor"
]
},
"uniqueItems": true
},
"inferred_suggestions": {
"type": "array",
"items": {
"type": "object",
"required": [
"field",
"value"
],
"properties": {
"field": {
"enum": [
"vendor",
"purchase_date",
"purchase_order",
"receipt_reference",
"totals.subtotal",
"totals.tax",
"totals.total",
"totals.currency"
]
},
"value": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"maxItems": 8
}
},
"description": "Sole authoritative structured analysis object. Its recursively key-sorted, compact UTF-8 JSON bytes are SHA-256 hashed under ardaro.recursive-key-sort-compact-json-utf8-sha256.v1 and published as analysis_result_identity.",
"additionalProperties": false
},
"status": {
"const": "review_required"
},
"receipt": {
"type": "object",
"required": [
"vendor",
"purchase_date",
"totals",
"line_items"
],
"properties": {
"totals": {
"type": "object",
"required": [
"subtotal",
"tax",
"total",
"currency"
],
"properties": {
"tax": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"total": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"currency": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 3,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"subtotal": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"vendor": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"product_code",
"quantity",
"unit_price",
"amount"
],
"properties": {
"amount": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"quantity": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"unit_price": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"product_code": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"maxItems": 100
},
"purchase_date": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 10,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"purchase_order": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"receipt_reference": {
"type": "object",
"required": [
"value",
"confidence",
"source"
],
"properties": {
"value": {
"type": "string",
"maxLength": 160,
"minLength": 1
},
"source": {
"enum": [
"structured_summary",
"structured_line_item",
"provider_neutral",
"text_fallback",
"inferred"
]
},
"confidence": {
"type": "object",
"required": [
"score",
"level"
],
"properties": {
"level": {
"enum": [
"high",
"medium",
"low"
]
},
"score": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"description": "Non-authoritative compatibility projection generated from result under ardaro.result-receipt-projection.v1. Consumers MUST use result for structured receipt values and reject a response when this projection diverges.",
"additionalProperties": false
},
"service": {
"const": "ardaro.receipt_intelligence"
},
"version": {
"const": "1.0.0"
},
"metering": {
"type": "object"
},
"warnings": {
"type": "array",
"items": {
"type": "object"
},
"maxItems": 64
},
"confidence": {
"type": "object"
},
"identities": {
"type": "object",
"required": [
"request_identity",
"document_fingerprint",
"analysis_result_identity"
],
"properties": {
"request_identity": {
"type": "string",
"pattern": "^req_[0-9a-f]{64}$"
},
"document_fingerprint": {
"type": [
"string",
"null"
],
"pattern": "^[0-9a-f]{64}$"
},
"analysis_result_identity": {
"type": "string",
"pattern": "^res_[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"warning_groups": {
"type": "object"
},
"duplicate_check": {
"type": "object"
},
"contract_version": {
"const": "ardaro.agent-receipt-intelligence.response.v1"
},
"payment_identity": {
"type": "object",
"required": [
"protocol",
"reference",
"replayed"
],
"properties": {
"protocol": {
"const": "x402-v2"
},
"replayed": {
"type": "boolean"
},
"reference": {
"type": "string",
"pattern": "^pay_[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"arithmetic_verified": {
"type": [
"boolean",
"null"
]
},
"duplicate_fingerprint": {
"type": [
"string",
"null"
],
"pattern": "^[0-9a-f]{64}$"
},
"arithmetic_consistency": {
"enum": [
"verified",
"mismatch",
"unavailable"
]
}
},
"description": "Receipt Intelligence v1 response. result is authoritative; receipt is a derived compatibility projection that MUST match result.",
"additionalProperties": false,
"x-ardaro-receipt-compatibility-path": "$.receipt",
"x-ardaro-receipt-projection-profile": "ardaro.result-receipt-projection.v1",
"x-ardaro-authoritative-analysis-path": "$.result",
"x-ardaro-analysis-result-identity-profile": "ardaro.recursive-key-sort-compact-json-utf8-sha256.v1"
},
"input_description": {
"type": "string"
},
"paid_processing_performed": {
"const": false
}
},
"additionalProperties": false
},
"service": {
"const": "receipt"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"service",
"details"
],
"properties": {
"details": {
"type": "object",
"required": [
"example_version",
"synthetic_only",
"request",
"response",
"policy"
],
"properties": {
"policy": {
"type": "object",
"required": [
"human_review_required",
"financial_posting_supported",
"payment_required"
],
"properties": {
"payment_required": {
"const": false
},
"human_review_required": {
"const": true
},
"financial_posting_supported": {
"const": false
}
},
"additionalProperties": false
},
"request": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"invoice",
"purchase_order"
],
"properties": {
"invoice": {
"oneOf": [
{
"type": "object",
"required": [
"currency",
"line_items",
"purchase_order_reference",
"reference",
"supplier_id"
],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"currency": {
"enum": [
"JPY"
],
"type": "string"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"po_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"currency",
"line_items",
"purchase_order_reference",
"reference",
"supplier_id"
],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN"
],
"type": "string"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"po_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
}
]
},
"purchase_order": {
"oneOf": [
{
"type": "object",
"required": [
"currency",
"line_items",
"reference",
"supplier_id"
],
"properties": {
"currency": {
"enum": [
"JPY"
],
"type": "string"
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})$",
"maxLength": 26
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"currency",
"line_items",
"reference",
"supplier_id"
],
"properties": {
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN"
],
"type": "string"
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"line_id",
"quantity",
"unit",
"unit_price"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?$",
"maxLength": 29
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
}
]
},
"contract_version": {
"const": "ardaro.agent-invoice-matching.request.v1"
}
},
"description": "One invoice and one purchase order with caller-supplied opaque supplier identifiers. Runtime validation additionally rejects duplicate line IDs, padded/control-bearing strings, sensitive card or credential data, and requests over 262144 UTF-8 JSON bytes. All numeric inputs are decimal strings; missing optional arithmetic evidence requires review.",
"additionalProperties": false
},
"response": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contract_version",
"status",
"result",
"identities"
],
"properties": {
"result": {
"type": "object",
"required": [
"summary",
"document_checks",
"comparison_rows",
"purchase_order_line_summary",
"discrepancies",
"arithmetic",
"policy"
],
"properties": {
"policy": {
"type": "object",
"required": [
"human_review_required",
"stateless",
"raw_documents_retained",
"financial_posting_supported",
"financial_posting_performed",
"payment_approval_supported",
"delivery_verification_supported",
"model_calls",
"identity_purpose",
"matching_rule",
"quantity_scope",
"arithmetic_scope",
"supplier_scope",
"decision_scope"
],
"properties": {
"stateless": {
"const": true
},
"model_calls": {
"const": 0
},
"matching_rule": {
"const": "explicit_po_line_id_else_unique_case_sensitive_product_code"
},
"decision_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"quantity_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"supplier_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"arithmetic_scope": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"identity_purpose": {
"const": "deterministic_result_comparison_only"
},
"human_review_required": {
"const": true
},
"raw_documents_retained": {
"const": false
},
"payment_approval_supported": {
"const": false
},
"financial_posting_performed": {
"const": false
},
"financial_posting_supported": {
"const": false
},
"delivery_verification_supported": {
"const": false
}
},
"additionalProperties": false
},
"summary": {
"type": "object",
"required": [
"outcome",
"invoice_line_count",
"purchase_order_line_count",
"matched_invoice_line_count",
"unmatched_invoice_line_count",
"discrepancy_count",
"unknown_check_count",
"human_review_required",
"delivery_verified",
"payment_approved"
],
"properties": {
"outcome": {
"enum": [
"no_discrepancies",
"review_required"
]
},
"payment_approved": {
"const": false
},
"delivery_verified": {
"const": false
},
"discrepancy_count": {
"type": "integer",
"maximum": 1000,
"minimum": 0
},
"invoice_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"unknown_check_count": {
"type": "integer",
"maximum": 1000,
"minimum": 0
},
"human_review_required": {
"const": true
},
"purchase_order_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"matched_invoice_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"unmatched_invoice_line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
}
},
"additionalProperties": false
},
"arithmetic": {
"type": "object",
"required": [
"rounding_mode",
"rounding_scope",
"invoice_currency_scale",
"purchase_order_currency_scale",
"invoice_line_amount_sum",
"invoice_supplied_line_amount_sum",
"invoice_subtotal",
"invoice_tax",
"invoice_total",
"computed_invoice_total",
"invoice_subtotal_status",
"invoice_total_status"
],
"properties": {
"invoice_tax": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_total": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"rounding_mode": {
"const": "ROUND_HALF_UP"
},
"rounding_scope": {
"const": "each_line_then_sum"
},
"invoice_subtotal": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_total_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"computed_invoice_total": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_currency_scale": {
"enum": [
0,
2
]
},
"invoice_line_amount_sum": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"invoice_subtotal_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"purchase_order_currency_scale": {
"enum": [
0,
2
]
},
"invoice_supplied_line_amount_sum": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"discrepancies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"severity",
"message",
"sources"
],
"properties": {
"code": {
"enum": [
"currency_mismatch",
"supplier_mismatch",
"purchase_order_reference_mismatch",
"invoice_line_amount_unavailable",
"purchase_order_line_amount_unavailable",
"invoice_line_arithmetic_mismatch",
"purchase_order_line_arithmetic_mismatch",
"referenced_purchase_order_line_missing",
"ambiguous_product_code",
"unmatchable_invoice_line",
"unit_mismatch",
"product_code_mismatch",
"unit_price_mismatch",
"quantity_exceeds_purchase_order",
"invoice_subtotal_unavailable",
"invoice_tax_unavailable",
"invoice_total_unavailable",
"invoice_subtotal_mismatch",
"invoice_supplied_line_sum_mismatch",
"invoice_total_mismatch"
],
"type": "string"
},
"message": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"sources": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"maxItems": 101,
"minItems": 1
},
"severity": {
"enum": [
"error",
"warning"
]
}
},
"additionalProperties": false
},
"maxItems": 1000,
"minItems": 0
},
"comparison_rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"invoice_line_id",
"invoice_source",
"purchase_order_line_id",
"purchase_order_source",
"match_method",
"allocation_status",
"invoice_quantity",
"purchase_order_quantity",
"invoice_unit",
"purchase_order_unit",
"invoice_unit_price",
"purchase_order_unit_price",
"invoice_currency",
"purchase_order_currency",
"unit_price_difference",
"invoice_amount",
"computed_invoice_amount",
"line_arithmetic_status",
"discrepancy_codes",
"outcome"
],
"properties": {
"outcome": {
"enum": [
"no_discrepancies",
"review_required"
]
},
"invoice_unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"match_method": {
"enum": [
"unmatched",
"explicit_po_line_id",
"exact_product_code"
]
},
"invoice_amount": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"invoice_source": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"invoice_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"invoice_currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN",
"JPY"
]
},
"invoice_quantity": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"allocation_status": {
"enum": [
"allocated",
"not_comparable",
"unmatched"
]
},
"discrepancy_codes": {
"type": "array",
"items": {
"enum": [
"currency_mismatch",
"supplier_mismatch",
"purchase_order_reference_mismatch",
"invoice_line_amount_unavailable",
"purchase_order_line_amount_unavailable",
"invoice_line_arithmetic_mismatch",
"purchase_order_line_arithmetic_mismatch",
"referenced_purchase_order_line_missing",
"ambiguous_product_code",
"unmatchable_invoice_line",
"unit_mismatch",
"product_code_mismatch",
"unit_price_mismatch",
"quantity_exceeds_purchase_order",
"invoice_subtotal_unavailable",
"invoice_tax_unavailable",
"invoice_total_unavailable",
"invoice_subtotal_mismatch",
"invoice_supplied_line_sum_mismatch",
"invoice_total_mismatch"
],
"type": "string"
},
"maxItems": 20,
"minItems": 0,
"uniqueItems": true
},
"invoice_unit_price": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"purchase_order_unit": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
},
"purchase_order_source": {
"anyOf": [
{
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
{
"type": "null"
}
]
},
"unit_price_difference": {
"anyOf": [
{
"type": "string",
"pattern": "^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"line_arithmetic_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"purchase_order_line_id": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
{
"type": "null"
}
]
},
"computed_invoice_amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"purchase_order_currency": {
"enum": [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"MXN",
"JPY"
]
},
"purchase_order_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"purchase_order_unit_price": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"document_checks": {
"type": "object",
"required": [
"currency_matches",
"supplier_matches",
"purchase_order_reference_matches"
],
"properties": {
"currency_matches": {
"type": "boolean"
},
"supplier_matches": {
"type": "boolean"
},
"purchase_order_reference_matches": {
"type": "boolean"
}
},
"additionalProperties": false
},
"purchase_order_line_summary": {
"type": "array",
"items": {
"type": "object",
"required": [
"purchase_order_line_id",
"purchase_order_source",
"allocated_invoice_sources",
"ordered_quantity",
"allocated_quantity",
"uninvoiced_quantity",
"overbilled_quantity",
"unit",
"status",
"supplied_amount",
"computed_amount",
"line_arithmetic_status"
],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"status": {
"enum": [
"not_comparable",
"not_invoiced",
"overbilled",
"fully_invoiced",
"partially_invoiced"
]
},
"computed_amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"supplied_amount": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"ordered_quantity": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
"allocated_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"overbilled_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"uninvoiced_quantity": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 42
},
{
"type": "null"
}
]
},
"purchase_order_source": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"line_arithmetic_status": {
"enum": [
"consistent",
"mismatch",
"unavailable"
]
},
"purchase_order_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"allocated_invoice_sources": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100,
"minLength": 1
},
"maxItems": 100,
"minItems": 0
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
}
},
"additionalProperties": false
},
"status": {
"const": "review_required"
},
"identities": {
"type": "object",
"required": [
"analysis_result_identity"
],
"properties": {
"analysis_result_identity": {
"type": "string",
"pattern": "^res_[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"contract_version": {
"const": "ardaro.agent-invoice-matching.response.v1"
}
},
"additionalProperties": false
},
"synthetic_only": {
"const": true
},
"example_version": {
"const": "ardaro.invoice-matching.example.v1"
}
},
"additionalProperties": false
},
"service": {
"const": "invoice"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"service",
"details"
],
"properties": {
"details": {
"type": "object",
"required": [
"request",
"response"
],
"properties": {
"request": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [],
"properties": {
"invoice": {
"type": "object",
"required": [],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"po_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"description": "Caller-supplied structured data. Use opaque supplier IDs and decimal strings; omit unknown fields. Receipt kind describes the source document, not verified delivery. Field names align with invoice matching; receipt extraction output must be mapped explicitly.",
"additionalProperties": false
},
"receipt": {
"type": "object",
"required": [],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"kind": {
"enum": [
"expense_receipt",
"delivery_receipt"
]
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"invoice_line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"invoice_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"purchase_order_reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"description": "Caller-supplied structured data. Use opaque supplier IDs and decimal strings; omit unknown fields. Receipt kind describes the source document, not verified delivery. Field names align with invoice matching; receipt extraction output must be mapped explicitly.",
"additionalProperties": false
},
"purchase_order": {
"type": "object",
"required": [],
"properties": {
"tax": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"total": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"subtotal": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"reference": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 32,
"minLength": 1
},
"amount": {
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,6})?$",
"maxLength": 33
},
"line_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
},
"quantity": {
"not": {
"pattern": "\\n"
},
"type": "string",
"allOf": [
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
}
],
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"unit_price": {
"not": {
"pattern": "\\n"
},
"type": "string",
"pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
"maxLength": 19
},
"description": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"product_code": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
"maxLength": 80,
"minLength": 1
}
},
"description": "Caller-supplied structured data. Use opaque supplier IDs and decimal strings; omit unknown fields. Receipt kind describes the source document, not verified delivery. Field names align with invoice matching; receipt extraction output must be mapped explicitly.",
"additionalProperties": false
}
},
"description": "Free comparison of one receipt, invoice and purchase order supplied in this request. Missing documents or fields produce needs_review. Maximum 100 lines per document and 196608 UTF-8 JSON bytes. No images, URLs, credentials, account access, or paid tool calls. Money amounts must use the supported currency's minor-unit precision; runtime also rejects sensitive data, padded strings and control characters.",
"additionalProperties": false
},
"response": {
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"contract_version",
"human_review_required",
"payment_approved",
"delivery_verified",
"financial_posting_performed",
"provenance",
"policy",
"status",
"result_identity",
"document_summary",
"comparisons",
"discrepancies"
],
"properties": {
"policy": {
"const": {
"model_calls": 0,
"matching_rule": "explicit line reference, else unique exact case-sensitive product code, else unique NFKC/casefold/whitespace-normalized description when both product codes are absent; never fuzzy or semantic",
"receipt_scope": "An expense receipt is not evidence of delivery. A delivery_receipt label is caller-supplied and does not authenticate delivery.",
"decision_scope": "No discrepancies means the supported checks found none in supplied data. It is not payment authorization, accounting approval or supplier verification.",
"quantity_scope": "Differences concern only these three supplied documents. Partial receipts, partial invoicing, prior invoices, returns and delivery events are not inferred.",
"paid_tool_calls": 0,
"retention_scope": "This function retains no documents or results; caller and transport retention are outside this function's guarantees.",
"arithmetic_scope": "Exact decimal comparisons with per-line ROUND_HALF_UP at supported currency precision. No tax applicability, discounts, freight or currency conversion is inferred.",
"payment_required": false,
"document_storage_performed": false
}
},
"status": {
"enum": [
"no_discrepancies",
"needs_review"
]
},
"provenance": {
"const": {
"source": "caller_supplied_documents_only",
"source_pointer_root": "original_arguments",
"external_data_fetched": false,
"document_authenticity_verified": false
}
},
"comparisons": {
"type": "array",
"items": {
"type": "object",
"required": [
"pair",
"status",
"document_identity_comparable",
"rows"
],
"properties": {
"pair": {
"enum": [
"receipt_to_invoice",
"invoice_to_purchase_order"
]
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"source",
"target",
"candidate_targets",
"match_method",
"comparison_performed",
"status",
"quantity_difference",
"unit_price_difference",
"amount_difference"
],
"properties": {
"source": {
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
"status": {
"enum": [
"no_discrepancies",
"needs_review"
]
},
"target": {
"anyOf": [
{
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
{
"type": "null"
}
]
},
"match_method": {
"enum": [
"unmatched",
"explicit_line_reference",
"exact_product_code",
"normalized_description"
]
},
"amount_difference": {
"type": [
"string",
"null"
],
"pattern": "^-?(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 50
},
"candidate_targets": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
"maxItems": 100
},
"quantity_difference": {
"type": [
"string",
"null"
],
"pattern": "^-?(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 50
},
"comparison_performed": {
"type": "boolean"
},
"unit_price_difference": {
"type": [
"string",
"null"
],
"pattern": "^-?(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?$",
"maxLength": 50
}
},
"additionalProperties": false
},
"maxItems": 100
},
"status": {
"enum": [
"no_discrepancies",
"needs_review"
]
},
"document_identity_comparable": {
"type": "boolean"
}
},
"additionalProperties": false
},
"maxItems": 2,
"minItems": 2
},
"discrepancies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"scope",
"severity",
"sources"
],
"properties": {
"code": {
"type": "string",
"pattern": "^[a-z_]+$",
"maxLength": 80
},
"scope": {
"enum": [
"receipt",
"invoice",
"purchase_order",
"receipt_to_invoice",
"invoice_to_purchase_order"
]
},
"sources": {
"type": "array",
"items": {
"type": "string",
"pattern": "^/(?:receipt|invoice|purchase_order)(?:/[A-Za-z0-9_]+)*$",
"maxLength": 100
},
"maxItems": 101
},
"severity": {
"enum": [
"unknown",
"discrepancy"
]
}
},
"additionalProperties": false
},
"maxItems": 6000
},
"result_identity": {
"type": "string",
"pattern": "^res_[0-9a-f]{64}$"
},
"contract_version": {
"const": "ardaro.purchase-document-reconciliation.response.v1"
},
"document_summary": {
"type": "array",
"items": {
"type": "object",
"required": [
"document",
"present",
"line_count",
"currency_supported",
"currency_minor_units"
],
"properties": {
"present": {
"type": "boolean"
},
"document": {
"enum": [
"receipt",
"invoice",
"purchase_order"
]
},
"line_count": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"currency_supported": {
"type": "boolean"
},
"currency_minor_units": {
"enum": [
0,
2,
null
]
}
},
"additionalProperties": false
},
"maxItems": 3,
"minItems": 3
},
"payment_approved": {
"const": false
},
"delivery_verified": {
"const": false
},
"human_review_required": {
"const": true
},
"financial_posting_performed": {
"const": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"contract_version",
"status",
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"maxLength": 80
},
"message": {
"type": "string",
"maxLength": 300
}
},
"additionalProperties": false
},
"status": {
"const": "error"
},
"contract_version": {
"const": "ardaro.purchase-document-reconciliation.response.v1"
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}
}
},
"service": {
"const": "reconciliation"
}
},
"additionalProperties": false
}
]
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_document_service_status — Get document readiness and terms
Check the selected service's current runtime readiness, input limits, pricing and retention before use. Returns service and details; ready=false means the underlying service is unavailable. Free cached runtime read; no external probe, payment, analysis or historical document retrieval. Use get_document_example for a fixed integration sample instead.
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"enum": [
"receipt",
"invoice",
"reconciliation"
],
"type": "string",
"description": "receipt: extraction checks; invoice: paid invoice-to-PO quantity allocation; reconciliation: free three-document discrepancy checks without allocation. Choose one service; examples do not process caller documents."
}
},
"additionalProperties": false
}{
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"service",
"details"
],
"properties": {
"details": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"availability",
"limits",
"paid_processing_performed",
"payment_authorized",
"policy",
"price",
"retention",
"service_id",
"status_version",
"supported_input_types"
],
"properties": {
"price": {
"type": "object",
"required": [
"model",
"amount",
"currency",
"display",
"network",
"failed_input_validation_charged",
"same_payment_identifier_replay_requires_new_payment",
"successful_response_loss_retry_policy"
],
"properties": {
"model": {
"const": "fixed_per_accepted_request"
},
"amount": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]{2}$"
},
"display": {
"type": "string",
"pattern": "^\\$[0-9]+\\.[0-9]{2}$"
},
"network": {
"type": "string"
},
"currency": {
"const": "USDC"
},
"failed_input_validation_charged": {
"const": false
},
"successful_response_loss_retry_policy": {
"type": "string"
},
"same_payment_identifier_replay_requires_new_payment": {
"const": false
}
},
"additionalProperties": false
},
"limits": {
"type": "object",
"required": [
"max_existing_fingerprints",
"max_line_items",
"max_pages",
"max_request_bytes",
"max_text_characters",
"normal_latency_target_ms",
"request_timeout_ms"
],
"properties": {
"max_pages": {
"type": "integer",
"minimum": 1
},
"max_line_items": {
"type": "integer",
"minimum": 1
},
"max_request_bytes": {
"type": "integer",
"minimum": 1
},
"request_timeout_ms": {
"type": "integer",
"minimum": 1
},
"max_text_characters": {
"type": "integer",
"minimum": 1
},
"normal_latency_target_ms": {
"type": "integer",
"minimum": 1
},
"max_existing_fingerprints": {
"type": "integer",
"minimum": 1
}
},
"additionalProperties": false
},
"policy": {
"type": "object",
"required": [
"advisory_only",
"human_review_required",
"financial_mutation_supported",
"ardaro_saas_tenant_access"
],
"properties": {
"advisory_only": {
"const": true
},
"human_review_required": {
"const": true
},
"ardaro_saas_tenant_access": {
"const": false
},
"financial_mutation_supported": {
"const": false
}
},
"additionalProperties": false
},
"retention": {
"type": "object",
"required": [
"default_retention_seconds",
"deletion_behavior",
"durable_recovery_supported",
"extracted_results_retained",
"payment_metadata_retention_seconds",
"raw_documents_retained",
"raw_receipt_images_retained",
"storage_scope",
"used_for_model_training"
],
"properties": {
"storage_scope": {
"type": "string"
},
"deletion_behavior": {
"type": "string"
},
"raw_documents_retained": {
"const": false
},
"used_for_model_training": {
"const": false
},
"default_retention_seconds": {
"type": "integer",
"minimum": 1
},
"durable_recovery_supported": {
"type": "boolean"
},
"extracted_results_retained": {
"type": "boolean"
},
"raw_receipt_images_retained": {
"const": false
},
"payment_metadata_retention_seconds": {
"type": "integer",
"minimum": 86400
}
},
"additionalProperties": false
},
"service_id": {
"const": "ardaro.receipt_intelligence"
},
"availability": {
"type": "object",
"required": [
"ready",
"reason",
"source"
],
"properties": {
"ready": {
"type": "boolean",
"description": "Whether the launch gate and cached dependencies currently allow paid processing."
},
"reason": {
"enum": [
"ready",
"launch_gate_closed",
"dependency_unavailable",
"not_configured"
],
"description": "Coarse public readiness reason; contains no internal error details."
},
"source": {
"const": "cached_runtime_readiness"
}
},
"description": "Cached runtime readiness, not a fresh external probe or settlement proof.",
"additionalProperties": false
},
"status_version": {
"const": "ardaro.receipt-intelligence.service-status.v1"
},
"payment_authorized": {
"const": false
},
"supported_input_types": {
"type": "array",
"items": {
"type": "object",
"required": [
"mime_type",
"input_kind",
"description"
],
"properties": {
"mime_type": {
"type": "string"
},
"input_kind": {
"enum": [
"text",
"structured"
]
},
"description": {
"type": "string"
}
},
"additionalProperties": false
},
"minItems": 1
},
"paid_processing_performed": {
"const": false
}
},
"additionalProperties": false
},
"service": {
"const": "receipt"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"service",
"details"
],
"properties": {
"details": {
"type": "object",
"allOf": [
{
"if": {
"properties": {
"ready": {
"const": true
}
}
},
"else": {
"properties": {
"reason": {
"enum": [
"launch_gated",
"dependency_unavailable"
]
}
}
},
"then": {
"properties": {
"reason": {
"const": "ready"
}
}
}
},
{
"if": {
"properties": {
"settlement_proven": {
"const": true
}
}
},
"else": {
"properties": {
"acceptance_evidence": {
"type": "null"
},
"settlement_proven_transport": {
"const": null
}
}
},
"then": {
"properties": {
"acceptance_evidence": {
"type": "object"
},
"settlement_proven_transport": {
"const": "REST"
}
}
}
}
],
"required": [
"status_version",
"service_id",
"ready",
"reason",
"price",
"limits",
"retention",
"policy",
"settlement_proven",
"settlement_proven_transport",
"acceptance_evidence",
"endpoints"
],
"properties": {
"price": {
"type": "object",
"required": [
"model",
"amount",
"amount_atomic",
"currency",
"network",
"display",
"failed_input_validation_charged",
"same_payment_identifier_replay_requires_new_payment",
"successful_response_loss_retry_policy"
],
"properties": {
"model": {
"const": "fixed_per_accepted_request"
},
"amount": {
"const": "0.50"
},
"display": {
"const": "$0.50"
},
"network": {
"enum": [
"eip155:8453",
"eip155:84532"
]
},
"currency": {
"const": "USDC"
},
"amount_atomic": {
"const": "500000"
},
"failed_input_validation_charged": {
"const": false
},
"successful_response_loss_retry_policy": {
"const": "Retry only the identical signed payment, payment identifier and request. Never create a new signature for an unknown outcome."
},
"same_payment_identifier_replay_requires_new_payment": {
"const": false
}
},
"additionalProperties": false
},
"ready": {
"type": "boolean"
},
"limits": {
"type": "object",
"required": [
"max_request_bytes",
"max_invoice_line_items",
"max_purchase_order_line_items",
"max_response_bytes",
"max_mcp_response_bytes",
"supported_currencies"
],
"properties": {
"max_request_bytes": {
"const": 262144
},
"max_response_bytes": {
"const": 1048576
},
"supported_currencies": {
"const": [
"AUD",
"CAD",
"EUR",
"GBP",
"JPY",
"MXN",
"USD"
]
},
"max_invoice_line_items": {
"const": 100
},
"max_mcp_response_bytes": {
"const": 2097152
},
"max_purchase_order_line_items": {
"const": 100
}
},
"additionalProperties": false
},
"policy": {
"type": "object",
"required": [
"advisory_only",
"human_review_required",
"financial_mutation_supported",
"ardaro_saas_tenant_access",
"ocr_supported",
"delivery_verification_supported",
"prior_invoice_reconciliation_supported",
"tax_validation_supported",
"document_authentication_supported"
],
"properties": {
"advisory_only": {
"const": true
},
"ocr_supported": {
"const": false
},
"human_review_required": {
"const": true
},
"tax_validation_supported": {
"const": false
},
"ardaro_saas_tenant_access": {
"const": false
},
"financial_mutation_supported": {
"const": false
},
"delivery_verification_supported": {
"const": false
},
"document_authentication_supported": {
"const": false
},
"prior_invoice_reconciliation_supported": {
"const": false
}
},
"additionalProperties": false
},
"reason": {
"enum": [
"ready",
"launch_gated",
"dependency_unavailable"
]
},
"endpoints": {
"type": "object",
"required": [
"analyze",
"mcp",
"example",
"status"
],
"properties": {
"mcp": {
"not": {
"pattern": "\\n"
},
"type": "string",
"format": "uri",
"pattern": "^https?://[^/?#]+/mcp$",
"maxLength": 600,
"minLength": 1
},
"status": {
"not": {
"pattern": "\\n"
},
"type": "string",
"format": "uri",
"pattern": "^https?://[^/?#]+/agent-services/invoice-matching/status$",
"maxLength": 600,
"minLength": 1
},
"analyze": {
"not": {
"pattern": "\\n"
},
"type": "string",
"format": "uri",
"pattern": "^https?://[^/?#]+/v1/invoice-matching/analyze$",
"maxLength": 600,
"minLength": 1
},
"example": {
"not": {
"pattern": "\\n"
},
"type": "string",
"format": "uri",
"pattern": "^https?://[^/?#]+/agent-services/invoice-matching/example$",
"maxLength": 600,
"minLength": 1
}
},
"additionalProperties": false
},
"retention": {
"type": "object",
"required": [
"raw_documents_persisted",
"in_process_result_cache_seconds",
"payment_metadata_retention_seconds",
"sales_accounting"
],
"properties": {
"sales_accounting": {
"const": "Content-free pseudonymous invoice sales are accounted for separately from receipt sales."
},
"raw_documents_persisted": {
"const": false
},
"in_process_result_cache_seconds": {
"type": "integer",
"maximum": 86400,
"minimum": 1
},
"payment_metadata_retention_seconds": {
"type": "integer",
"maximum": 315360000,
"minimum": 86400
}
},
"additionalProperties": false
},
"service_id": {
"const": "ardaro.invoice_matching"
},
"status_version": {
"const": "ardaro.invoice-matching.service-status.v1"
},
"settlement_proven": {
"type": "boolean"
},
"acceptance_evidence": {
"anyOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"scope",
"transport",
"service_id",
"tested_service_version",
"verified_date_utc",
"network",
"amount_atomic",
"currency",
"transaction",
"explorer_url",
"response_schema_and_exact_transfer_verified",
"paid_mcp_execution_verified",
"external_customer_purchase_established"
],
"properties": {
"scope": {
"const": "One synthetic owner-operated REST acceptance test; not customer adoption or paid MCP execution"
},
"network": {
"const": "eip155:8453"
},
"currency": {
"const": "USDC"
},
"transport": {
"const": "REST"
},
"service_id": {
"const": "ardaro.invoice_matching"
},
"transaction": {
"const": "0x596f629e0bd1a418e23c91e2c8ecc9aa7506a171c327b172894f0b49900ea1d5"
},
"explorer_url": {
"const": "https://basescan.org/tx/0x596f629e0bd1a418e23c91e2c8ecc9aa7506a171c327b172894f0b49900ea1d5"
},
"amount_atomic": {
"const": "500000"
},
"verified_date_utc": {
"const": "2026-10-06"
},
"tested_service_version": {
"const": "invoice-matching:1.0.0"
},
"paid_mcp_execution_verified": {
"const": false
},
"external_customer_purchase_established": {
"const": false
},
"response_schema_and_exact_transfer_verified": {
"const": true
}
},
"additionalProperties": false
}
]
},
"settlement_proven_transport": {
"enum": [
"REST",
null
]
}
},
"additionalProperties": false
},
"service": {
"const": "invoice"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"service",
"details"
],
"properties": {
"details": {
"type": "object",
"required": [
"ready",
"price",
"input",
"retention",
"human_review_required",
"financial_posting_performed"
],
"properties": {
"input": {
"type": "string"
},
"price": {
"const": "free"
},
"ready": {
"const": true
},
"retention": {
"type": "string"
},
"human_review_required": {
"const": true
},
"financial_posting_performed": {
"const": false
}
},
"additionalProperties": false
},
"service": {
"const": "reconciliation"
}
},
"additionalProperties": false
}
]
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 4 of 4 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 2 of 2 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 4 of 4 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 673 ms
- 95th percentile latency
- 713 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 718 ms · 5 tool(s)
- · probe · passed · 627 ms · metadata changed · 5 tool(s)
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Try asking
Reviewed prompts from cited playbooks. Connect the listed servers before using them.
Extract structured data from the following receipt text using the analyze_receipt tool.
Text: 'Synthetic Supply Receipt R1 2026-09-17 2 BOLTS 2.00 Subtotal 2.00 Tax 0.00 Total USD 2.00'
Use the provided card-credit Bearer key for authorization.Please reconcile the following receipt, invoice, and purchase order data to find any discrepancies.
Receipt: {"reference": "R1", "supplier_id": "S1", "currency": "USD", "line_items": [{"line_id": "R1-1", "product_code": "BOLT", "quantity": "2"}]}
Invoice: {"reference": "I1", "supplier_id": "S1", "currency": "USD", "line_items": [{"line_id": "I1-1", "product_code": "BOLT", "quantity": "3"}]}
Purchase Order: {"reference": "PO1", "supplier_id": "S1", "currency": "USD", "line_items": [{"line_id": "PO1-1", "product_code": "BOLT", "quantity": "5"}]}
Call the reconcile_purchase_documents tool and report the differences.Agent playbooks using this server
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http ardaro-documents-mcp https://agents.getardaro.com/mcp/documentsCodex
codex mcp add ardaro-documents-mcp --url https://agents.getardaro.com/mcp/documentsCursor
{
"mcpServers": {
"ardaro-documents-mcp": {
"url": "https://agents.getardaro.com/mcp/documents"
}
}
}Cline
{
"mcpServers": {
"ardaro-documents-mcp": {
"type": "streamableHttp",
"url": "https://agents.getardaro.com/mcp/documents",
"disabled": false
}
}
}VS Code
{
"servers": {
"ardaro-documents-mcp": {
"type": "http",
"url": "https://agents.getardaro.com/mcp/documents"
}
}
}Gemini CLI
gemini mcp add --transport http ardaro-documents-mcp https://agents.getardaro.com/mcp/documentsClaude Desktop
https://agents.getardaro.com/mcp/documentsWindsurf
{
"mcpServers": {
"ardaro-documents-mcp": {
"serverUrl": "https://agents.getardaro.com/mcp/documents"
}
}
}Let your agent find its tools
Find servers like Ardaro Documents MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other productivity and knowledge servers
Frequently asked questions
- Can I use this server to extract receipt data?
- Yes. The server supports extracting structured expense fields from receipt text using the `analyze_receipt` tool. This allows agents to process receipt data for expense tracking or auditing purposes.
- How do I allocate invoice quantities to purchase orders?
- Use the `match_invoice` tool to allocate invoice quantities to purchase order lines. This task helps align financial records with procurement data for accurate accounting and reconciliation.
- What are the prerequisites for using the tools?
- While connection requires no sign-in, individual tools may need a vendor account, credentials, or permissions. Each paid call requires a buyer-authorized signer. Prepaid card credits can fund a bearer API key through Stripe Checkout. Check the documented prerequisites for specific tool requirements.
Do you run Ardaro Documents MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.