{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financekey/json-schema/financekey-finance-key-entity-business-partner-pkg-v-business-partner-contact-schema.json",
  "title": "FinanceKey.Entity.BusinessPartnerPkg.v_BusinessPartnerContact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financekey-business-partners-api-openapi.yml#/components/schemas/FinanceKey.Entity.BusinessPartnerPkg.v_BusinessPartnerContact",
  "required": [
    "businessPartnerName",
    "email",
    "firstname",
    "fullname",
    "lastname"
  ],
  "type": "object",
  "properties": {
    "createdById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that created the initial record.",
      "format": "int32",
      "readOnly": true
    },
    "createdOn": {
      "type": "string",
      "description": "The date and time the record was initially created.",
      "format": "date-time",
      "readOnly": true
    },
    "updatedById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that last modified the record.",
      "format": "int32",
      "readOnly": true
    },
    "updateOn": {
      "type": "string",
      "description": "The date and time the record was last modified.",
      "format": "date-time",
      "readOnly": true
    },
    "closedById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that deactivated and closed the record.",
      "format": "int32",
      "readOnly": true
    },
    "closedOn": {
      "type": "string",
      "description": "The date and time the record is to be considered as inactive and closed.",
      "format": "date-time",
      "readOnly": true
    },
    "active": {
      "type": "boolean",
      "description": "A flag that shows if the record is currently active. This values is calculated based on the current date and the record closed date.",
      "readOnly": true
    },
    "rowVersion": {
      "type": [
        "string",
        "null"
      ],
      "description": "A unique version stamp of the record.",
      "format": "byte",
      "readOnly": true
    },
    "sessionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The identity of the session that last modified the record.",
      "readOnly": true
    },
    "contactId": {
      "type": "integer",
      "description": "The ContactId field is an integer primary key used to uniquely identify individual business partners' contact information within the BusinessPartnerContact table. It acts as a unique identifier and is a required field for every entry in the table.",
      "format": "int32"
    },
    "lastname": {
      "minLength": 1,
      "type": "string",
      "description": "The Lastname field of data type nvarchar in the BusinessPartnerContact table stores the last name of a business partner contact associated with the business partner."
    },
    "firstname": {
      "minLength": 1,
      "type": "string",
      "description": "The firstname field of nvarchar data type in the BusinessPartnerContact table stores the given name of the business partner associated with the record."
    },
    "email": {
      "minLength": 1,
      "type": "string",
      "description": "Email is an nvarchar field which stores email addresses associated with a particular business partner's contact information in the BusinessPartnerContact table."
    },
    "fullname": {
      "minLength": 1,
      "type": "string",
      "description": "The Fullname field of data type nvarchar in the BusinessPartnerContact table stores the full name of each contact associated with a business partner. It accepts up to 50 characters, including letters, numbers and special characters."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Name of data type nvarchar field in the BusinessPartnerContact table is a variable-length string data type that stores up to 4000 characters of data and is used to store contact name information for each business partner in the system."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "The BusinessPartnerContact table contains a Description field of type nvarchar, which is a variable length string data type that stores Unicode character string data up to 4,000 characters. This Description field is used to provide a more detailed description of a business partner contact, such as their job title, contact information, or any additional information that is not captured by the table's other fields."
    },
    "parentId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The ParentId field of data type int in the BusinessPartnerContact table is a foreign key used to identify the parent business partner associated with each contact. It is used to link the contact record with the associated business partner and enables quick lookup of the parent business partner’s information.",
      "format": "int32"
    },
    "businessPartnerName": {
      "minLength": 1,
      "type": "string",
      "description": "The BusinessPartnerName field of data type nvarchar in the BusinessPartnerContact table is used to store the name of the business partner associated with a contact. This field holds up to 255 characters and is used in conjunction with other fields in the BusinessPartnerContact table to identify and access associated information."
    },
    "photoImage": {
      "type": [
        "string",
        "null"
      ],
      "description": "The PhotoImage field of datatype nvarchar in the BusinessPartnerContact table stores the path of a photo used to identify the contact associated with a business partner."
    }
  },
  "additionalProperties": false
}