# Concord

> Read agreements, versions, and approval workflows.

App · 15 actions. Web page: https://docs.lodol.com/docs/integrations/concord

## Actions

### Get agreement metadata

Get agreement metadata.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "accessFromRole": true,
    "bookmarked": true,
    "canRename": true,
    "description": "example",
    "inboxed": true,
    "lastAccessAt": 1,
    "organization": {
      "id": 1,
      "name": "example"
    },
    "read": true,
    "signedNegotiation": {
      "originator": {
        "id": 1,
        "name": "example"
      },
      "uid": {}
    },
    "source": {
      "fromTemplate": true
    },
    "status": "example",
    "tags": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "title": "example",
    "trackChanges": true,
    "trashed": true
  }
}
```

### Get an agreement summary

Get an agreement summary.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.
- Source (`source`, text): Summary source. One of: `DEFAULT`, `AI`.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "agreementCategory": "SUPPLIER",
    "agreementUid": "example",
    "clauses": [
      {
        "deadline": 1,
        "eventDuration": "example",
        "financialData": {},
        "id": "example",
        "lengthUnit": "example",
        "lengthValue": 1,
        "periodCustomEnd": 1,
        "periodCustomStart": 1,
        "periodType": "example",
        "periodUnit": "example",
        "periodValue": 1,
        "title": "example"
      }
    ],
    "customDocumentType": "example",
    "description": "example",
    "documentType": "CHANGE_ORDER",
    "endclauses": [
      {
        "afterRenewalAutoGenerate": true,
        "afterRenewalCustomStartDate": 1,
        "afterRenewalDeadline": 1,
        "afterRenewalDurationUnit": "example",
        "afterRenewalDurationValue": 1,
        "afterRenewalEvent": "example",
        "autoGenerated": true,
        "contractRenewalType": "example",
        "customStartDate": 1,
        "deadline": 1,
        "earlyTerminationNoticePeriodUnit": "example",
        "earlyTerminationNoticePeriodValue": 1,
        "eventDuration": "example",
        "id": "example",
        "lengthUnit": "example",
        "lengthValue": 1,
        "nextEndClauseId": "example",
        "noticePeriodUnit": "example",
        "noticePeriodValue": 1,
        "periodCustomEnd": 1,
        "periodCustomStart": 1,
        "periodType": "example",
        "periodUnit": "example",
        "periodValue": 1,
        "previousEndClauseId": "example",
        "renewalCountRemaining": 1,
        "startDate": 1,
        "title": "example"
      }
    ],
    "lifecycle": {
      "calculatedEnd": 1,
      "effect": {
        "date": "example",
        "type": "example"
      },
      "signatureDate": 1,
      "signatureDateUnknown": true,
      "terminate": true,
      "termination": {
        "atEnd": true,
        "date": 1,
        "nofifiedBy": {},
        "notifiedAt": 1
      }
    },
    "links": [
      {
        "id": 1,
        "owner": {},
        "permissions": [
          "example"
        ],
        "target": {},
        "type": "example"
      }
    ],
    "organizationId": 1,
    "signedwithlabels": [
      "example"
    ],
    "totalAgreementValue": {
      "description": "example",
      "value": {
        "amount": 1,
        "currency": "example"
      }
    }
  }
}
```

### Get an agreement’s folder path

Get an agreement’s folder path.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "access": {
      "allUserInOrganizationAccess": true,
      "invitations": [
        {}
      ],
      "teams": [
        {}
      ],
      "users": [
        {}
      ]
    },
    "children": [
      {
        "access": {},
        "children": [
          {}
        ],
        "documentCount": 1,
        "id": 1,
        "isBookmarked": true,
        "name": "example",
        "parentId": 1
      }
    ],
    "documentCount": 1,
    "id": 1,
    "isBookmarked": true,
    "name": "example",
    "parentId": 1
  }
}
```

### Get an approval workflow

Get an approval workflow.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "autoNotificationEnabled": true,
    "blockShare": true,
    "blockThirdPartySignature": true,
    "organizationApprovalId": 1,
    "organizationApprovalTitle": "example",
    "rules": [
      {
        "active": true,
        "conditions": [
          {}
        ],
        "id": 1,
        "requestSent": true,
        "status": "REFUSED",
        "type": "ONE",
        "validations": [
          {}
        ]
      }
    ],
    "status": "REFUSED"
  }
}
```

