Pades

When an order is complete - that is, all have signed - you can download the signed documents in PAdES format. These will have the SDO attached and will be sealed.

Note! The output from these methods tends to be quite large.

Models used in the response:

DeliverablesDocumentModel
Name Type Description Optional
Id String Order Id.
DocumentIndex Int Index of document (zero based index). You must specify this, DocumentId or AgreementId. yes
DocumentId Int Id of document. You must specify this, DocumentIndex or AgreementId. yes
AgreementId String AgreementId of document. You must specify this, DocumentIndex or DocumentId. yes


DocumentResponseModel
Name Type Description Optional
DocumentId Int Document Id. Use this id in the signers DocumentIds list. yes
Title String Document title. If not set, defaults to filename. yes
Filename String Document filename.
DocumentFormat String Document format. Currently the only allowed value is Pdf.
DocumentData String Base64 encoded document.
CustomData String Any custom data set for this document.



Download

Description

Download a signed document in PAdES format. Specify either "DocumentIndex", "DocumentId" or "AgreementId", but only one of the values.

Synopsis

POST api.esignatur.dk/Pades/Download

JSON Input

{
  "Id": "1085735b-eee8-4143-b25a-d34b4134507f",
  "DocumentIndex": 0,
  "DocumentId": 1
}

JSON Output

{
  "DocumentId": 1,
  "Title": "Contract 1",
  "Filename": "Contract1.pdf",
  "DocumentData": "AAECAw=="
}