POST api/DocumentAttachmentGenerator
Request Information
URI Parameters
None.
Body Parameters
FormSubmit_ExportFromTemplateInput| Name | Description | Type | Additional information |
|---|---|---|---|
| PersonId |
Person Id to generate from |
integer |
None. |
| HatTemplateId |
Hat Template Id |
integer |
None. |
| SourceId |
Element for wich to create bill ID or invoice ID |
integer |
None. |
| SourceTypeToken |
Type tokken BILL = 1101 or INVOICE = 1102 |
integer |
None. |
| ConvertToPdf |
To convert to PDF document |
boolean |
None. |
| ConvertToWord |
To convert to WORD document |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"PersonId": 1,
"HatTemplateId": 2,
"SourceId": 3,
"SourceTypeToken": 4,
"ConvertToPdf": true,
"ConvertToWord": true
}
application/xml, text/xml
Sample:
<FormSubmit_ExportFromTemplateInput xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PersonId>1</PersonId> <HatTemplateId>2</HatTemplateId> <SourceId>3</SourceId> <SourceTypeToken>4</SourceTypeToken> <ConvertToPdf>true</ConvertToPdf> <ConvertToWord>true</ConvertToWord> </FormSubmit_ExportFromTemplateInput>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |