The Document API enables you to upload and link documents to an open item in Isah Finance. The document file will be uploaded to the WebDAV server which contains all Isah Finance documents. The requirements for a successful file upload are:
Call
finance-api/Documents/OpenItems/
{company}
The call will upload the specified document and link it to the specified open item. Implement the call as a HTTP multipart request, so that both the document and the document properties can be sent in one call.
Parameters
Parameter |
Description |
Mandatory |
Validations |
Company |
Company code |
Y |
Company code exists |
Http Method
POST
Content Type
multipart/form-data
Parameter (body) |
Description |
Mandatory |
Validations |
Company |
Company code |
Y |
Company code exists |
InvoiceReference |
Invoice reference |
Y |
Invoice reference present in the company/fiscal year |
Debtor |
Debtor code |
Y* |
Debtor present in the company/fiscal year |
Creditor |
Creditor code |
Y* |
Creditor present in the company/fiscal year |
Language |
... |
Y |
Language must exist |
Type |
… |
Y |
Document type must exist |
Group |
… |
Y |
Document group must exist |
Status |
… |
Y |
Document status must exist |
Description |
… |
N |
… |
DocumentCode |
... |
N |
... |
Remark |
... |
N |
... |
file |
... |
Y |
File must exist and must be accessible |
*: Either creditor or debtor must be specified.
Output
Return Value
The return value of the call depends on the outcome: