Agreement Document Items
Retrieve several agreement documents by ID.
Available to: Traders (own records); organization administrators (any user in their organization)
Environments: Demo, Live
Rate Limit: No endpoint-specific limit
Retrieve multiple agreement documents by id in a single call. Prefer this over repeated agreementDocumentItem calls when you need to resolve several IDs at once. Each record belongs to one customer application (customerApplicationId) and carries the agreementDocumentTemplateId of the template it was generated from and a timestamp for when it was created. Where set, signedTimestamp records when the document was signed (a document without one is still unsigned), and locale marks a localized copy; the default-language document has no locale. Documents generated from templates for administrator use only aren’t returned. Documents from templates flagged personalGuarantor also aren’t returned for an entity application that names a separate personal guarantor, until that guarantor signs.
Calling prepareAgreementDocuments for a customer application creates these records; you can’t create or change them directly through the API. Pass their IDs to signAgreementDocuments as agreementIds when the applicant signs, and download the stored PDF with getAgreementDocument.
prepareAgreementDocuments, signAgreementDocuments, and getAgreementDocument are available on Live only, so you’ll typically query these records on Live.Common Failure Scenarios
- An ID in
idsthat doesn’t match an agreement document, or matches one you can’t access, is left out of the response array. The call still succeeds, so compare the returned records against the IDs you requested. - The
idsparameter is missing or repeated (HTTP 404), or contains a value that isn’t a number (HTTP 500). - The caller’s user type, or the API key’s permissions, can’t read agreement documents. This returns
HTTP 401with"Access is denied".
Error Messages
Related Endpoints
- Use
agreementDocumentItemto resolve a single agreement document. - Use
agreementDocumentLDependentsto retrieve the agreement documents for several customer applications.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.