Uploading files

Implementation of the latest Diamant webservice to access and modify data in your accounting software. Here is an explanation of uploading files.

UploadInvoice

Uploads a unique document (in most cases the invoice) for a transaction to the audit-proof Diamant repository. The transaction needs the same identifier as the parameter for this call.

There can only be one invoice per data record. If this function is called multiple times the file will be overwritten.

Parameters

  • company (required): the value of the company in your Diamant accounting software.

  • identifier (required): the same unique value that was used to post a transaction (there it is called barcode).

  • attachmentId (required): Attachment id from GEBRA-Suite that should be uploaded.

Example

let result = app.businessFunction({
    functionName: "Diamant",
    methodName: "UploadInvoice",
    company: "999",
    identifier: "DtHRRpTdzpkmd8Bc17H82vA",
    attachmentId: 4711
})

UploadAttachment

Uploads multiple documents for a transaction to the audit-proof Diamant repository. The transaction needs the same identifier as the parameter for this call.

Parameters

  • company (required): the value of the company in your Diamant accounting software.

  • identifier (required): the same unique value that was used to post a transaction (there it is called barcode).

  • attachmentId (required): Attachment id from GEBRA-Suite that should be uploaded.

Example

let result = app.businessFunction({
    functionName: "Diamant",
    methodName: "UploadAttachment",
    company: "999",
    identifier: "DtHRRpTdzpkmd8Bc17H82vA",
    attachmentId: 4711
})

Last updated

Was this helpful?