{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-account-rest10-schema.json",
  "title": "Account",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-1-0-accounts-api-openapi.yml#/components/schemas/AccountRest10",
  "properties": {
    "type": {
      "type": "string",
      "description": "The asset's type in Eloqua. This is a read-only property."
    },
    "id": {
      "type": "string",
      "readOnly": true,
      "description": "Id of the account. This is a read-only property."
    },
    "currentStatus": {
      "type": "string",
      "description": "The account's current status."
    },
    "name": {
      "type": "string",
      "description": "The name of the account."
    },
    "description": {
      "type": "string",
      "description": "The description of the account."
    },
    "permissions": {
      "type": "string",
      "description": "The permissions for the account granted to your current instance. This is a read-only property."
    },
    "createdBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user who created the account."
    },
    "createdAt": {
      "type": "string",
      "readOnly": true,
      "description": "The date and time the account was created, expressed in Unix time."
    },
    "updatedBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user that last updated the account."
    },
    "updatedAt": {
      "type": "string",
      "readOnly": true,
      "description": "Unix timestamp for the date and time the account was last updated."
    },
    "depth": {
      "type": "string",
      "readOnly": true,
      "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. Any other values passed are reset to <code>complete</code> by default. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
    },
    "fieldValues": {
      "type": "array",
      "description": "Array containing <code>type</code> and <code>id</code> values for all of the accountFields associated with a given account.",
      "items": {
        "$ref": "#/$defs/FieldValueRest10"
      }
    },
    "address1": {
      "type": "string",
      "description": "The account's first address."
    },
    "address2": {
      "type": "string",
      "description": "The account's second address."
    },
    "address3": {
      "type": "string",
      "description": "The account's third address."
    },
    "city": {
      "type": "string",
      "description": "The account's city."
    },
    "province": {
      "type": "string",
      "description": "The account's province."
    },
    "postalCode": {
      "type": "string",
      "description": "The account's postal code."
    },
    "country": {
      "type": "string",
      "description": "The account's country."
    },
    "businessPhone": {
      "type": "string",
      "description": "The account's business phone number."
    },
    "crmSystemMappings": {
      "type": "array",
      "description": "Lists CRM Users linked to the Account. Each <code>crmSystemMappings</code> contains a <code>type</code>, <code>CRMUsername</code>(s), and Eloqua <code>loginName</code> values for all of the Eloqua Users linked to the Account.\n\nThis property is only returned if Eloqua Users are linked to the Account. For instructions on how to link Eloqua Users to Accounts, refer to the <code>linkUsers</code> parameter in this <a href='https://docs.oracle.com/en/cloud/saas/marketing/eloqua-develop/index.html#CSHID=ImportExportParams'>tutorial</a>.\n\nThis property is also only returned when the request depth is <code>complete</code>.",
      "items": {
        "$ref": "#/$defs/CrmSystemMappingRest10"
      }
    }
  },
  "$defs": {
    "CrmSystemMappingRest10": {
      "title": "CrmSystemMapping",
      "properties": {
        "type": {
          "type": "string"
        },
        "id": {
          "type": "string",
          "readOnly": true
        },
        "currentStatus": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "permissions": {
          "type": "string"
        },
        "createdBy": {
          "type": "string",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "readOnly": true
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true
        },
        "depth": {
          "type": "string",
          "readOnly": true
        },
        "loginName": {
          "type": "string"
        },
        "MSDUserName": {
          "type": "string"
        },
        "SFDCUserName": {
          "type": "string"
        },
        "SODUserName": {
          "type": "string"
        }
      }
    },
    "FieldValueRest10": {
      "title": "FieldValue",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property."
        },
        "value": {
          "type": "string",
          "description": "The value to set the corresponding field id to. Date values must be submitted as a unix timestamp."
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "The id of the field to be set to the corresponding value."
        }
      }
    }
  }
}