DigiOffice Gateway Web Services

<back to all web services

GenerateDocumentBatch

Queue multiple (corporate identity) document(s) to generate later via the DigiOffice background agent.

Requires Authentication
GenerateDocumentBatch Parameters:
NameParameterData TypeRequiredDescription
UserqueryUserReferenceNoOwner of the badge (DigiOffice user)
DescriptionquerystringYesDescription of the badge
DocumentsqueryList<BatchDocument>YesCorporate identity document(s) to be generate
DontRegisterqueryboolNoGenerated document is not registered in DigiOffice DMS.
SendMailqueryboolNoSend the generated e-mail via the e-mail queue.
UserReference Parameters:
NameParameterData TypeRequiredDescription
IDformint?No
LoginNameformstringNo
UserPrincipalNameformstringNo
FullNameformstringNo
EmailAddressformstringNo
GlobalIDformGuid?No
BatchDocument Parameters:
NameParameterData TypeRequiredDescription
ConfigurationSourceformConfigurationSourceYesConfigurationSource: DocumentgeneratorDocument of RegistratieProfiel.
RegistrationMetaDataformRegistrationMetaDataYesSet references to bind with Registration profile
DataSourceEntityformCommonEntityBaseReferenceNoEntity instance used as data source parent, if not exists default is Document registration instance.
CustomDataformstringNoHier kan de (dynamische) data voor het document geplaatst worden, de data kan middels tekstblokken en placeholders worden geplaatst.Het formaat binnen CustomData staat vrij maar vereist een 'root' element.
WatermarkformWatermarkNoInsert a watermark into the document.
OutputTypeformstringNoType van het gegenereerde document, bijvoorbeeld: Doc, Docx, Pdf.
ConfigurationSource Parameters:
NameParameterData TypeRequiredDescription
DocumentgeneratorDocumentformDocumentgeneratorDocumentReferenceNoDocument genereren op basis van een DocGenDocument.
RegistrationProfileformRegistrationProfileReferenceNoDocument genereren op basis van een RegistratieProfiel.
RegisteredDocumentformDocumentReferenceNoUse existing document registration.
DraftDocumentRegistrationformMessageQueueReferenceNoUse draft document registration.
DocumentgeneratorTypeformTypeNo
DocumentgeneratorTypeNameformstringNoDocumentgeneratorType voor bijvoorbeeld Word of Email.
TemplateExtensionformstringNo
OutputExtensionformstringNo
DocumentgeneratorDocumentReference Parameters:
NameParameterData TypeRequiredDescription
IDformGuid?No
NameformstringNo
GlobalIDformGuid?No
RegistrationProfileReference Parameters:
NameParameterData TypeRequiredDescription
IDformGuidNo
GlobalIDformGuid?No
DocumentReference Parameters:
NameParameterData TypeRequiredDescription
IDformGuid?No
CodeformstringNo
VersionCodeformstringNo
RootDocIDformGuid?No
InternalInvoiceCodeformstringNo
CompanyNumberformint?No
DocumentTypeIDformstringNo
InvoiceTypeformint?No
RegProfCatIDformint?No
GlobalIDformGuid?No
ExternalIDformstringNo
ExternNrformstringNo
InternNummerformstringNo
MessageQueueReference Parameters:
NameParameterData TypeRequiredDescription
IDformint?No
GlobalIDformGuid?No
RegistrationMetaData Parameters:
NameParameterData TypeRequiredDescription
VersioningformVersioningType?NoHoe moet het versiebeheer worden toegepast?
PreviousDocumentformDocumentReferenceNoPrevious document will be used for registration of a new version.
CompanyformCompanyReferenceNoCompany
RelationformRelationReferenceNoRelation
PersonformPersonReferenceNoPerson
ProjectformProjectReferenceNoProject
SubProjectsformList<SubProject>NoSub projects
SignersformList<Signer>NoSigners
FieldsformList<Field>NoBevat velden die gebruikt worden als additionele metadata voor het document, naast de vaste koppelingen zoals gebruiker, project en relatie.
AttachmentsformList<Attachment>NoAttachments die aan de documentregistratie gekoppeld moet worden.
CompanyReference Parameters:
NameParameterData TypeRequiredDescription
IDformint?No
Numberformint?No
GlobalIDformGuid?No
ExternalIDformstringNo
RelationReference Parameters:
NameParameterData TypeRequiredDescription
IDformint?No
CreditorNumberformint?No
DebtorNumberformint?No
GlobalLocationNumberformstringNo
GlobalIDformGuid?No
ExternalIDformstringNo
PersonReference Parameters:
NameParameterData TypeRequiredDescription
IDformint?No
Numberformint?No
GlobalIDformGuid?No
ExternalIDformstringNo
ProjectReference Parameters:
NameParameterData TypeRequiredDescription
IDformint?No
CodeformstringNo
TypeExternalIDformstringNo
CompanyNumberformint?No
GlobalIDformGuid?No
ExternalIDformstringNo
SubProject Parameters:
NameParameterData TypeRequiredDescription
ProjectformProjectReferenceNo
Signer Parameters:
NameParameterData TypeRequiredDescription
UserformUserReferenceNo
PersonformPersonReferenceNo
RelationformRelationReferenceNo
ContactPersonformContactPersonReferenceNo
RegisteredDocumentformDocumentReferenceNo
TypeformSignerTypeNo
ClosingSentenceformstringNo
NameformstringNo
SubsidiaryformstringNo
FunctionformstringNo
DepartmentformstringNo
PhoneNumberformstringNo
FaxNumberformstringNo
MobileNumberformstringNo
EmailformstringNo
CustomTextformstringNo
SignatureformList<string>No
SignatureVisibleformbool?No
Visibleformbool?No
ContactPersonReference Parameters:
NameParameterData TypeRequiredDescription
IDformint?No
GlobalIDformGuid?No
ExternalIDformstringNo
RelationIDformint?No
PersonIDformint?No
Field Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
OldValueformstringNo
ValueformstringNo
TitleformstringNo
Attachment Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
AttachmentDataformAttachmentDataNo
AttachmentData Parameters:
NameParameterData TypeRequiredDescription
ContentTypeformstringNo
DataformstringNoData base64-encoded zonder padding.
CommonEntityBaseReference Parameters:
NameParameterData TypeRequiredDescription
IDformstringNo
ExternalIDformstringNo
GlobalIDformGuid?No
Watermark Parameters:
NameParameterData TypeRequiredDescription
TextformstringNo
FontFamilyTextformstringNo
FontFamilyformFontFamilyNo
DirectionformDirection?No
StrokeColorTextformstringNo
StrokeColorformColorNo
FillColorTextformstringNo
FillColorformColorNo
GenerateDocumentBatchResponse Parameters:
NameParameterData TypeRequiredDescription
BatchIDformGuidYesID of the batch
ProcessedformintYesDocument processed count
TrackAndTraceUrlformstringYesTrack and Trace url

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/GenerateDocumentBatch HTTP/1.1 
Host: doapigw.baasbv.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	__type: "IDB.DocumentGenerator.SDK.Operations.General.GenerateDocumentBatch, IDB.DocumentGenerator.SDK",
	User: 
	{
		__type: "IDB.API.Entities.UserReference, IDB.API",
		ID: 0,
		LoginName: String,
		UserPrincipalName: String,
		FullName: String,
		EmailAddress: String,
		GlobalID: 00000000-0000-0000-0000-000000000000
	},
	Description: String,
	Documents: 
	[
		{
			__type: "IDB.DocumentGenerator.SDK.DTO.BatchDocument, IDB.DocumentGenerator.SDK",
			ConfigurationSource: 
			{
				__type: "IDB.API.DocumentGenerator.ConfigurationSource, IDB.API",
				DocumentgeneratorDocument: 
				{
					__type: "IDB.API.Entities.DocumentgeneratorDocumentReference, IDB.API",
					ID: 00000000-0000-0000-0000-000000000000,
					Name: String
				},
				RegistrationProfile: 
				{
					__type: "IDB.API.Entities.RegistrationProfileReference, IDB.API"
				},
				RegisteredDocument: 
				{
					__type: "IDB.API.Entities.DocumentReference, IDB.API",
					ID: 00000000-0000-0000-0000-000000000000,
					Code: String,
					VersionCode: String,
					RootDocID: 00000000-0000-0000-0000-000000000000,
					InternalInvoiceCode: String,
					CompanyNumber: 0,
					DocumentTypeID: String,
					InvoiceType: 0,
					RegProfCatID: 0,
					GlobalID: 00000000-0000-0000-0000-000000000000,
					ExternalID: String
				},
				DraftDocumentRegistration: 
				{
					__type: "IDB.API.Entities.MessageQueueReference, IDB.API",
					ID: 0
				},
				TemplateExtension: String,
				OutputExtension: String
			},
			RegistrationMetaData: 
			{
				__type: "IDB.DocumentGenerator.SDK.DTO.RegistrationMetaData, IDB.DocumentGenerator.SDK",
				Versioning: New,
				PreviousDocument: 
				{
					__type: "IDB.API.Entities.DocumentReference, IDB.API",
					ID: 00000000-0000-0000-0000-000000000000,
					Code: String,
					VersionCode: String,
					RootDocID: 00000000-0000-0000-0000-000000000000,
					InternalInvoiceCode: String,
					CompanyNumber: 0,
					DocumentTypeID: String,
					InvoiceType: 0,
					RegProfCatID: 0,
					GlobalID: 00000000-0000-0000-0000-000000000000,
					ExternalID: String
				},
				Company: 
				{
					__type: "IDB.API.Entities.CompanyReference, IDB.API",
					ID: 0,
					Number: 0,
					GlobalID: 00000000-0000-0000-0000-000000000000,
					ExternalID: String
				},
				Relation: 
				{
					__type: "IDB.API.Entities.RelationReference, IDB.API",
					ID: 0,
					CreditorNumber: 0,
					DebtorNumber: 0,
					GlobalLocationNumber: String,
					GlobalID: 00000000-0000-0000-0000-000000000000,
					ExternalID: String
				},
				Person: 
				{
					__type: "IDB.API.Entities.PersonReference, IDB.API",
					ID: 0,
					Number: 0,
					GlobalID: 00000000-0000-0000-0000-000000000000,
					ExternalID: String
				},
				Project: 
				{
					__type: "IDB.API.Entities.ProjectReference, IDB.API",
					ID: 0,
					Code: String,
					TypeExternalID: String,
					CompanyNumber: 0,
					GlobalID: 00000000-0000-0000-0000-000000000000,
					ExternalID: String
				},
				SubProjects: 
				[
					{
						__type: "IDB.API.DocumentGenerator.SubProject, IDB.API",
						Project: 
						{
							__type: "IDB.API.Entities.ProjectReference, IDB.API",
							ID: 0,
							Code: String,
							TypeExternalID: String,
							CompanyNumber: 0,
							GlobalID: 00000000-0000-0000-0000-000000000000,
							ExternalID: String
						}
					}
				],
				Signers: 
				[
					{
						__type: "IDB.API.DocumentGenerator.Signer, IDB.API",
						User: 
						{
							__type: "IDB.API.Entities.UserReference, IDB.API",
							ID: 0,
							LoginName: String,
							UserPrincipalName: String,
							FullName: String,
							EmailAddress: String,
							GlobalID: 00000000-0000-0000-0000-000000000000
						},
						Person: 
						{
							__type: "IDB.API.Entities.PersonReference, IDB.API",
							ID: 0,
							Number: 0,
							GlobalID: 00000000-0000-0000-0000-000000000000,
							ExternalID: String
						},
						Relation: 
						{
							__type: "IDB.API.Entities.RelationReference, IDB.API",
							ID: 0,
							CreditorNumber: 0,
							DebtorNumber: 0,
							GlobalLocationNumber: String,
							GlobalID: 00000000-0000-0000-0000-000000000000,
							ExternalID: String
						},
						ContactPerson: 
						{
							__type: "IDB.API.Entities.ContactPersonReference, IDB.API",
							ID: 0,
							GlobalID: 00000000-0000-0000-0000-000000000000,
							ExternalID: String,
							RelationID: 0,
							PersonID: 0
						},
						RegisteredDocument: 
						{
							__type: "IDB.API.Entities.DocumentReference, IDB.API",
							ID: 00000000-0000-0000-0000-000000000000,
							Code: String,
							VersionCode: String,
							RootDocID: 00000000-0000-0000-0000-000000000000,
							InternalInvoiceCode: String,
							CompanyNumber: 0,
							DocumentTypeID: String,
							InvoiceType: 0,
							RegProfCatID: 0,
							GlobalID: 00000000-0000-0000-0000-000000000000,
							ExternalID: String
						},
						Type: MainSigner,
						ClosingSentence: String,
						Name: String,
						Subsidiary: String,
						Function: String,
						Department: String,
						PhoneNumber: String,
						FaxNumber: String,
						MobileNumber: String,
						Email: String,
						CustomText: String,
						Signature: 
						[
							String
						],
						SignatureVisible: False,
						Visible: False
					}
				],
				Fields: 
				[
					{
						__type: "IDB.API.Common.Field, IDB.API",
						Name: String,
						OldValue: String,
						Value: String,
						Title: String = String -> String
					}
				],
				Attachments: 
				[
					{
						__type: "IDB.API.DocumentGenerator.Attachment, IDB.API",
						Name: String,
						AttachmentData: 
						{
							__type: "IDB.API.DocumentGenerator.AttachmentData, IDB.API",
							ContentType: String,
							Data: String
						}
					}
				]
			},
			DataSourceEntity: 
			{
				__type: "IDB.API.Entities.CommonEntityBaseReference, IDB.API",
				ID: String,
				ExternalID: String,
				GlobalID: 00000000-0000-0000-0000-000000000000
			},
			CustomData: String,
			Watermark: 
			{
				__type: "IDB.API.DocumentGenerator.Watermark, IDB.API",
				Text: String,
				Direction: Left2Right
			},
			OutputType: String
		}
	],
	DontRegister: False,
	SendMail: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	__type: "IDB.DocumentGenerator.SDK.DTO.General.GenerateDocumentBatchResponse, IDB.DocumentGenerator.SDK",
	Processed: 0,
	TrackAndTraceUrl: String
}