Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/purchase-invoice/batch
curl \
--request POST 'https://wyzio.app/api-v1/purchase-invoice/batch' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '[{"id":42,"journalEntryId":42,"organizationId":42,"date":"string","supplierId":42,"currencyId":42,"reference":"string","description":"string","comment":"string","validated":true,"vatType":"NO_VAT","vatTypeCodeId":42,"paymentAccountId":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","orderClientId":42,"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,"departmentId":42,"officeId":42}],"appliedAllocationRules":["string"],"chartOfAccountsName":{"en":"string","fr":"string","de":"string","it":"string"},"departmentName":"string","articleName":{"en":"string","fr":"string","de":"string","it":"string"},"fixedAssetName":"string","fixedAssetId":42,"officeId":42,"officeName":"string","readOnly":true,"startDate":"string","endDate":"string"}],"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,"payableByAccountName":{"en":"string","fr":"string","de":"string","it":"string"},"paymentPurposeCodeId":42}],"warnings":"string","isFromLockedAccountingPeriod":true,"accrualEntriesAmount":42,"isDraft":true,"validatorUserIdsSize":42,"validatorUserIds":[42],"realValidated":true,"systemValidated":true,"isContainsSoldFixedAsset":true}]'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
[
{
"id": 42,
"journalEntryId": 42,
"organizationId": 42,
"date": "string",
"supplierId": 42,
"currencyId": 42,
"reference": "string",
"description": "string",
"comment": "string",
"validated": true,
"vatType": "NO_VAT",
"vatTypeCodeId": 42,
"paymentAccountId": 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",
"orderClientId": 42,
"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,
"departmentId": 42,
"officeId": 42
}
],
"appliedAllocationRules": [
"string"
],
"chartOfAccountsName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"departmentName": "string",
"articleName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"fixedAssetName": "string",
"fixedAssetId": 42,
"officeId": 42,
"officeName": "string",
"readOnly": true,
"startDate": "string",
"endDate": "string"
}
],
"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,
"payableByAccountName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"paymentPurposeCodeId": 42
}
],
"warnings": "string",
"isFromLockedAccountingPeriod": true,
"accrualEntriesAmount": 42,
"isDraft": true,
"validatorUserIdsSize": 42,
"validatorUserIds": [
42
],
"realValidated": true,
"systemValidated": true,
"isContainsSoldFixedAsset": 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
}
]
}