DigiOffice Gateway Web Services

<back to all web services

GetDocumentDetails

Requires Authentication
The following routes are available for this service:
GET POST/api/documents/{DocumentID}
"use strict";
export class Document {
    /** @param {{ID?:string,RootDocumentID?:string,RegistrationprofileID?:string,Title?:string,FullTitle?:string,Number?:string,Version?:string,ExternalNumber?:string,ExternalVersion?:string,InternalNumber?:string,InternalInvoiceNumber?:string,PersonID?:number,RelationID?:number,RelationTitle?:string,ProjectID?:number,ProjectTitle?:string,Extension?:string,Date?:string,CommentsCount?:number,HasComments?:boolean,HasPreview?:boolean,ExtraField?:string,IsFavorite?:boolean,DocumentcategoryText?:string,FileSize?:number,FileDate?:string,Hash?:string,HashType?:string,FileUrl?:string,StandardDocumentUrl?:string,IsCorporateIdentity?:boolean,UserTitle?:string,IsFrozen?:boolean,InternalCompanyID?:number,InternalLocationID?:number,LanguageID?:number,DirectUrl?:string,AllowDigitalSigningOnlyOnPrimaryVersions?:boolean,IsPrimaryVersion?:boolean,FileExtension?:string,CustomProperties?:{ [index:string]: Object; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    ID;
    /** @type {string} */
    RootDocumentID;
    /** @type {string} */
    RegistrationprofileID;
    /** @type {string} */
    Title;
    /** @type {string} */
    FullTitle;
    /** @type {string} */
    Number;
    /** @type {string} */
    Version;
    /** @type {string} */
    ExternalNumber;
    /** @type {string} */
    ExternalVersion;
    /** @type {string} */
    InternalNumber;
    /** @type {string} */
    InternalInvoiceNumber;
    /** @type {number} */
    PersonID;
    /** @type {number} */
    RelationID;
    /** @type {string} */
    RelationTitle;
    /** @type {number} */
    ProjectID;
    /** @type {string} */
    ProjectTitle;
    /** @type {string} */
    Extension;
    /** @type {?string} */
    Date;
    /** @type {number} */
    CommentsCount;
    /** @type {boolean} */
    HasComments;
    /** @type {boolean} */
    HasPreview;
    /** @type {string} */
    ExtraField;
    /** @type {boolean} */
    IsFavorite;
    /** @type {string} */
    DocumentcategoryText;
    /** @type {?number} */
    FileSize;
    /** @type {?string} */
    FileDate;
    /** @type {string} */
    Hash;
    /** @type {string} */
    HashType;
    /** @type {string} */
    FileUrl;
    /** @type {string} */
    StandardDocumentUrl;
    /** @type {boolean} */
    IsCorporateIdentity;
    /** @type {string} */
    UserTitle;
    /** @type {boolean} */
    IsFrozen;
    /** @type {number} */
    InternalCompanyID;
    /** @type {?number} */
    InternalLocationID;
    /** @type {?number} */
    LanguageID;
    /** @type {string} */
    DirectUrl;
    /** @type {boolean} */
    AllowDigitalSigningOnlyOnPrimaryVersions;
    /** @type {boolean} */
    IsPrimaryVersion;
    /** @type {string} */
    FileExtension;
    /** @type {{ [index:string]: Object; }} */
    CustomProperties;
}
export class GetDocumentDetails {
    /** @param {{DocumentID?:string,IncludeCustomProperties?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    DocumentID;
    /** @type {boolean} */
    IncludeCustomProperties;
}

JavaScript GetDocumentDetails DTOs

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 /api/documents/{DocumentID} HTTP/1.1 
Host: test-dogw.klokgroep.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	IncludeCustomProperties: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Title: String,
	FullTitle: String,
	Number: String,
	Version: String,
	ExternalNumber: String,
	ExternalVersion: String,
	InternalNumber: String,
	InternalInvoiceNumber: String,
	PersonID: 0,
	RelationID: 0,
	RelationTitle: String,
	ProjectID: 0,
	ProjectTitle: String,
	Extension: String,
	Date: 0001-01-01,
	CommentsCount: 0,
	HasComments: False,
	HasPreview: False,
	ExtraField: String,
	IsFavorite: False,
	DocumentcategoryText: String,
	FileSize: 0,
	FileDate: 0001-01-01,
	Hash: String,
	HashType: String,
	FileUrl: String,
	StandardDocumentUrl: String,
	IsCorporateIdentity: False,
	UserTitle: String,
	IsFrozen: False,
	InternalCompanyID: 0,
	InternalLocationID: 0,
	LanguageID: 0,
	DirectUrl: String,
	AllowDigitalSigningOnlyOnPrimaryVersions: False,
	IsPrimaryVersion: False,
	FileExtension: String,
	CustomProperties: 
	{
		String: {}
	}
}