{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/unified-to/refs/heads/main/json-schema/unified-to-accounting-transaction-schema.json",
  "title": "AccountingTransaction",
  "description": "AccountingTransaction schema from Unified.to API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "memo": {
      "type": "string"
    },
    "total_amount": {
      "type": "number"
    },
    "tax_amount": {
      "type": "number"
    },
    "account_id": {
      "type": "string"
    },
    "reference": {
      "type": "string"
    },
    "sub_total_amount": {
      "type": "number"
    },
    "split_account_id": {
      "type": "string"
    },
    "payment_method": {
      "type": "string"
    },
    "payment_terms": {
      "type": "string"
    },
    "customer_message": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "lineitems": {
      "$ref": "#/components/schemas/property_AccountingTransaction_lineitems"
    },
    "currency": {
      "type": "string"
    },
    "contacts": {
      "$ref": "#/components/schemas/property_AccountingTransaction_contacts"
    },
    "organization_id": {
      "type": "string"
    },
    "raw": {
      "type": "object",
      "additionalProperties": true
    }
  }
}