{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/agave/refs/heads/main/json-schema/unified-api-invoice-schema.json", "title": "Invoice", "description": "An accounts payable invoice.", "type": "object", "properties": { "id": { "type": "string", "description": "Invoice identifier.", "example": "inv-667788" }, "project_id": { "type": "string", "description": "Associated project identifier.", "example": "proj-500123" }, "vendor_id": { "type": "string", "description": "Vendor who issued the invoice.", "example": "ven-334455" }, "invoice_number": { "type": "string", "description": "Vendor invoice number.", "example": "INV-2025-1042" }, "amount": { "type": "number", "description": "Invoice total amount in USD.", "example": 85000.0 }, "status": { "type": "string", "description": "Invoice processing status.", "enum": [ "draft", "submitted", "approved", "paid", "rejected" ], "example": "approved" }, "invoice_date": { "type": "string", "format": "date", "description": "Invoice date.", "example": "2025-03-01" }, "due_date": { "type": "string", "format": "date", "description": "Invoice due date.", "example": "2025-03-31" } } }