{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-dynamics-365-business-central/json-schema/microsoft-dynamics-365-business-central-customer-collection-schema.json",
  "title": "CustomerCollection",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-dynamics-365-business-central-customers-api-openapi.yml#/components/schemas/CustomerCollection",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Customer"
      }
    }
  },
  "$defs": {
    "Customer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "number": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "Company",
            "Person"
          ]
        },
        "addressLine1": {
          "type": "string"
        },
        "addressLine2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "phoneNumber": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "website": {
          "type": "string"
        },
        "taxLiable": {
          "type": "boolean"
        },
        "taxAreaId": {
          "type": "string",
          "format": "uuid"
        },
        "currencyId": {
          "type": "string",
          "format": "uuid"
        },
        "currencyCode": {
          "type": "string"
        },
        "paymentTermsId": {
          "type": "string",
          "format": "uuid"
        },
        "shipmentMethodId": {
          "type": "string",
          "format": "uuid"
        },
        "paymentMethodId": {
          "type": "string",
          "format": "uuid"
        },
        "blocked": {
          "type": "string"
        },
        "lastModifiedDateTime": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}