{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sap-commerce-cloud/json-schema/sap-commerce-cloud-customer360-data-schema.json",
  "title": "Customer360Data",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sap-commerce-cloud-customers-api-openapi.yml#/components/schemas/Customer360Data",
  "type": "object",
  "properties": {
    "overview": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Customer name"
        },
        "email": {
          "type": "string",
          "description": "Customer email"
        },
        "signedUpDate": {
          "type": "string",
          "format": "date-time",
          "description": "Registration date"
        },
        "address": {
          "type": "object",
          "properties": {
            "town": {
              "type": "string"
            },
            "country": {
              "type": "string"
            }
          }
        }
      }
    },
    "latestActivity": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Activity type"
        },
        "description": {
          "type": "string",
          "description": "Activity description"
        },
        "date": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "recentOrders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrderSummary"
      }
    },
    "activeCarts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CartSummary"
      }
    },
    "supportTickets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TicketSummary"
      }
    }
  },
  "$defs": {
    "CartSummary": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Cart code"
        },
        "totalItems": {
          "type": "integer",
          "description": "Number of items"
        },
        "total": {
          "type": "string",
          "description": "Formatted cart total"
        },
        "modified": {
          "type": "string",
          "format": "date-time",
          "description": "Last modification time"
        }
      }
    },
    "OrderSummary": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Order code"
        },
        "status": {
          "type": "string",
          "description": "Order status"
        },
        "total": {
          "type": "string",
          "description": "Formatted order total"
        },
        "placed": {
          "type": "string",
          "format": "date-time",
          "description": "Order placement date"
        }
      }
    },
    "TicketSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Ticket identifier"
        },
        "subject": {
          "type": "string",
          "description": "Ticket subject"
        },
        "status": {
          "type": "string",
          "description": "Ticket status"
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "Ticket creation date"
        }
      }
    }
  }
}