Resource: vouchercorporationevent.nv
HTTP-method: POST
Editing corporation events with this api resource can modify the allocation of voucher lines to other companies within the corporation. Only one voucher is processed per request. Corporation event editing can allocate voucher lines or remove/edit allocations from non-eliminated voucher lines. Voucher lines not included in the message remain unchanged; to remove an allocation, omit the TargetCompany element when importing the desired row. Voucher lines cannot be allocated to different companies.
The imported data is sent with the call as XML according to the following description (POST-data):
Request:
Level | Element | Type | Occurs | Description | Example |
Root | Root | Aggregate | 1 |
|
|
1 | VoucherCorporationEvents | Aggregate | 1 |
|
|
2 | VoucherIdentifier | Numeric/Guid | 1 | Voucher's NetvisorKey or guid depending on the type attribute. | 1 or 2f251125-bea1-4862-ada7-0196ea0028d9 |
Attr. | type | String | 1 | The format of the voucher identifier, either netvisorkey or guid | netvisorkey |
2 | VoucherLineCorporationEvents | Aggregate | 1 | ||
3 | VoucherLineCorporationEvent | Aggregate | 1..n | ||
4 | VoucherLineIdentifier | Numeric/Guid | 1 | Voucher line's NetvisorKey or guid depending on the type attribute. | 1 or 2f251125-bea1-4862-ada7-0196ea0028d9 |
Attr. | type | String | 1 | The format of the voucher line identifier, either netvisorkey or guid | netvisorkey |
4 | TargetCompany | String | 0..1 | The target company for the corporate event should be omitted if the corporate event is to be deleted. | 0000000-0 |
Attr. | type | String | 1 | Target company identifier format, always organisationidentifier | organisationidentifier |
This article has been translated using an AI-based translation tool. The contents or wording of these instructions may differ from those in other instructions or in the software.
