Resource: accountingedit.nv
HTTP-method: POST
Accounting edit can be used for editing existing voucher, voucher lines, voucher line dimensions and voucher attachments. The request doesn't have parameters. One request can include only one voucher. Accounting edit can be used for editing voucher's basic info and voucher lines. Basic info is not compulsory if only voucher lines are being edited. Accounting edit invalidates existing voucher lines and imports requests voucher lines as new voucher lines. If voucher lines are not imported in the request, no changes are made to the existing vouher lines.
The data to be imported must be included in the request as an XML with the following structure:
Level | Element name | Type and length | Occurs | Description | Example |
Root | root | Aggr. | 1 | ||
1 | voucher | Aggr. | 1 | ||
2 | netvisorkey | Numeric | 1 | Netvisor key of the voucher being edited. Netvisor key can be retreived with the resource accountingledger.nv | 123 |
2 | calculationmode | String | 0...1 | Calculation mode for the voucher. Net (vat lines are not calculated automatically) or gross (vat lines are calculated automatically). | gross |
2 | voucherdate | Date | 0...1 | Voucher date | 2009-1-1 |
Attr. | format | String | 1 | Date format, always ansi | andi |
2 | number | Numeric, max. 9 | 0...1 | Voucher number. If not given, the system automatically picks next number from the chosen voucher class | 1 |
2 | description | String, max. 255 | 0...1 | Voucher description | Description |
2 | voucherclass | String | 0...1 | Voucher class. See possible voucher classes above. It is also possible to create own voucher classes. | Myyntilasku |
2 | voucherline | Aggr. | 0...n | ||
3 | linesum | Numeric | 1 | Line sum. Negative value is recorded to credit side and positive value on debet side. Two decimal maximum. | -100,00 |
Attr. | type | String | 0...1 | net or gross | net |
3 | description | String, max. 255 | 0...1 | Voucher line description | Description |
3 | accountnumber | Numeric | 1 | Accounting account number, must be found or an error is returned. | 3000 |
3 | vatpercent | Numeric | 1 | Vat percent. Must not be in conflict with vatcode attribute. | 24 |
Attr. | vatcode | String | 0...1 | VAT code. If not given, value behind account number is used. Valid values are listed here | KOMY |
3 | accountdimension | String | 0...1 | Voucher line's follow-up object. | Seurantakohde 1 |
Attr. | type | String | 1 | name or netvisorkey (shown only in Netvisor) | name |
3 | dimension | Aggr. | 0...1 | ||
4 | dimensionname | String, max. 50 | 1 | Dimension name. If dimension is not found from system, it is created. | Project |
4 | dimensionitem | String, max. 200 | 1 | Dimension item. If item in dimension is not found from system, it is created. | Project x |
2 | voucherattachments | Aggr. | 0...1 | ||
3 | voucherattachment | Aggr. | 1...n | ||
4 | mimetype | String | 1 | MIME-type of the attachment | application/pdf |
4 | attachmentdescription | String | 1 | Description text for the attachment | Example attachment |
4 | filename | String | 1 | File name of the attachment | Attachment.pdf |
4 | documentdata | String | 1 | Data of the attachment as base64 encoded string |
Did you find it helpful? Yes No
Send feedback