{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sap-commerce-cloud/json-schema/sap-commerce-cloud-customer-search-page-schema.json",
  "title": "CustomerSearchPage",
  "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/CustomerSearchPage",
  "type": "object",
  "properties": {
    "entries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomerSearchEntry"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "$defs": {
    "CustomerSearchEntry": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "description": "Customer email or UID"
        },
        "name": {
          "type": "string",
          "description": "Customer full name"
        },
        "customerId": {
          "type": "string",
          "description": "Customer ID"
        },
        "lastCartId": {
          "type": "string",
          "description": "ID of the customer's most recent cart"
        },
        "hasOrder": {
          "type": "boolean",
          "description": "Whether the customer has placed orders"
        }
      }
    },
    "Pagination": {
      "type": "object",
      "properties": {
        "currentPage": {
          "type": "integer",
          "description": "Current page number"
        },
        "pageSize": {
          "type": "integer",
          "description": "Number of results per page"
        },
        "totalPages": {
          "type": "integer",
          "description": "Total number of pages"
        },
        "totalResults": {
          "type": "integer",
          "description": "Total number of results"
        }
      }
    }
  }
}