{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sap-commerce-cloud/json-schema/sap-commerce-cloud-odata-customer-collection-schema.json",
  "title": "ODataCustomerCollection",
  "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/ODataCustomerCollection",
  "type": "object",
  "properties": {
    "d": {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IntegrationCustomer"
          }
        }
      }
    }
  },
  "$defs": {
    "IntegrationCustomer": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "description": "Customer unique identifier"
        },
        "name": {
          "type": "string",
          "description": "Customer full name"
        },
        "customerID": {
          "type": "string",
          "description": "Customer ID"
        },
        "addresses": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "streetname": {
                "type": "string"
              },
              "streetnumber": {
                "type": "string"
              },
              "postalcode": {
                "type": "string"
              },
              "town": {
                "type": "string"
              },
              "country": {
                "type": "string"
              }
            }
          },
          "description": "Customer addresses"
        },
        "integrationKey": {
          "type": "string",
          "description": "Unique integration key"
        }
      }
    }
  }
}