| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| User | query | UserReference | No | DigiOffice user |
| SendMail | query | bool | No | Send the generated e-mail via the e-mail queue. |
| ConfigurationSource | query | ConfigurationSource | Yes | ConfigurationSource: DocumentgeneratorDocument of RegistratieProfiel. |
| RegistrationMetaData | query | RegistrationMetaData | Yes | Set references to bind with Registration profile |
| DataSourceEntity | query | CommonEntityBaseReference | No | Entity instance used as data source parent, if not exists default is Document registration instance. |
| CustomData | query | string | No | Hier 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. |
| Watermark | query | Watermark | No | Insert a watermark into the document. |
| OutputType | query | string | No | Type van het gegenereerde document, bijvoorbeeld: Doc, Docx, Pdf. |
| ShouldUpdateDocumentFile | query | bool | No | Should update the document file. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int? | No | |
| LoginName | form | string | No | |
| UserPrincipalName | form | string | No | |
| FullName | form | string | No | |
| EmailAddress | form | string | No | |
| GlobalID | form | Guid? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DocumentgeneratorDocument | form | DocumentgeneratorDocumentReference | No | Document genereren op basis van een DocGenDocument. |
| RegistrationProfile | form | RegistrationProfileReference | No | Document genereren op basis van een RegistratieProfiel. |
| RegisteredDocument | form | DocumentReference | No | Use existing document registration. |
| UnRegisteredDocument | form | DocumentInfo | No | Use documentInfo. |
| DraftDocumentRegistration | form | MessageQueueReference | No | Use draft document registration. |
| DocumentgeneratorType | form | Type | No | |
| DocumentgeneratorTypeName | form | string | No | DocumentgeneratorType voor bijvoorbeeld Word of Email. |
| TemplateExtension | form | string | No | |
| OutputExtension | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | Guid? | No | |
| Name | form | string | No | |
| GlobalID | form | Guid? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | Guid | No | |
| GlobalID | form | Guid? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | Guid? | No | |
| Code | form | string | No | |
| VersionCode | form | string | No | |
| RootDocID | form | Guid? | No | |
| InternalInvoiceCode | form | string | No | |
| CompanyNumber | form | int? | No | |
| DocumentTypeID | form | string | No | |
| InvoiceType | form | int? | No | |
| RegProfCatID | form | int? | No | |
| GlobalID | form | Guid? | No | |
| ExternalID | form | string | No | |
| ExternNr | form | string | No | |
| ExternVersieNr | form | string | No | |
| InternNummer | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Action | form | DocInfoAction | No | |
| Mode | form | DocInfoMode | No | |
| Version | form | string | No | |
| SilentMode | form | DocInfoSilentMode | No |
| Create | |
| Register |
| New | |
| Change | |
| NewVersionPrimary | |
| NewVersionSecondary | |
| NewFromExistingDocument |
| Off | |
| AllowUserInteraction | |
| DoNotAllowUserInteraction |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int? | No | |
| GlobalID | form | Guid? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Versioning | form | VersioningType? | No | Hoe moet het versiebeheer worden toegepast? |
| PreviousDocument | form | DocumentReference | No | Previous document will be used for registration of a new version. |
| Company | form | CompanyReference | No | Company |
| Relation | form | RelationReference | No | Relation |
| Person | form | PersonReference | No | Person |
| Project | form | ProjectReference | No | Project |
| SubProjects | form | List<SubProject> | No | Sub projects |
| Signers | form | List<Signer> | No | Signers |
| Fields | form | List<Field> | No | Bevat velden die gebruikt worden als additionele metadata voor het document, naast de vaste koppelingen zoals gebruiker, project en relatie. |
| Attachments | form | List<Attachment> | No | Attachments die aan de documentregistratie gekoppeld moet worden. |
| New | |
| Change | |
| Primary | |
| Secondary |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int? | No | |
| Number | form | int? | No | |
| GlobalID | form | Guid? | No | |
| ExternalID | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int? | No | |
| CreditorNumber | form | int? | No | |
| DebtorNumber | form | int? | No | |
| GlobalLocationNumber | form | string | No | |
| GlobalID | form | Guid? | No | |
| ExternalID | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int? | No | |
| Number | form | int? | No | |
| GlobalID | form | Guid? | No | |
| ExternalID | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int? | No | |
| Code | form | string | No | |
| TypeExternalID | form | string | No | |
| CompanyNumber | form | int? | No | |
| GlobalID | form | Guid? | No | |
| ExternalID | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Project | form | ProjectReference | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MainSignerPostFix | form | string | No | |
| User | form | UserReference | No | |
| Person | form | PersonReference | No | |
| Relation | form | RelationReference | No | |
| ContactPerson | form | ContactPersonReference | No | |
| RegisteredDocument | form | DocumentReference | No | |
| Type | form | SignerType | No | |
| ClosingSentence | form | string | No | |
| Name | form | string | No | |
| Subsidiary | form | string | No | |
| Function | form | string | No | |
| Department | form | string | No | |
| PhoneNumber | form | string | No | |
| FaxNumber | form | string | No | |
| MobileNumber | form | string | No | |
| form | string | No | ||
| CustomText | form | string | No | |
| Signature | form | List<string> | No | |
| Initials | form | List<string> | No | |
| SignatureVisible | form | bool? | No | |
| InitialsVisible | form | bool? | No | |
| Visible | form | bool? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int? | No | |
| GlobalID | form | Guid? | No | |
| ExternalID | form | string | No | |
| RelationID | form | int? | No | |
| PersonID | form | int? | No |
| MainSigner | |
| AdditionalSigner | |
| ConfirmationDeclarant | |
| AdditionalConfirmationDeclarant |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | No | |
| OldValue | form | string | No | |
| Value | form | string | No | |
| Title | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | No | |
| AttachmentData | form | AttachmentData | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContentType | form | string | No | |
| Data | form | string | No | Data base64-encoded zonder padding. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | string | No | |
| ExternalID | form | string | No | |
| GlobalID | form | Guid? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Text | form | string | No | |
| FontFamilyText | form | string | No | |
| FontFamily | form | FontFamily | No | |
| Direction | form | Direction? | No | |
| StrokeColorText | form | string | No | |
| StrokeColor | form | Color | No | |
| FillColorText | form | string | No | |
| FillColor | form | Color | No |
| Name | Value | |
|---|---|---|
| Left2Right | 0 | |
| UpLeft2DownRight | 45 | |
| Up2Down | 90 | |
| UpRight2DownLeft | 135 | |
| Right2Left | 180 | |
| DownRight2UpLeft | 225 | |
| Down2Up | 270 | |
| DownLeft2UpRight | 315 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DocumentID | form | Guid | Yes | Contains the registration ID of the generated (corporate identity) document |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/GenerateDocument HTTP/1.1
Host: doapigw.baasbv.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
User:
{
ID: 0,
LoginName: String,
UserPrincipalName: String,
FullName: String,
EmailAddress: String,
GlobalID: 00000000-0000-0000-0000-000000000000
},
SendMail: False,
ConfigurationSource:
{
DocumentgeneratorDocument:
{
ID: 00000000-0000-0000-0000-000000000000,
Name: String
},
RegistrationProfile: {},
RegisteredDocument:
{
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,
ExternVersieNr: String
},
UnRegisteredDocument:
{
Action: Create,
Mode: New,
Version: String,
SilentMode: Off
},
DraftDocumentRegistration:
{
ID: 0
},
TemplateExtension: String,
OutputExtension: String
},
RegistrationMetaData:
{
Versioning: New,
PreviousDocument:
{
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,
ExternVersieNr: String
},
Company:
{
ID: 0,
Number: 0,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String
},
Relation:
{
ID: 0,
CreditorNumber: 0,
DebtorNumber: 0,
GlobalLocationNumber: String,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String
},
Person:
{
ID: 0,
Number: 0,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String
},
Project:
{
ID: 0,
Code: String,
TypeExternalID: String,
CompanyNumber: 0,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String
},
SubProjects:
[
{
Project:
{
ID: 0,
Code: String,
TypeExternalID: String,
CompanyNumber: 0,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String
}
}
],
Signers:
[
{
MainSignerPostFix: String,
User:
{
ID: 0,
LoginName: String,
UserPrincipalName: String,
FullName: String,
EmailAddress: String,
GlobalID: 00000000-0000-0000-0000-000000000000
},
Person:
{
ID: 0,
Number: 0,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String
},
Relation:
{
ID: 0,
CreditorNumber: 0,
DebtorNumber: 0,
GlobalLocationNumber: String,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String
},
ContactPerson:
{
ID: 0,
GlobalID: 00000000-0000-0000-0000-000000000000,
ExternalID: String,
RelationID: 0,
PersonID: 0
},
RegisteredDocument:
{
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,
ExternVersieNr: 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
],
Initials:
[
String
],
SignatureVisible: False,
InitialsVisible: False,
Visible: False
}
],
Fields:
[
{
Name: String,
OldValue: String,
Value: String,
Title: String = String -> String
}
],
Attachments:
[
{
Name: String,
AttachmentData:
{
ContentType: String,
Data: String
}
}
]
},
DataSourceEntity:
{
ID: String,
ExternalID: String,
GlobalID: 00000000-0000-0000-0000-000000000000
},
CustomData: String,
Watermark:
{
Text: String,
Direction: Left2Right
},
OutputType: String,
ShouldUpdateDocumentFile: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}