{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-account-rest20-schema.json",
  "title": "Account",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-2-0-accounts-api-openapi.yml#/components/schemas/AccountRest20",
  "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": "array",
      "description": "The permissions for the account granted to your current instance. This is a read-only property.",
      "items": {
        "type": "string"
      }
    },
    "folderId": {
      "type": "string",
      "readOnly": true,
      "description": "The folder id of the folder which contains the account."
    },
    "sourceTemplateId": {
      "type": "string",
      "description": "Id of the template used to create the asset."
    },
    "createdBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user who created the account."
    },
    "createdByName": {
      "type": "string",
      "description": "The name 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."
    },
    "updatedByName": {
      "type": "string",
      "description": "The name of the user who last updated the account."
    },
    "updatedAt": {
      "type": "string",
      "readOnly": true,
      "description": "Unix timestamp for the date and time the account was last updated."
    },
    "scheduledFor": {
      "type": "string",
      "readOnly": true,
      "description": "The date the account is scheduled."
    },
    "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>."
    },
    "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."
    },
    "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/FieldValueRest20"
      }
    },
    "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/CrmSystemMappingRest20"
      }
    }
  },
  "$defs": {
    "CrmSystemMappingRest20": {
      "title": "CrmSystemMapping",
      "properties": {
        "type": {
          "type": "string"
        },
        "id": {
          "type": "string",
          "readOnly": true
        },
        "currentStatus": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "permissions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "folderId": {
          "type": "string",
          "readOnly": true
        },
        "sourceTemplateId": {
          "type": "string"
        },
        "createdBy": {
          "type": "string",
          "readOnly": true
        },
        "createdByName": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "readOnly": true
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true
        },
        "updatedByName": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true
        },
        "scheduledFor": {
          "type": "string",
          "readOnly": true
        },
        "depth": {
          "type": "string",
          "readOnly": true
        },
        "loginName": {
          "type": "string"
        },
        "MSDUserName": {
          "type": "string"
        },
        "SFDCUserName": {
          "type": "string"
        },
        "SODUserName": {
          "type": "string"
        }
      }
    },
    "FieldValueRest20": {
      "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."
        },
        "name": {
          "type": "string",
          "description": "Name of the field value."
        }
      }
    }
  }
}