GET api/documentgeneration/sackcontent/{sackReference}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sackReference

string

Required

Body Parameters

None.

Response Information

Resource Description

GeneratededSackDataContract
NameDescriptionTypeAdditional information
FriendlyName

string

None.

GroupedEnvelopeDataContracts

Collection of GroupedEnvelopeDataContract

None.

PreviewOnly

boolean

None.

EnvelopeTemplatePackId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "FriendlyName": "sample string 1",
  "GroupedEnvelopeDataContracts": [
    {
      "PersonName": "sample string 1",
      "EnvelopeDataContracts": [
        {
          "envelope": {
            "SackReference": "sample string 1",
            "Reference": "sample string 2",
            "FriendlyName": "sample string 3",
            "Letters": [
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              },
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              }
            ],
            "PropertyRoleIds": [
              1,
              2
            ],
            "GroupRoleIds": [
              1,
              2
            ],
            "OwnsRoleId": 4,
            "ParentGroupId": 1,
            "PersonId": 1,
            "ContainsPrintable": true,
            "IsEmailCompatible": true,
            "IsTextCompatible": true,
            "IsBymCompatible": true,
            "PersonName": "sample string 9",
            "OutputPdf": true,
            "Created": "2018-11-16T09:41:23.6337387Z",
            "Expires": "2018-11-16T09:41:23.6337387Z",
            "CreatedByWorkflow": true
          },
          "AlternateContactItemDataContract": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            }
          ]
        },
        {
          "envelope": {
            "SackReference": "sample string 1",
            "Reference": "sample string 2",
            "FriendlyName": "sample string 3",
            "Letters": [
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              },
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              }
            ],
            "PropertyRoleIds": [
              1,
              2
            ],
            "GroupRoleIds": [
              1,
              2
            ],
            "OwnsRoleId": 4,
            "ParentGroupId": 1,
            "PersonId": 1,
            "ContainsPrintable": true,
            "IsEmailCompatible": true,
            "IsTextCompatible": true,
            "IsBymCompatible": true,
            "PersonName": "sample string 9",
            "OutputPdf": true,
            "Created": "2018-11-16T09:41:23.6337387Z",
            "Expires": "2018-11-16T09:41:23.6337387Z",
            "CreatedByWorkflow": true
          },
          "AlternateContactItemDataContract": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            }
          ]
        }
      ]
    },
    {
      "PersonName": "sample string 1",
      "EnvelopeDataContracts": [
        {
          "envelope": {
            "SackReference": "sample string 1",
            "Reference": "sample string 2",
            "FriendlyName": "sample string 3",
            "Letters": [
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              },
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              }
            ],
            "PropertyRoleIds": [
              1,
              2
            ],
            "GroupRoleIds": [
              1,
              2
            ],
            "OwnsRoleId": 4,
            "ParentGroupId": 1,
            "PersonId": 1,
            "ContainsPrintable": true,
            "IsEmailCompatible": true,
            "IsTextCompatible": true,
            "IsBymCompatible": true,
            "PersonName": "sample string 9",
            "OutputPdf": true,
            "Created": "2018-11-16T09:41:23.6337387Z",
            "Expires": "2018-11-16T09:41:23.6337387Z",
            "CreatedByWorkflow": true
          },
          "AlternateContactItemDataContract": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            }
          ]
        },
        {
          "envelope": {
            "SackReference": "sample string 1",
            "Reference": "sample string 2",
            "FriendlyName": "sample string 3",
            "Letters": [
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              },
              {
                "Partition": 1,
                "Reference": "sample string 2",
                "Filename": "sample string 3",
                "FileExtension": "sample string 4",
                "TemplateType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "TemplateOutputDocumentSubType": {
                  "Id": 1,
                  "Name": "sample string 2",
                  "SystemName": "sample string 3"
                },
                "ContentType": "sample string 5",
                "PostDocGenerationHandler": {
                  "EntityType": "sample string 1",
                  "EntityId": 2,
                  "JobHandlerType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  },
                  "Options": {
                    "sample string 1": "sample string 2",
                    "sample string 3": "sample string 4"
                  },
                  "DocumentSubType": {
                    "Id": 1,
                    "Name": "sample string 2",
                    "SystemName": "sample string 3"
                  }
                },
                "LetterTemplateId": 6,
                "EnvelopeTemplatePackId": 7
              }
            ],
            "PropertyRoleIds": [
              1,
              2
            ],
            "GroupRoleIds": [
              1,
              2
            ],
            "OwnsRoleId": 4,
            "ParentGroupId": 1,
            "PersonId": 1,
            "ContainsPrintable": true,
            "IsEmailCompatible": true,
            "IsTextCompatible": true,
            "IsBymCompatible": true,
            "PersonName": "sample string 9",
            "OutputPdf": true,
            "Created": "2018-11-16T09:41:23.6337387Z",
            "Expires": "2018-11-16T09:41:23.6337387Z",
            "CreatedByWorkflow": true
          },
          "AlternateContactItemDataContract": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Value": "sample string 1",
              "Notes": "sample string 2",
              "ContactOrder": 3,
              "AllowContact": true,
              "MarketingContactStatus": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 5",
              "Id": 6
            }
          ]
        }
      ]
    }
  ],
  "PreviewOnly": true,
  "EnvelopeTemplatePackId": 3
}