{
  "@context": "https://schema.org",
  "@type": "Dataset",
  "@id": "https://xn--82czbx2bczd4fl8a.online/agent-order/schema.json#ds",
  "name": "Order Schema",
  "dateModified": "2026-06-02T05:52:48.898Z",
  "order": {
    "type": "object",
    "required": [
      "orderId",
      "buyerId",
      "items",
      "total",
      "currency",
      "status"
    ],
    "properties": {
      "orderId": {
        "type": "string"
      },
      "rfqId": {
        "type": "string",
        "description": "Optional: source RFQ"
      },
      "quoteId": {
        "type": "string"
      },
      "buyerId": {
        "type": "string"
      },
      "items": {
        "type": "array",
        "items": {
          "type": "object"
        }
      },
      "subtotal": {
        "type": "number"
      },
      "vat": {
        "type": "number"
      },
      "shipping": {
        "type": "number"
      },
      "total": {
        "type": "number"
      },
      "currency": {
        "type": "string"
      },
      "status": {
        "type": "string",
        "enum": [
          "created",
          "paid",
          "in_progress",
          "ready",
          "shipped",
          "delivered",
          "cancelled",
          "refunded"
        ]
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      },
      "paymentMethod": {
        "type": "string",
        "enum": [
          "bank_transfer",
          "promptpay",
          "credit_card",
          "invoice_net30"
        ]
      },
      "shippingAddress": {
        "type": "object"
      }
    }
  }
}