Skip to navigation

Agreement Document Dependents

View as Markdown

List the agreement documents belonging to one customer application.

Available to: All authenticated users

Environments: Demo, Live

Rate Limit: No endpoint-specific limit

Returns the AgreementDocument entities attached to a single customer application. Identify the application with the masterid query parameter (the CustomerApplication entity ID). The response contains one record per agreement prepared for that application.

Each record reports the application it belongs to (customerApplicationId), the template the document was generated from (agreementDocumentTemplateId), and the document’s language (locale). The timestamp field marks when the record was created, and signedTimestamp appears once the document has been signed — an unsigned document has no signedTimestamp, so you can use this endpoint to check which agreements are still outstanding for an application.

The platform creates these records when you call prepareAgreementDocuments for a customer application; you can’t create or modify them directly through the API. Pass their IDs to signAgreementDocuments as agreementIds when the applicant signs, and download the generated PDF with getAgreementDocument.

The endpoints that create and populate agreement documents — startCustomerApplication and prepareAgreementDocuments — are available on Live only, so you’ll typically query these records on the Live environment.

To fetch a single record by its entity ID, use agreementDocumentItem. To list the agreement documents for several applications in one call, use agreementDocumentLDependents.

Common Failure Scenarios

  • The masterid customer application doesn’t exist or isn’t accessible to the calling user (returns HTTP 404).
  • The access token is missing or invalid (returns HTTP 401).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

masteridlongRequired
CustomerApplication entity ID

Response

AgreementDocument
customerApplicationIdlong
timestampdatetime
agreementDocumentTemplateIdlong
idlongOptional
signedTimestampdatetimeOptional
localestringOptional<=64 characters