{
  "@context": "https://schema.org",
  "@type": "Dataset",
  "@id": "https://xn--82czbx2bczd4fl8a.online/agent-invoice/schema.json#ds",
  "name": "Invoice Schema (Schema.org Invoice + Thai RD e-Tax compatible)",
  "dateModified": "2026-06-02T05:52:48.898Z",
  "invoice": {
    "@type": "Invoice",
    "required": [
      "identifier",
      "accountId",
      "totalPaymentDue",
      "paymentDueDate",
      "provider",
      "customer"
    ],
    "properties": {
      "identifier": {
        "type": "string",
        "description": "Invoice number (RD-compliant)"
      },
      "accountId": {
        "type": "string",
        "description": "Order ID"
      },
      "customer": {
        "type": "object",
        "properties": {
          "name": "string",
          "taxId": "string",
          "address": "object"
        }
      },
      "provider": {
        "@type": "Organization",
        "name": "Thai Notary Law & Service Co., Ltd.",
        "taxID": "0405565001923"
      },
      "totalPaymentDue": {
        "type": "object",
        "properties": {
          "price": "number",
          "priceCurrency": "string"
        }
      },
      "paymentDueDate": {
        "type": "string",
        "format": "date"
      },
      "paymentStatus": {
        "type": "string",
        "enum": [
          "PaymentDue",
          "PaymentComplete",
          "PaymentPastDue"
        ]
      },
      "referencesOrder": {
        "type": "object"
      },
      "pdfUrl": {
        "type": "string",
        "format": "uri"
      },
      "xmlUrl": {
        "type": "string",
        "format": "uri",
        "description": "RD e-Tax XML"
      },
      "signedHash": {
        "type": "string",
        "description": "SHA-256 of signed XML"
      }
    }
  }
}