### Get the latest agreement version

Get the latest agreement version.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "comments": [
      {
        "commentedText": "example",
        "createdAt": 1,
        "createdBy": {},
        "displayVersion": "example",
        "reply": [
          {}
        ],
        "resolved": true,
        "text": "example",
        "uuid": "example",
        "version": 1,
        "visibility": "example",
        "wordData": {}
      }
    ],
    "content": "example",
    "creation": {
      "creator": {
        "active": true,
        "id": 1,
        "job": "example",
        "organization": {},
        "user": {}
      },
      "date": 1
    },
    "fields": [
      {
        "locked": true,
        "options": [
          {}
        ],
        "organizationFieldItem": {},
        "placeholder": "example",
        "required": true,
        "reservation": {},
        "type": "TEXT",
        "uuid": "example",
        "values": [
          "example"
        ]
      }
    ],
    "fillableFields": true,
    "pdf": true,
    "pdfFields": [
      {
        "font": {},
        "locked": true,
        "name": "example",
        "placeholder": "example",
        "position": {},
        "type": "example",
        "uuid": "example",
        "value": "example"
      }
    ],
    "pdfFieldsInstances": [
      {
        "font": {},
        "name": "example",
        "position": {},
        "uuid": "example"
      }
    ],
    "signatureFields": [
      {
        "itemId": 1,
        "name": "example",
        "page": 1,
        "x": 1,
        "y": 1
      }
    ],
    "style": "example",
    "trackChanges": [
      {
        "agreementUid": "example",
        "amendments": [
          {}
        ],
        "changeId": "example",
        "createdAt": 1,
        "createdBy": {},
        "displayVersion": "example",
        "modifiedAt": 1,
        "modifiedBy": {},
        "status": "example",
        "text": "example",
        "type": "example",
        "version": 1,
        "wordData": {}
      }
    ],
    "type": "HTML",
    "uuid": "example",
    "version": 1,
    "visibility": "example"
  }
}
```

### Get your account

Get your account.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "authorities": [
      "example"
    ],
    "contact": {
      "cellphone": {
        "cellphone": "example",
        "cellphone_code": 1
      },
      "workphone": {
        "workphone": "example",
        "workphone_code": 1
      }
    },
    "createdAt": 1,
    "currentOrganizationId": 1,
    "email": "example",
    "extern": true,
    "fullName": "example",
    "hasAcceptedTerms": true,
    "hasPassword": true,
    "hasPicture": true,
    "id": 1,
    "name": "example",
    "newUserId": "example",
    "passwordCompliant": true,
    "passwordExpired": true,
    "pictures": {
      "normal": "example",
      "small": "example",
      "special": "example"
    },
    "timezone": "example"
  }
}
```

### List agreement attachments

List agreement attachments.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "attachments": [
      {
        "canRemoveFromCopy": true,
        "createdAt": "example",
        "createdBy": {},
        "data": "example",
        "description": "example",
        "fileName": "example",
        "hasPreview": true,
        "id": "example",
        "inherited": true,
        "name": "example",
        "origin": "example",
        "uid": {},
        "url": "example"
      }
    ]
  }
}
```

### List agreement comments

List agreement comments.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "a6822b5b9e8d87a3d67d50d01b95394d": {
      "commentedText": "example",
      "createdAt": 1,
      "createdBy": {
        "hasPicture": true,
        "id": 1,
        "name": "example",
        "pictures": {}
      },
      "displayVersion": "example",
      "reply": [
        {}
      ],
      "resolved": true,
      "text": "example",
      "uuid": "example",
      "version": 1,
      "visibility": "example",
      "wordData": {
        "author": "example",
        "date": "example"
      }
    }
  }
}
```

### List agreement folders

List agreement folders.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "access": {
      "allUserInOrganizationAccess": true,
      "invitations": [
        {}
      ],
      "teams": [
        {}
      ],
      "users": [
        {}
      ]
    },
    "children": [
      {
        "access": {},
        "children": [
          {}
        ],
        "documentCount": 1,
        "id": 1,
        "isBookmarked": true,
        "name": "example",
        "parentId": 1
      }
    ],
    "documentCount": 1,
    "id": 1,
    "isBookmarked": true,
    "name": "example",
    "parentId": 1
  }
}
```

### List agreement members

List agreement members.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (list): The response from Concord.

**Example output**

```json
{
  "data": [
    {}
  ]
}
```

### List agreement summary fields

List agreement summary fields.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "fields": [
      {
        "id": 1,
        "name": "example",
        "value": "example"
      }
    ]
  }
}
```

### List agreement versions

List agreement versions.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, text, required): Agreement UID.

**Outputs**

- `data` (list): The response from Concord.

**Example output**

```json
{
  "data": [
    {
      "comment": "example",
      "date": 1,
      "displayVersion": "example",
      "id": 1,
      "organization": {
        "id": 1,
        "name": "example"
      },
      "pdf": true,
      "type": "HTML",
      "user": {
        "email": "example",
        "hasMfa": true,
        "hasPicture": true,
        "id": 1,
        "job": "example",
        "name": "example",
        "pictures": {}
      },
      "version": 1,
      "visibility": "COMPANY"
    }
  ]
}
```

### List agreements

List agreements.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Page (`page`, number): The page to display.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "accessFromRole": true,
        "accessOrganizationId": 1,
        "accessType": "DIRECT",
        "createdAt": 1,
        "createdBy": 1,
        "createdByIsActive": true,
        "createdByName": "example",
        "description": "example",
        "documentType": "HTML",
        "endDate": 1,
        "endDateUnknown": true,
        "fields": [
          {}
        ],
        "folderId": 1,
        "hasSigned": true,
        "isBookmarked": true,
        "isInboxed": true,
        "modifiedAt": 1,
        "mustValidate": true,
        "organizationId": 1,
        "organizationName": "example",
        "properties": [
          {}
        ],
        "signatureCount": 1,
        "signatureDate": 1,
        "signatureDateUnknown": true,
        "signatureProvider": "CONCORD",
        "signatureRequired": 1,
        "status": "example",
        "tags": [
          {}
        ],
        "title": "example",
        "unread": true,
        "uuid": {},
        "validated": true,
        "validationCount": 1,
        "validationRequired": 1
      }
    ],
    "numberOfItems": 1,
    "numberOfItemsByPage": 1,
    "page": 1,
    "result": "example",
    "total": 1,
    "totalInvitations": 1
  }
}
```

### List fields in the latest agreement version

List fields in the latest agreement version.

**Inputs**

- Organization (`organization_id`, number, required): Organization ID
- Agreement ID (`agreement_id`, object, required): Agreement unique identifier
- Context (`context`, text): Context for field validation (e.g. INTAKE_FORMS). One of: `INTAKE_FORMS` (Intake forms).
- Autosave (`autosave`, true/false): Whether to autosave the changes

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "agreementUid": "example",
    "fields": [
      {
        "locked": true,
        "options": [
          {}
        ],
        "organizationFieldItem": {},
        "placeholder": "example",
        "required": true,
        "reservation": {},
        "type": "TEXT",
        "uuid": "example",
        "values": [
          "example"
        ]
      }
    ]
  }
}
```

### List organizations

List organizations.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Concord.

**Example output**

```json
{
  "data": {
    "organizations": [
      {
        "activeBilling": true,
        "billingOverview": true,
        "createdAt": 1,
        "id": 1,
        "isLegacy": true,
        "isParent": true,
        "isSubsidiary": true,
        "migrationWave": "example",
        "name": "example",
        "newOrganizationId": "example",
        "parentId": 1,
        "subscription": "FREE",
        "subsidiaries": [
          {}
        ],
        "user": {}
      }
    ]
  }
}
```
