Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/sales-invoice/batch
curl \
--request POST 'https://wyzio.app/api-v1/sales-invoice/batch' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '[{"id":42,"journalEntryId":42,"number":"string","date":"string","clientId":42,"clientAddressId":42,"address":{"id":42,"name":"string","line1":"string","line2":"string","city":"string","region":{"id":42,"name":"string","code":"string","taxMode":"ANNUALLY"},"countryCode2":"string","postCode":"string","toTheAttentionOf":"string","position":42,"houseNumber":"string","countryId":42,"service":"string","readOnly":true},"ourContactId":42,"yourContactId":42,"clientName":"string","reference":"string","yourReference":"string","currencyId":42,"description":"string","comments":"string","warnings":"string","receivableAccountId":42,"vatTypeCodeId":42,"excludedFromVat":true,"invoiceLines":[{"id":42,"tempId":42,"lineType":"ARTICLE","quantity":42.0,"articleId":42,"isArticleShipped":true,"description":"string","longDescription":"string","netUnitPrice":42.0,"discount":42.0,"totalNet":42.0,"vatRateId":42,"vat":42.0,"totalPrice":42.0,"saleAccountId":42,"departmentId":42,"allocationKey":"string","appliedAllocationRules":["string"],"vatTypeCodeId":42,"articleName":{"en":"string","fr":"string","de":"string","it":"string"},"saleAccountName":{"en":"string","fr":"string","de":"string","it":"string"},"departmentName":"string","fixedAssetName":"string","fixedAssetId":42,"officeId":42,"officeName":"string"}],"invoiceLinesLayout":[{"id":42,"name":"string","parentId":42,"position":42,"lineType":"ARTICLE","salesInvoiceLineId":42,"sourceOrderId":42}],"payments":[{"id":42,"receivableByAccountId":42,"requestedDate":"string","overdueDate":"string","valueDate":"string","sentDate":"string","requestedAmount":"string","paidAmount":"string","bankCharges":"string","lossOnDebtors":"string","isFromLockedAccountingPeriod":true,"qrBillData":"string","receivableByAccountName":{"en":"string","fr":"string","de":"string","it":"string"},"qrReferenceNumber":"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","orderArticleId":42,"salesInvoiceLineId":42}],"timesheetInfoItems":[{"id":42,"date":"string","description":"string","time":"string","billableAmount":"string","billableRate":"string","employeeContactId":42,"originalTimesheetId":42,"employeeTaskId":42}],"sourceOrderId":42,"sourceSubOrderId":42,"bvrGenerationAvailability":true,"qrGenerationAvailability":true,"isFromLockedAccountingPeriod":true,"isContainsFixedAsset":true,"accrualFrom":"string","accrualTo":"string","accrualEntriesAmount":42,"validated":true,"validatorUserIdsSize":42,"validatorUserIds":[42],"realValidated":true,"systemValidated":true,"canEditProformaFlag":true,"proforma":true,"startDate":"string","endDate":"string"}]'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
[
{
"id": 42,
"journalEntryId": 42,
"number": "string",
"date": "string",
"clientId": 42,
"clientAddressId": 42,
"address": {
"id": 42,
"name": "string",
"line1": "string",
"line2": "string",
"city": "string",
"region": {
"id": 42,
"name": "string",
"code": "string",
"taxMode": "ANNUALLY"
},
"countryCode2": "string",
"postCode": "string",
"toTheAttentionOf": "string",
"position": 42,
"houseNumber": "string",
"countryId": 42,
"service": "string",
"readOnly": true
},
"ourContactId": 42,
"yourContactId": 42,
"clientName": "string",
"reference": "string",
"yourReference": "string",
"currencyId": 42,
"description": "string",
"comments": "string",
"warnings": "string",
"receivableAccountId": 42,
"vatTypeCodeId": 42,
"excludedFromVat": true,
"invoiceLines": [
{
"id": 42,
"tempId": 42,
"lineType": "ARTICLE",
"quantity": 42.0,
"articleId": 42,
"isArticleShipped": true,
"description": "string",
"longDescription": "string",
"netUnitPrice": 42.0,
"discount": 42.0,
"totalNet": 42.0,
"vatRateId": 42,
"vat": 42.0,
"totalPrice": 42.0,
"saleAccountId": 42,
"departmentId": 42,
"allocationKey": "string",
"appliedAllocationRules": [
"string"
],
"vatTypeCodeId": 42,
"articleName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"saleAccountName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"departmentName": "string",
"fixedAssetName": "string",
"fixedAssetId": 42,
"officeId": 42,
"officeName": "string"
}
],
"invoiceLinesLayout": [
{
"id": 42,
"name": "string",
"parentId": 42,
"position": 42,
"lineType": "ARTICLE",
"salesInvoiceLineId": 42,
"sourceOrderId": 42
}
],
"payments": [
{
"id": 42,
"receivableByAccountId": 42,
"requestedDate": "string",
"overdueDate": "string",
"valueDate": "string",
"sentDate": "string",
"requestedAmount": "string",
"paidAmount": "string",
"bankCharges": "string",
"lossOnDebtors": "string",
"isFromLockedAccountingPeriod": true,
"qrBillData": "string",
"receivableByAccountName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"qrReferenceNumber": "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",
"orderArticleId": 42,
"salesInvoiceLineId": 42
}
],
"timesheetInfoItems": [
{
"id": 42,
"date": "string",
"description": "string",
"time": "string",
"billableAmount": "string",
"billableRate": "string",
"employeeContactId": 42,
"originalTimesheetId": 42,
"employeeTaskId": 42
}
],
"sourceOrderId": 42,
"sourceSubOrderId": 42,
"bvrGenerationAvailability": true,
"qrGenerationAvailability": true,
"isFromLockedAccountingPeriod": true,
"isContainsFixedAsset": true,
"accrualFrom": "string",
"accrualTo": "string",
"accrualEntriesAmount": 42,
"validated": true,
"validatorUserIdsSize": 42,
"validatorUserIds": [
42
],
"realValidated": true,
"systemValidated": true,
"canEditProformaFlag": true,
"proforma": true,
"startDate": "string",
"endDate": "string"
}
]
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
}
]
}