{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trusteed-xyz/json-schema/trusteed-xyz-post-api-v1-rules-evaluate-request-schema.json",
  "title": "PostApiV1RulesEvaluateRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/trusteed-xyz-openapi-generated.yml#/components/schemas/PostApiV1RulesEvaluateRequest",
  "type": "object",
  "properties": {
    "agentTrustScore": {
      "type": "number",
      "description": "Agent trust score"
    },
    "orderContext": {
      "type": "object",
      "description": "Context of the order"
    },
    "orderContext.cartTotalCents": {
      "type": "number",
      "description": "Cart total in minor currency units"
    },
    "orderContext.currency": {
      "type": "string",
      "description": "Currency code"
    },
    "orderContext.itemCount": {
      "type": "number",
      "description": "Number of items in the cart"
    },
    "orderContext.lineItems": {
      "type": "array",
      "description": "Array of line‑item objects"
    },
    "orderContext.lineItems[].productId": {
      "type": "string",
      "description": "Product identifier"
    },
    "orderContext.lineItems[].quantity": {
      "type": "number",
      "description": "Quantity of the product"
    },
    "orderContext.cartAttributes": {
      "type": "object",
      "description": "Additional cart attributes"
    },
    "merchantPolicies": {
      "type": "object",
      "description": "Merchant policy overrides (empty in example)"
    }
  },
  "required": [
    "agentTrustScore",
    "orderContext",
    "orderContext.cartTotalCents",
    "orderContext.currency",
    "orderContext.itemCount",
    "orderContext.lineItems",
    "orderContext.lineItems[].productId",
    "orderContext.lineItems[].quantity"
  ]
}