Skip to content

Posts a new voucher for a specified client.

Request

Path
clientIdstring, (uuid)required

The unique identifier of the client to which the voucher will be posted.

Body

The details of the voucher to be created, including its lines and associated data.

voucherSeriesNumberstring
valueDatestring or null, (date-time)
autoUpdateboolean
batchDescriptionstring or null
linesArray of objects(VoucherLine)required
originstring(OriginType)
Enum:"Manually""Ocr""DirectPayment""ExternalApplication"
attachmentReferencestring or null
{ "voucherSeriesNumber": "string", "valueDate": "2019-08-24T14:15:22Z", "autoUpdate": true, "batchDescription": "string", "lines": [ { … } ], "origin": "Manually", "attachmentReference": "string" }

Responses

OK

Bodyapplication/json
errorMessagestring
voucherNumberstring
batchIdstring
Response
{ "errorMessage": "string", "voucherNumber": "string", "batchId": "string" }