# Party

A party represents a legal entity in a [contract](oneflow-platform-glossary#contract). A contract can be signed between two types of parties or sides of the contract:

* [Owner-side party](oneflow-platform-glossary#owner-side-party)
* [Counterparty](oneflow-platform-glossary#counterparty).

> 📘 Note:
>
> You can add multiple parties to your contract; however, there can be at most 40 parties per contract.

## Owner-side party

The owner-side party is the party that created, and therefore owns, the contract.

Many actions and data points are available only to the owner-side party, such as deleting the contract and information about the counterparty participants.

> 🚧 Note:
>
> The owner-side party type is always [`company`](oneflow-platform-glossary#company) and cannot be [`individual`](oneflow-platform-glossary#individual).

The table below displays all the attributes available for the owner-side party.

| Attribute              | Type                                                              | Description                                                                                                                 |
| :--------------------- | :---------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------- |
| \_links                | [object](type-reference#base-types)                               | Contains links to endpoints associated with the parent object. See [Links](https://developer.oneflow.com/docs/links).                                      |
| \_private\_ownerside   | [object](type-reference#base-types)                               | Contains attributes that are visible only to the owner-side party. See [Private owner-side](#private-owner-side).           |
| country\_code          | [string(country\_code)](type-reference#base-types)                | The country code of the party.                                                                                              |
| id                     | [integer(signed\_integer\_id)](type-reference#subtypes-for-int)   | The ID of the party.                                                                                                        |
| identification\_number | [string](type-reference#base-types)                               | The unique organization number of the party.                                                                                |
| my\_party              | [boolean](type-reference#base-types)                              | Whether the party belongs to the [current user](oneflow-platform-glossary#user) or not.                                     |
| name                   | [string](type-reference#base-types)                               | The name of the owner-side party.                                                                                           |
| participants           | [array](type-reference#base-types) [\[Participant\]](participant) | The list of [participants](oneflow-platform-glossary#participant) in the owner side party. See  [Participant](participant). |
| type                   | [string(enum)](type-reference#base-types)                         | The owner-side party `type` attribute is always `company`.                                                                  |

### Private owner-side

The `_private_ownerside` object contains attributes that are only visible to the owner-side party.

| Attribute     | Type                                          | Description                                        |
| :------------ | :-------------------------------------------- | :------------------------------------------------- |
| created\_time | [string(datetime)](type-reference#base-types) | The date and time when the party was created.      |
| updated\_time | [string(datetime)](type-reference#base-types) | The date and time when the party was last updated. |

## Counterparty

Any party that is not the owner-side party is a counterparty.

There are two types of counterparties:

* **Individual** - a single participant who signs the contract on their own behalf.
* **Company** - one or more participants that sign the contract on behalf of a legal entity. This type of counterparty can be used by any company, organization, or government department.

### Individual

A contract party of the `individual` type has a single participant who signs the contract on their own behalf.\
The table below shows all attributes available for the `individual` counterparty.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Attribute
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        * links
      </td>

      <td>
        [object](type-reference#base-types)
      </td>

      <td>
        Contains links to endpoints associated with the parent object. See [Links](links#links).
      </td>
    </tr>

    <tr>
      <td>
        * private\_ownerside
      </td>

      <td>
        [object](type-reference#base-types)
      </td>

      <td>
        See [Private owner-side individual](#private-owner-side-individual).
      </td>
    </tr>

    <tr>
      <td>
        country\_code
      </td>

      <td>
        [string(country\_code)](type-reference#base-types)
      </td>

      <td>
        The country code of the `individual` party.
      </td>
    </tr>

    <tr>
      <td>
        id
      </td>

      <td>
        [integer(signed\_integer\_id)](type-reference#subtypes-for-int)
      </td>

      <td>
        The unique ID of the `individual` party.
      </td>
    </tr>

    <tr>
      <td>
        identification\_number
      </td>

      <td>
        [string](type-reference#base-types)
      </td>

      <td>
        The date of birth, SSN, personal ID or similar of the `individual` party.
      </td>
    </tr>

    <tr>
      <td>
        my\_party
      </td>

      <td>
        [boolean](type-reference#base-types)
      </td>

      <td>
        Whether the party belongs to the current user or not.
      </td>
    </tr>

    <tr>
      <td>
        name
      </td>

      <td>
        [string](type-reference#base-types)
      </td>

      <td>
        The name of the `individual`\
         party.
      </td>
    </tr>

    <tr>
      <td>
        participant
      </td>

      <td>
        [object](type-reference#base-types)
      </td>

      <td>
        The person who represents the contract party with the type `individual`. See [Participant](participant).
      </td>
    </tr>

    <tr>
      <td>
        type
      </td>

      <td>
        [string(enum)](type-reference#base-types)
      </td>

      <td>
        The string constant `individual`, which indicates that this `parties` member is an individual.
      </td>
    </tr>
  </tbody>
</Table>

#### Private owner-side individual

The `_private_ownerside` object of the `individual` party contains attributes visible only to the owner-side party.

| Attribute     | Type                                          | Description                                                   |
| :------------ | :-------------------------------------------- | :------------------------------------------------------------ |
| created\_time | [string(datetime)](type-reference#base-types) | The date and time when the `individual` party was created.    |
| updated\_time | [string(datetime)](type-reference#base-types) | The date and time when the individual party was last updated. |

### Company

The contract party with the `company` type is a legal entity involved in the contract. More than one participant can sign a contract on behalf of the party with the `company` type.

| Attribute              | Type                                                            | Description                                                                        |
| :--------------------- | :-------------------------------------------------------------- | :--------------------------------------------------------------------------------- |
| \_links                | [object](type-reference#base-types)                             | Contains links to endpoints associated with the parent object. See [Links](links). |
| \_private\_ownerside   | [object](type-reference#base-types)                             | See [Private owner-side company](#private-owner-side-company).                     |
| country\_code          | [string(country\_code)](type-reference#base-types)              | The country code of the contract party.                                            |
| id                     | [integer(signed\_integer\_id)](type-reference#subtypes-for-int) | The unique ID of the company.                                                      |
| identification\_number | [string](type-reference#base-types)                             | The date of birth, SSN, personal ID, or similar of a company.                      |
| my\_party              | [boolean](type-reference#base-types)                            | Whether the party belongs to the current user or not.                              |
| name                   | [string](type-reference#base-types)                             | The name of the company.                                                           |
| participants           | [array](type-reference#base-types)                              | The list of the contract party participants; see [Participant](participant).       |
| type                   | [string(enum)](type-reference#base-types)                       | The `type` is always `company`.                                                    |

#### Private owner-side company

The `_private_ownerside` object for the `company` party contains attributes visible only to the owner-side party.  The owner-side party is the party that created the contract.

| Attribute     | Type                                          | Description                                          |
| :------------ | :-------------------------------------------- | :--------------------------------------------------- |
| created\_time | [string(datetime)](type-reference#base-types) | The date and time when the company was created.      |
| updated\_time | [string(datetime)](type-reference#base-types) | The date and time when the company was last updated. |