Bulk Document Generation

Generate multiple documents by populating JSON/XML/Excel data file

post
Generate bulk documents

https://app.edocgen.com/api/v1/document/generate/bulk
Generate bulk documents from XML, JSON and Excel data.
Request
Response
Headers
x-access-token
required
string
Authorization header obtained by calling login
Form Data Parameters
headerMappings
optional
string
Mappings of template tag to input file key. e.g if tag X need to read values as key Y from provided input then {X:Y}
keyToFileName
optional
string
Name of the tag, value of which can be used for generation of file names. Optional
headersin
optional
string
Applicable only for xlsx input. Optional e.g row, column. Whether row or column contains the headers
sheetindex
optional
string
Index of Excel sheet containing values. Optional e.g 1, 2 etc
outputFileName
required
string
File name for output file
format
required
string
output format docx or pdf. Default docx
inputFile
required
object
Data file in JSON, XML, XLSX formats
documentId
required
string
id of the template
200: OK

Example Value|Model - JSON
GenerateBulkRequest{
documentId string id of the template
format string output format docx or pdf. Default docx
outputFileName string file name for the output file.
sheetindex string index of sheet containing values. Optional e.g 1, 2 etc. applicable for xlsx
headersin string whether row or column contains the header applicable only for xlsx input. Optional e.g row, column
keyToFileName string Name of the tag value of which can be used for generated files. Optional
headerMappings string Json representing mappings e.g tag X in document should take values from key Y from provided JSON then {X:Y}. Optional
}