{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/accounting-api-invoice-structure.json", "name": "Invoice", "description": "An invoice from a connected accounting system.", "type": "object", "properties": { "id": { "type": "uuid" }, "remote_id": { "type": "string" }, "type": { "type": "string", "enum": ["ACCOUNTS_RECEIVABLE", "ACCOUNTS_PAYABLE"] }, "contact": { "type": "uuid" }, "number": { "type": "string" }, "issue_date": { "type": "datetime" }, "due_date": { "type": "datetime" }, "paid_on_date": { "type": "datetime" }, "memo": { "type": "string" }, "currency": { "type": "string" }, "total_discount": { "type": "double" }, "sub_total": { "type": "double" }, "total_tax_amount": { "type": "double" }, "total_amount": { "type": "double" }, "balance": { "type": "double" }, "status": { "type": "string", "enum": ["DRAFT", "SUBMITTED", "PARTIALLY_PAID", "PAID", "OVERDUE", "VOIDED"] }, "remote_was_deleted": { "type": "boolean" } } }