POST call, passing a JSON body as specified below.| Field | Description | Type | Mandatory |
|---|---|---|---|
| vouchersRecords | Array of voucher objecs | See below for the the object structure To update an attribute also specify the progId, which is the identifier for the attribute | ā |
| Field | Description | Type | Mandatory |
|---|---|---|---|
voucherType | String | Voucher type code | ā |
voucherBarcode | String | Voucher barcode | ā |
entityCode | String | Code of the branch where the voucher is being used | ā |
documentDate | String | Date of the document where the voucher is being used | ā |
refDocument | String | Reference code of the document where the voucher is being used | ā |
amount | Number | Voucher amount | ā |
spent | Char | 'T' or 'F' depending wether the voucher has been spent or not | ā |
entityCodePurchase | String | Code of the issuing branch | ā |
documentDatePurchase | String | Date of the issuing document | ā |
refDocumentPurchase | Char | Issuing document reference | ā |
{"success":true,"code":200,"message":"Inserimento/Update riuscito con successo.","vouchersInserted":[...], "vouchersUpdated": [...], "vouchersError": [...]}