{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-dynamics-365-sales/json-schema/microsoft-dynamics-365-sales-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-dynamics-365-sales-accounts-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "properties": {
    "accountid": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "accountnumber": {
      "type": "string"
    },
    "accountcategorycode": {
      "type": "integer"
    },
    "creditonhold": {
      "type": "boolean"
    },
    "revenue": {
      "type": "number",
      "format": "double"
    },
    "description": {
      "type": "string"
    },
    "address1_line1": {
      "type": "string"
    },
    "address1_city": {
      "type": "string"
    },
    "address1_country": {
      "type": "string"
    },
    "address1_latitude": {
      "type": "number",
      "format": "double"
    },
    "telephone1": {
      "type": "string"
    },
    "emailaddress1": {
      "type": "string"
    },
    "websiteurl": {
      "type": "string"
    },
    "primarycontactid@odata.bind": {
      "type": "string",
      "description": "Associate to existing contact via /contacts(guid)"
    },
    "createdon": {
      "type": "string",
      "format": "date-time"
    },
    "modifiedon": {
      "type": "string",
      "format": "date-time"
    }
  }
}