{"openapi":"3.1.0","info":{"title":"Ardaro Invoice Matching","version":"1.0.0","description":"Compare one structured invoice and purchase order for human review. Check exact line references, quantities, unit prices and arithmetic; return source-linked discrepancies and explicit unknowns. No OCR, delivery verification, prior-invoice history, tax validation or financial posting."},"servers":[{"url":"https://agents.getardaro.com"}],"paths":{"/v1/invoice-matching/analyze":{"post":{"operationId":"matchInvoice","summary":"Compare one structured invoice and purchase order for human review. Check exact line references, quantities, unit prices and arithmetic; return source-linked discrepancies and explicit unknowns. No OCR, delivery verification, prior-invoice history, tax validation or financial posting.","x-price-usdc":"0.50","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingRequest"}}}},"responses":{"200":{"description":"Settled advisory comparison requiring human review.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingPaidResponse"}}},"headers":{"PAYMENT-RESPONSE":{"description":"Base64 x402 settlement receipt; require success and the pinned exact payment contract.","schema":{"type":"string"}}}},"402":{"description":"Payment required; decode the PAYMENT-REQUIRED header. No analysis result is returned.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{}}}},"headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string","contentEncoding":"base64"}}}},"400":{"description":"Invalid request or payment contract; no new settlement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"405":{"description":"This analysis resource requires POST.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"408":{"description":"Request body timed out before analysis.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"409":{"description":"Conflicting operation or unresolved payment outcome. Do not sign again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"413":{"description":"The request exceeds the bounded input size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"415":{"description":"Content-Type must be application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"431":{"description":"The payment authorization header exceeds the configured bound.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"503":{"description":"Launch gated, service capacity exhausted, or a required dependency is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}},"504":{"description":"Analysis timed out; recover using only the identical request and payment identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingGatewayError"}}}}}}},"/agent-services/invoice-matching/status":{"get":{"operationId":"getInvoiceMatchingServiceStatus","responses":{"200":{"description":"Free cached readiness and payment terms.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingStatus"}}}}}}},"/agent-services/invoice-matching/example":{"get":{"operationId":"getInvoiceMatchingExample","responses":{"200":{"description":"Fixed synthetic request and advisory result; no user documents or payment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceMatchingExample"}}}}}}}},"components":{"schemas":{"InvoiceMatchingRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","invoice","purchase_order"],"properties":{"contract_version":{"const":"ardaro.agent-invoice-matching.request.v1"},"invoice":{"oneOf":[{"type":"object","additionalProperties":false,"required":["currency","line_items","purchase_order_reference","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["JPY"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"},"po_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"}}}},"purchase_order_reference":{"type":"string","minLength":1,"maxLength":80},"subtotal":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"},"tax":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"},"total":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"}}},{"type":"object","additionalProperties":false,"required":["currency","line_items","purchase_order_reference","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","MXN"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"},"po_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"}}}},"purchase_order_reference":{"type":"string","minLength":1,"maxLength":80},"subtotal":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"},"tax":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"},"total":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"}}}]},"purchase_order":{"oneOf":[{"type":"object","additionalProperties":false,"required":["currency","line_items","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["JPY"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"}}}}}},{"type":"object","additionalProperties":false,"required":["currency","line_items","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","MXN"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"}}}}}}]}},"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."},"InvoiceMatchingResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","status","result","identities"],"properties":{"contract_version":{"const":"ardaro.agent-invoice-matching.response.v1"},"status":{"const":"review_required"},"result":{"type":"object","additionalProperties":false,"required":["summary","document_checks","comparison_rows","purchase_order_line_summary","discrepancies","arithmetic","policy"],"properties":{"summary":{"type":"object","additionalProperties":false,"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"]},"invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"purchase_order_line_count":{"type":"integer","minimum":0,"maximum":100},"matched_invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"unmatched_invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"discrepancy_count":{"type":"integer","minimum":0,"maximum":1000},"unknown_check_count":{"type":"integer","minimum":0,"maximum":1000},"human_review_required":{"const":true},"delivery_verified":{"const":false},"payment_approved":{"const":false}}},"document_checks":{"type":"object","additionalProperties":false,"required":["currency_matches","supplier_matches","purchase_order_reference_matches"],"properties":{"currency_matches":{"type":"boolean"},"supplier_matches":{"type":"boolean"},"purchase_order_reference_matches":{"type":"boolean"}}},"comparison_rows":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"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":{"invoice_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"invoice_source":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},"purchase_order_line_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},{"type":"null"}]},"purchase_order_source":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},{"type":"null"}]},"match_method":{"enum":["unmatched","explicit_po_line_id","exact_product_code"]},"allocation_status":{"enum":["allocated","not_comparable","unmatched"]},"invoice_quantity":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"purchase_order_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"purchase_order_unit":{"anyOf":[{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},{"type":"null"}]},"invoice_unit_price":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"purchase_order_unit_price":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_currency":{"enum":["USD","EUR","GBP","CAD","AUD","MXN","JPY"]},"purchase_order_currency":{"enum":["USD","EUR","GBP","CAD","AUD","MXN","JPY"]},"unit_price_difference":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},{"type":"null"}]},"invoice_amount":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_invoice_amount":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"line_arithmetic_status":{"enum":["consistent","mismatch","unavailable"]},"discrepancy_codes":{"type":"array","minItems":0,"maxItems":20,"items":{"type":"string","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"]},"uniqueItems":true},"outcome":{"enum":["no_discrepancies","review_required"]}}}},"purchase_order_line_summary":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"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":{"purchase_order_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"purchase_order_source":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},"allocated_invoice_sources":{"type":"array","minItems":0,"maxItems":100,"items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"}},"ordered_quantity":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"allocated_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"uninvoiced_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"overbilled_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"status":{"enum":["not_comparable","not_invoiced","overbilled","fully_invoiced","partially_invoiced"]},"supplied_amount":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_amount":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"line_arithmetic_status":{"enum":["consistent","mismatch","unavailable"]}}}},"discrepancies":{"type":"array","minItems":0,"maxItems":1000,"items":{"type":"object","additionalProperties":false,"required":["code","severity","message","sources"],"properties":{"code":{"type":"string","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"]},"severity":{"enum":["error","warning"]},"message":{"type":"string","minLength":1,"maxLength":240},"sources":{"type":"array","minItems":1,"maxItems":101,"items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"}}}}},"arithmetic":{"type":"object","additionalProperties":false,"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":{"rounding_mode":{"const":"ROUND_HALF_UP"},"rounding_scope":{"const":"each_line_then_sum"},"invoice_currency_scale":{"enum":[0,2]},"purchase_order_currency_scale":{"enum":[0,2]},"invoice_line_amount_sum":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"invoice_supplied_line_amount_sum":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_subtotal":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_tax":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_total":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_invoice_total":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_subtotal_status":{"enum":["consistent","mismatch","unavailable"]},"invoice_total_status":{"enum":["consistent","mismatch","unavailable"]}}},"policy":{"type":"object","additionalProperties":false,"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":{"human_review_required":{"const":true},"stateless":{"const":true},"raw_documents_retained":{"const":false},"financial_posting_supported":{"const":false},"financial_posting_performed":{"const":false},"payment_approval_supported":{"const":false},"delivery_verification_supported":{"const":false},"model_calls":{"const":0},"identity_purpose":{"const":"deterministic_result_comparison_only"},"matching_rule":{"const":"explicit_po_line_id_else_unique_case_sensitive_product_code"},"quantity_scope":{"type":"string","minLength":1,"maxLength":300},"arithmetic_scope":{"type":"string","minLength":1,"maxLength":300},"supplier_scope":{"type":"string","minLength":1,"maxLength":300},"decision_scope":{"type":"string","minLength":1,"maxLength":300}}}}},"identities":{"type":"object","additionalProperties":false,"required":["analysis_result_identity"],"properties":{"analysis_result_identity":{"type":"string","pattern":"^res_[0-9a-f]{64}(?![\\s\\S])"},"payment_identity":{"type":"object","additionalProperties":false,"required":["protocol","reference","replayed"],"properties":{"protocol":{"const":"x402-v2"},"reference":{"type":"string","pattern":"^pay_[0-9a-f]{64}(?![\\s\\S])"},"replayed":{"type":"boolean"}}}}}}},"InvoiceMatchingError":{"type":"object","additionalProperties":false,"required":["contract_version","status","error"],"properties":{"contract_version":{"const":"ardaro.agent-invoice-matching.response.v1"},"status":{"const":"error"},"error":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string","maxLength":100},"message":{"type":"string","maxLength":300}}}}},"InvoiceMatchingStatus":{"type":"object","additionalProperties":false,"required":["status_version","service_id","ready","reason","price","limits","retention","policy","settlement_proven","endpoints"],"properties":{"status_version":{"const":"ardaro.invoice-matching.service-status.v1"},"service_id":{"const":"ardaro.invoice_matching"},"ready":{"type":"boolean"},"reason":{"enum":["ready","launch_gated","dependency_unavailable"]},"price":{"type":"object","additionalProperties":false,"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"},"amount_atomic":{"const":"500000"},"currency":{"const":"USDC"},"network":{"enum":["eip155:8453","eip155:84532"]},"display":{"const":"$0.50"},"failed_input_validation_charged":{"const":false},"same_payment_identifier_replay_requires_new_payment":{"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."}}},"limits":{"type":"object","additionalProperties":false,"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_invoice_line_items":{"const":100},"max_purchase_order_line_items":{"const":100},"max_response_bytes":{"const":1048576},"max_mcp_response_bytes":{"const":2097152},"supported_currencies":{"const":["AUD","CAD","EUR","GBP","JPY","MXN","USD"]}}},"retention":{"type":"object","additionalProperties":false,"required":["raw_documents_persisted","in_process_result_cache_seconds","payment_metadata_retention_seconds","sales_accounting"],"properties":{"raw_documents_persisted":{"const":false},"in_process_result_cache_seconds":{"type":"integer","minimum":1,"maximum":86400},"payment_metadata_retention_seconds":{"type":"integer","minimum":86400,"maximum":315360000},"sales_accounting":{"const":"Content-free pseudonymous invoice sales are accounted for separately from receipt sales."}}},"policy":{"type":"object","additionalProperties":false,"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},"human_review_required":{"const":true},"financial_mutation_supported":{"const":false},"ardaro_saas_tenant_access":{"const":false},"ocr_supported":{"const":false},"delivery_verification_supported":{"const":false},"prior_invoice_reconciliation_supported":{"const":false},"tax_validation_supported":{"const":false},"document_authentication_supported":{"const":false}}},"settlement_proven":{"const":false},"endpoints":{"type":"object","additionalProperties":false,"required":["analyze","mcp","example","status"],"properties":{"analyze":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/v1/invoice-matching/analyze(?![\\s\\S])"},"mcp":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/mcp(?![\\s\\S])"},"example":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/agent-services/invoice-matching/example(?![\\s\\S])"},"status":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/agent-services/invoice-matching/status(?![\\s\\S])"}}}},"allOf":[{"if":{"properties":{"ready":{"const":true}}},"then":{"properties":{"reason":{"const":"ready"}}},"else":{"properties":{"reason":{"enum":["launch_gated","dependency_unavailable"]}}}}]},"InvoiceMatchingCatalogService":{"type":"object","additionalProperties":false,"required":["service_id","name","version","description","price","limits","retention","policy","endpoints","supported_input_types","schemas","status","mcp","support"],"properties":{"service_id":{"const":"ardaro.invoice_matching"},"name":{"const":"Ardaro Invoice Matching"},"version":{"const":"invoice-matching:1.0.0"},"description":{"const":"Compare one structured invoice and purchase order for human review. Check exact line references, quantities, unit prices and arithmetic; return source-linked discrepancies and explicit unknowns. No OCR, delivery verification, prior-invoice history, tax validation or financial posting."},"price":{"type":"object","additionalProperties":false,"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"},"amount_atomic":{"const":"500000"},"currency":{"const":"USDC"},"network":{"enum":["eip155:8453","eip155:84532"]},"display":{"const":"$0.50"},"failed_input_validation_charged":{"const":false},"same_payment_identifier_replay_requires_new_payment":{"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."}}},"limits":{"type":"object","additionalProperties":false,"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_invoice_line_items":{"const":100},"max_purchase_order_line_items":{"const":100},"max_response_bytes":{"const":1048576},"max_mcp_response_bytes":{"const":2097152},"supported_currencies":{"const":["AUD","CAD","EUR","GBP","JPY","MXN","USD"]}}},"retention":{"type":"object","additionalProperties":false,"required":["raw_documents_persisted","in_process_result_cache_seconds","payment_metadata_retention_seconds","sales_accounting"],"properties":{"raw_documents_persisted":{"const":false},"in_process_result_cache_seconds":{"type":"integer","minimum":1,"maximum":86400},"payment_metadata_retention_seconds":{"type":"integer","minimum":86400,"maximum":315360000},"sales_accounting":{"const":"Content-free pseudonymous invoice sales are accounted for separately from receipt sales."}}},"policy":{"type":"object","additionalProperties":false,"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},"human_review_required":{"const":true},"financial_mutation_supported":{"const":false},"ardaro_saas_tenant_access":{"const":false},"ocr_supported":{"const":false},"delivery_verification_supported":{"const":false},"prior_invoice_reconciliation_supported":{"const":false},"tax_validation_supported":{"const":false},"document_authentication_supported":{"const":false}}},"endpoints":{"type":"object","additionalProperties":false,"required":["analyze","mcp","example","status"],"properties":{"analyze":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/v1/invoice-matching/analyze(?![\\s\\S])"},"mcp":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/mcp(?![\\s\\S])"},"example":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/agent-services/invoice-matching/example(?![\\s\\S])"},"status":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/agent-services/invoice-matching/status(?![\\s\\S])"}}},"supported_input_types":{"const":["structured_invoice_and_purchase_order"]},"schemas":{"type":"object","additionalProperties":false,"required":["openapi","request_contract_version","response_contract_version"],"properties":{"openapi":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/invoice-matching/openapi\\.json(?![\\s\\S])"},"request_contract_version":{"const":"ardaro.agent-invoice-matching.request.v1"},"response_contract_version":{"const":"ardaro.agent-invoice-matching.response.v1"}}},"status":{"type":"object","additionalProperties":false,"required":["ready","source","mainnet_enabled","settlement_proven","bazaar_indexed"],"properties":{"ready":{"type":"boolean"},"source":{"enum":["ready","launch_gated","dependency_unavailable"]},"mainnet_enabled":{"type":"boolean"},"settlement_proven":{"const":false},"bazaar_indexed":{"const":false}},"allOf":[{"if":{"properties":{"ready":{"const":true}}},"then":{"properties":{"source":{"const":"ready"}}},"else":{"properties":{"source":{"enum":["launch_gated","dependency_unavailable"]}}}},{"if":{"properties":{"source":{"const":"launch_gated"}}},"then":{"properties":{"mainnet_enabled":{"const":false}}}}]},"mcp":{"type":"object","additionalProperties":false,"required":["endpoint","transport","payment_transport","tools"],"properties":{"endpoint":{"type":"string","minLength":1,"maxLength":600,"format":"uri","pattern":"^https?://[^/?#]+/mcp(?![\\s\\S])"},"transport":{"const":"streamable-http"},"payment_transport":{"const":"x402-mcp-v2"},"tools":{"const":["match_invoice","get_invoice_matching_example","get_invoice_matching_service_status"]}}},"support":{"type":"object","additionalProperties":false,"required":["email","url"],"properties":{"email":{"const":"support@getardaro.com"},"url":{"const":"https://getardaro.com/contact"}}}}},"InvoiceMatchingExample":{"type":"object","additionalProperties":false,"required":["example_version","synthetic_only","request","response","policy"],"properties":{"example_version":{"const":"ardaro.invoice-matching.example.v1"},"synthetic_only":{"const":true},"request":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","invoice","purchase_order"],"properties":{"contract_version":{"const":"ardaro.agent-invoice-matching.request.v1"},"invoice":{"oneOf":[{"type":"object","additionalProperties":false,"required":["currency","line_items","purchase_order_reference","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["JPY"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"},"po_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"}}}},"purchase_order_reference":{"type":"string","minLength":1,"maxLength":80},"subtotal":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"},"tax":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"},"total":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"}}},{"type":"object","additionalProperties":false,"required":["currency","line_items","purchase_order_reference","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","MXN"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"},"po_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"}}}},"purchase_order_reference":{"type":"string","minLength":1,"maxLength":80},"subtotal":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"},"tax":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"},"total":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"}}}]},"purchase_order":{"oneOf":[{"type":"object","additionalProperties":false,"required":["currency","line_items","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["JPY"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":26,"pattern":"^(?:0|[1-9][0-9]{0,25})(?![\\s\\S])"}}}}}},{"type":"object","additionalProperties":false,"required":["currency","line_items","reference","supplier_id"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":80},"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","MXN"]},"supplier_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"line_items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["description","line_id","quantity","unit","unit_price"],"properties":{"line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"description":{"type":"string","minLength":1,"maxLength":240},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"quantity":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])","not":{"pattern":"^0(?:\\.0+)?(?![\\s\\S])"}},"unit_price":{"type":"string","maxLength":19,"pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},"product_code":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"amount":{"type":"string","maxLength":29,"pattern":"^(?:0|[1-9][0-9]{0,25})(?:\\.[0-9]{1,2})?(?![\\s\\S])"}}}}}}]}},"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."},"response":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","status","result","identities"],"properties":{"contract_version":{"const":"ardaro.agent-invoice-matching.response.v1"},"status":{"const":"review_required"},"result":{"type":"object","additionalProperties":false,"required":["summary","document_checks","comparison_rows","purchase_order_line_summary","discrepancies","arithmetic","policy"],"properties":{"summary":{"type":"object","additionalProperties":false,"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"]},"invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"purchase_order_line_count":{"type":"integer","minimum":0,"maximum":100},"matched_invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"unmatched_invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"discrepancy_count":{"type":"integer","minimum":0,"maximum":1000},"unknown_check_count":{"type":"integer","minimum":0,"maximum":1000},"human_review_required":{"const":true},"delivery_verified":{"const":false},"payment_approved":{"const":false}}},"document_checks":{"type":"object","additionalProperties":false,"required":["currency_matches","supplier_matches","purchase_order_reference_matches"],"properties":{"currency_matches":{"type":"boolean"},"supplier_matches":{"type":"boolean"},"purchase_order_reference_matches":{"type":"boolean"}}},"comparison_rows":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"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":{"invoice_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"invoice_source":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},"purchase_order_line_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},{"type":"null"}]},"purchase_order_source":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},{"type":"null"}]},"match_method":{"enum":["unmatched","explicit_po_line_id","exact_product_code"]},"allocation_status":{"enum":["allocated","not_comparable","unmatched"]},"invoice_quantity":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"purchase_order_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"purchase_order_unit":{"anyOf":[{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},{"type":"null"}]},"invoice_unit_price":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"purchase_order_unit_price":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_currency":{"enum":["USD","EUR","GBP","CAD","AUD","MXN","JPY"]},"purchase_order_currency":{"enum":["USD","EUR","GBP","CAD","AUD","MXN","JPY"]},"unit_price_difference":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},{"type":"null"}]},"invoice_amount":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_invoice_amount":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"line_arithmetic_status":{"enum":["consistent","mismatch","unavailable"]},"discrepancy_codes":{"type":"array","minItems":0,"maxItems":20,"items":{"type":"string","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"]},"uniqueItems":true},"outcome":{"enum":["no_discrepancies","review_required"]}}}},"purchase_order_line_summary":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"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":{"purchase_order_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"purchase_order_source":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},"allocated_invoice_sources":{"type":"array","minItems":0,"maxItems":100,"items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"}},"ordered_quantity":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"allocated_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"uninvoiced_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"overbilled_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"status":{"enum":["not_comparable","not_invoiced","overbilled","fully_invoiced","partially_invoiced"]},"supplied_amount":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_amount":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"line_arithmetic_status":{"enum":["consistent","mismatch","unavailable"]}}}},"discrepancies":{"type":"array","minItems":0,"maxItems":1000,"items":{"type":"object","additionalProperties":false,"required":["code","severity","message","sources"],"properties":{"code":{"type":"string","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"]},"severity":{"enum":["error","warning"]},"message":{"type":"string","minLength":1,"maxLength":240},"sources":{"type":"array","minItems":1,"maxItems":101,"items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"}}}}},"arithmetic":{"type":"object","additionalProperties":false,"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":{"rounding_mode":{"const":"ROUND_HALF_UP"},"rounding_scope":{"const":"each_line_then_sum"},"invoice_currency_scale":{"enum":[0,2]},"purchase_order_currency_scale":{"enum":[0,2]},"invoice_line_amount_sum":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"invoice_supplied_line_amount_sum":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_subtotal":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_tax":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_total":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_invoice_total":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_subtotal_status":{"enum":["consistent","mismatch","unavailable"]},"invoice_total_status":{"enum":["consistent","mismatch","unavailable"]}}},"policy":{"type":"object","additionalProperties":false,"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":{"human_review_required":{"const":true},"stateless":{"const":true},"raw_documents_retained":{"const":false},"financial_posting_supported":{"const":false},"financial_posting_performed":{"const":false},"payment_approval_supported":{"const":false},"delivery_verification_supported":{"const":false},"model_calls":{"const":0},"identity_purpose":{"const":"deterministic_result_comparison_only"},"matching_rule":{"const":"explicit_po_line_id_else_unique_case_sensitive_product_code"},"quantity_scope":{"type":"string","minLength":1,"maxLength":300},"arithmetic_scope":{"type":"string","minLength":1,"maxLength":300},"supplier_scope":{"type":"string","minLength":1,"maxLength":300},"decision_scope":{"type":"string","minLength":1,"maxLength":300}}}}},"identities":{"type":"object","additionalProperties":false,"required":["analysis_result_identity"],"properties":{"analysis_result_identity":{"type":"string","pattern":"^res_[0-9a-f]{64}(?![\\s\\S])"}}}}},"policy":{"type":"object","additionalProperties":false,"required":["human_review_required","financial_posting_supported","payment_required"],"properties":{"human_review_required":{"const":true},"financial_posting_supported":{"const":false},"payment_required":{"const":false}}}}},"InvoiceMatchingPaidResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","status","result","identities"],"properties":{"contract_version":{"const":"ardaro.agent-invoice-matching.response.v1"},"status":{"const":"review_required"},"result":{"type":"object","additionalProperties":false,"required":["summary","document_checks","comparison_rows","purchase_order_line_summary","discrepancies","arithmetic","policy"],"properties":{"summary":{"type":"object","additionalProperties":false,"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"]},"invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"purchase_order_line_count":{"type":"integer","minimum":0,"maximum":100},"matched_invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"unmatched_invoice_line_count":{"type":"integer","minimum":0,"maximum":100},"discrepancy_count":{"type":"integer","minimum":0,"maximum":1000},"unknown_check_count":{"type":"integer","minimum":0,"maximum":1000},"human_review_required":{"const":true},"delivery_verified":{"const":false},"payment_approved":{"const":false}}},"document_checks":{"type":"object","additionalProperties":false,"required":["currency_matches","supplier_matches","purchase_order_reference_matches"],"properties":{"currency_matches":{"type":"boolean"},"supplier_matches":{"type":"boolean"},"purchase_order_reference_matches":{"type":"boolean"}}},"comparison_rows":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"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":{"invoice_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"invoice_source":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},"purchase_order_line_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},{"type":"null"}]},"purchase_order_source":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},{"type":"null"}]},"match_method":{"enum":["unmatched","explicit_po_line_id","exact_product_code"]},"allocation_status":{"enum":["allocated","not_comparable","unmatched"]},"invoice_quantity":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"purchase_order_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"purchase_order_unit":{"anyOf":[{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},{"type":"null"}]},"invoice_unit_price":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"purchase_order_unit_price":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_currency":{"enum":["USD","EUR","GBP","CAD","AUD","MXN","JPY"]},"purchase_order_currency":{"enum":["USD","EUR","GBP","CAD","AUD","MXN","JPY"]},"unit_price_difference":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?(?![\\s\\S])"},{"type":"null"}]},"invoice_amount":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_invoice_amount":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"line_arithmetic_status":{"enum":["consistent","mismatch","unavailable"]},"discrepancy_codes":{"type":"array","minItems":0,"maxItems":20,"items":{"type":"string","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"]},"uniqueItems":true},"outcome":{"enum":["no_discrepancies","review_required"]}}}},"purchase_order_line_summary":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"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":{"purchase_order_line_id":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"purchase_order_source":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"},"allocated_invoice_sources":{"type":"array","minItems":0,"maxItems":100,"items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"}},"ordered_quantity":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"allocated_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"uninvoiced_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"overbilled_quantity":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"unit":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])"},"status":{"enum":["not_comparable","not_invoiced","overbilled","fully_invoiced","partially_invoiced"]},"supplied_amount":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_amount":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"line_arithmetic_status":{"enum":["consistent","mismatch","unavailable"]}}}},"discrepancies":{"type":"array","minItems":0,"maxItems":1000,"items":{"type":"object","additionalProperties":false,"required":["code","severity","message","sources"],"properties":{"code":{"type":"string","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"]},"severity":{"enum":["error","warning"]},"message":{"type":"string","minLength":1,"maxLength":240},"sources":{"type":"array","minItems":1,"maxItems":101,"items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^/(?:invoice|purchase_order)(?:/[A-Za-z0-9_]+)*(?![\\s\\S])"}}}}},"arithmetic":{"type":"object","additionalProperties":false,"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":{"rounding_mode":{"const":"ROUND_HALF_UP"},"rounding_scope":{"const":"each_line_then_sum"},"invoice_currency_scale":{"enum":[0,2]},"purchase_order_currency_scale":{"enum":[0,2]},"invoice_line_amount_sum":{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},"invoice_supplied_line_amount_sum":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_subtotal":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_tax":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_total":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"computed_invoice_total":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^(?:0|[1-9][0-9]{0,27})(?:\\.[0-9]{1,12})?(?![\\s\\S])"},{"type":"null"}]},"invoice_subtotal_status":{"enum":["consistent","mismatch","unavailable"]},"invoice_total_status":{"enum":["consistent","mismatch","unavailable"]}}},"policy":{"type":"object","additionalProperties":false,"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":{"human_review_required":{"const":true},"stateless":{"const":true},"raw_documents_retained":{"const":false},"financial_posting_supported":{"const":false},"financial_posting_performed":{"const":false},"payment_approval_supported":{"const":false},"delivery_verification_supported":{"const":false},"model_calls":{"const":0},"identity_purpose":{"const":"deterministic_result_comparison_only"},"matching_rule":{"const":"explicit_po_line_id_else_unique_case_sensitive_product_code"},"quantity_scope":{"type":"string","minLength":1,"maxLength":300},"arithmetic_scope":{"type":"string","minLength":1,"maxLength":300},"supplier_scope":{"type":"string","minLength":1,"maxLength":300},"decision_scope":{"type":"string","minLength":1,"maxLength":300}}}}},"identities":{"type":"object","additionalProperties":false,"required":["analysis_result_identity","payment_identity"],"properties":{"analysis_result_identity":{"type":"string","pattern":"^res_[0-9a-f]{64}(?![\\s\\S])"},"payment_identity":{"type":"object","additionalProperties":false,"required":["protocol","reference","replayed"],"properties":{"protocol":{"const":"x402-v2"},"reference":{"type":"string","pattern":"^pay_[0-9a-f]{64}(?![\\s\\S])"},"replayed":{"type":"boolean"}}}}}}},"InvoiceMatchingGatewayError":{"type":"object","anyOf":[{"type":"object","additionalProperties":false,"required":["contract_version","status","error"],"properties":{"contract_version":{"const":"ardaro.agent-invoice-matching.response.v1"},"status":{"const":"error"},"error":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string","maxLength":100},"message":{"type":"string","maxLength":300}}}}},{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["contract_version","status","service","error"],"properties":{"contract_version":{"const":"ardaro.agent-receipt-intelligence.response.v1"},"status":{"const":"not_ready"},"service":{"const":"ardaro-receipt-intelligence"},"error":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string","minLength":1,"maxLength":80},"message":{"const":"Service is not ready."}}}}},{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string"}}}]}}}}