Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PUT
/api-v1/purchase-invoice-scan/batch
curl \
--request PUT 'https://wyzio.app/api-v1/purchase-invoice-scan/batch' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '[{"id":42,"organizationId":42,"date":"string","supplierId":42,"currencyId":42,"reference":"string","description":"string","comment":"string","validated":true,"vatType":"NO_VAT","vatTypeCodeId":42,"amounts":[{"id":42,"vatRateId":42,"amountType":"NO_VAT","net":"string","vat":"string","vatType":"NO_VAT","vatTypeCodeId":42}],"attributions":[{"id":42,"chartOfAccountsId":42,"dateFrom":"string","dateTo":"string","net":"string","percent":"string","departmentId":42,"orderId":42,"orderIdToDisplay":"string","reBillDate":"2026-05-04T09:42:00Z","reBill":true,"articleId":42,"quantity":"string","shipments":[{"id":42,"shipmentDate":"string","articleId":42,"quantity":"string","currencyCode":"string","totalCost":42.0,"generatedStockMovementId":42,"articleName":{"en":"string","fr":"string","de":"string","it":"string"},"articleIdSku":"string","attributionId":42}],"appliedAllocationRules":["string"],"officeId":42,"readOnly":true}],"payments":[{"id":42,"requestedDate":"string","plannedDate":"string","sentDate":"string","valueDate":"string","requestedAmount":"string","paidAmount":"string","bankCharges":"string","payableByAccountId":42,"paymentType":"BANK_TRANSFER","payableToBankId":42,"lineCode":"string","accountNumber":"string","referenceNumber":"string","qrBillData":"string","isFromLockedAccountingPeriod":true}],"document":{"id":42,"entityId":42,"name":"string","fileId":42,"date":"string","tags":[{"id":42,"name":"string"}],"contact":{"id":42,"name":"string","email":"string"},"module":"ALL","comments":"string","createdBy":"string","createdOn":"2026-05-04T09:42:00Z","fileExtension":"string","size":42,"isSystem":true,"self":true},"warnings":"string","isFromLockedAccountingPeriod":true,"paymentChartId":42,"status":"NEW","isOrganizationNameIncluded":true,"isTreatedByManagingOrganization":true}]'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
[
{
"id": 42,
"organizationId": 42,
"date": "string",
"supplierId": 42,
"currencyId": 42,
"reference": "string",
"description": "string",
"comment": "string",
"validated": true,
"vatType": "NO_VAT",
"vatTypeCodeId": 42,
"amounts": [
{
"id": 42,
"vatRateId": 42,
"amountType": "NO_VAT",
"net": "string",
"vat": "string",
"vatType": "NO_VAT",
"vatTypeCodeId": 42
}
],
"attributions": [
{
"id": 42,
"chartOfAccountsId": 42,
"dateFrom": "string",
"dateTo": "string",
"net": "string",
"percent": "string",
"departmentId": 42,
"orderId": 42,
"orderIdToDisplay": "string",
"reBillDate": "2026-05-04T09:42:00Z",
"reBill": true,
"articleId": 42,
"quantity": "string",
"shipments": [
{
"id": 42,
"shipmentDate": "string",
"articleId": 42,
"quantity": "string",
"currencyCode": "string",
"totalCost": 42.0,
"generatedStockMovementId": 42,
"articleName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"articleIdSku": "string",
"attributionId": 42
}
],
"appliedAllocationRules": [
"string"
],
"officeId": 42,
"readOnly": true
}
],
"payments": [
{
"id": 42,
"requestedDate": "string",
"plannedDate": "string",
"sentDate": "string",
"valueDate": "string",
"requestedAmount": "string",
"paidAmount": "string",
"bankCharges": "string",
"payableByAccountId": 42,
"paymentType": "BANK_TRANSFER",
"payableToBankId": 42,
"lineCode": "string",
"accountNumber": "string",
"referenceNumber": "string",
"qrBillData": "string",
"isFromLockedAccountingPeriod": true
}
],
"document": {
"id": 42,
"entityId": 42,
"name": "string",
"fileId": 42,
"date": "string",
"tags": [
{
"id": 42,
"name": "string"
}
],
"contact": {
"id": 42,
"name": "string",
"email": "string"
},
"module": "ALL",
"comments": "string",
"createdBy": "string",
"createdOn": "2026-05-04T09:42:00Z",
"fileExtension": "string",
"size": 42,
"isSystem": true,
"self": true
},
"warnings": "string",
"isFromLockedAccountingPeriod": true,
"paymentChartId": 42,
"status": "NEW",
"isOrganizationNameIncluded": true,
"isTreatedByManagingOrganization": true
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"freshRow": {},
"freshData": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}