This call is deprecated. Documents module in Erply is being phased out and is no longer maintained. Although you can create the records with API call "saveDocument", there is no corresponding "getDocuments" API call to retrieve saved documents.

Create or update a document.

Input parameters

Parameter name Description Possible value Required
typeID Integer
seriesID Integer
statusID Integer
clientID Integer
contactID Integer
projectID Integer
regDate eg. 2010-01-29 Date
creationDate eg. 2010-01-29 Date
deadlineDate eg. 2010-01-29 Date
creatorID Company user unique ID Integer
personResponsibleID Company user unique ID Integer
fileName String
direction 'incoming' or 'outgoing'.
name String
notes String


Field name Type Description
documentID Integer ID of the newly-created or updated item
documentNo Integer