Modify batch of sales invoices
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
salesInvoices
-
accrualEntriesAmount integer(int32)
-
accrualFrom string
-
accrualTo string
-
address object
Additional properties are allowed.
-
canEditProformaFlag boolean
-
clientAddressId integer
-
clientId integer
-
clientName string
-
comments string
-
currencyId integer
-
date string
-
description string
-
endDate string
-
excludedFromVat boolean
-
id integer
-
invoiceLines array[object]
-
invoiceLinesLayout array[object]
-
isContainsFixedAsset boolean
-
isFromLockedAccountingPeriod boolean
-
journalEntryId integer
-
number string
-
ourContactId integer
-
payments array[object]
-
proforma boolean
-
realValidated boolean
-
receivableAccountId integer
-
reference string
-
shipments array[object]
-
sourceOrderId integer
-
sourceSubOrderId integer
-
startDate string
-
systemValidated boolean
-
timesheetInfoItems array[object]
-
validated boolean
-
validatorUserIds array[integer(int32)]
-
validatorUserIdsSize integer
-
vatTypeCodeId integer
-
warnings string
-
yourContactId integer
-
yourReference string
POST /api-v1/sales-invoice/batch
curl \
-X POST http://10.10.10.132/api-v1/sales-invoice/batch \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '[{"accrualEntriesAmount":42,"accrualFrom":"string","accrualTo":"string","address":{"city":"string","countryCode2":"string","countryId":42,"houseNumber":"string","id":42,"line1":"string","line2":"string","name":"string","position":42,"postCode":"string","readOnly":true,"region":{"code":"string","id":42,"name":"string","taxMode":"ANNUALLY"},"service":"string","toTheAttentionOf":"string"},"bvrGenerationAvailability":true,"canEditProformaFlag":true,"clientAddressId":42,"clientId":42,"clientName":"string","comments":"string","currencyId":42,"date":"string","description":"string","endDate":"string","excludedFromVat":true,"id":42,"invoiceLines":[{"allocationKey":"string","appliedAllocationRules":["string"],"articleId":42,"articleName":{"de":"string","en":"string","fr":"string","it":"string"},"departmentId":42,"departmentName":"string","description":"string","discount":42.0,"fixedAssetId":42,"fixedAssetName":"string","id":42,"isArticleShipped":true,"lineType":"ARTICLE","longDescription":"string","netUnitPrice":42.0,"officeId":42,"officeName":"string","quantity":42.0,"saleAccountId":42,"saleAccountName":{"de":"string","en":"string","fr":"string","it":"string"},"tempId":42,"totalNet":42.0,"totalPrice":42.0,"vat":42.0,"vatRateId":42,"vatTypeCodeId":42}],"invoiceLinesLayout":[{"children":[{}],"id":42,"lineType":"ARTICLE","name":"string","parentId":42,"position":42,"salesInvoiceLineId":42,"sourceOrderId":42}],"isContainsFixedAsset":true,"isFromLockedAccountingPeriod":true,"journalEntryId":42,"number":"string","ourContactId":42,"payments":[{"bankCharges":"string","id":42,"isFromLockedAccountingPeriod":true,"lossOnDebtors":"string","overdueDate":"string","paidAmount":"string","qrBillData":"string","qrReferenceNumber":"string","receivableByAccountId":42,"receivableByAccountName":{"de":"string","en":"string","fr":"string","it":"string"},"requestedAmount":"string","requestedDate":"string","sentDate":"string","valueDate":"string"}],"proforma":true,"qrGenerationAvailability":true,"realValidated":true,"receivableAccountId":42,"reference":"string","shipments":[{"articleId":42,"articleIdSku":"string","articleName":{"de":"string","en":"string","fr":"string","it":"string"},"currencyCode":"string","generatedStockMovementId":42,"id":42,"orderArticleId":42,"quantity":"string","salesInvoiceLineId":42,"shipmentDate":"string","totalCost":42.0}],"sourceOrderId":42,"sourceSubOrderId":42,"startDate":"string","systemValidated":true,"timesheetInfoItems":[{"billableAmount":"string","billableRate":"string","date":"string","description":"string","employeeContactId":42,"employeeTaskId":42,"id":42,"originalTimesheetId":42,"time":"string"}],"validated":true,"validatorUserIds":[42],"validatorUserIdsSize":42,"vatTypeCodeId":42,"warnings":"string","yourContactId":42,"yourReference":"string"}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
[
{
"accrualEntriesAmount": 42,
"accrualFrom": "string",
"accrualTo": "string",
"address": {
"city": "string",
"countryCode2": "string",
"countryId": 42,
"houseNumber": "string",
"id": 42,
"line1": "string",
"line2": "string",
"name": "string",
"position": 42,
"postCode": "string",
"readOnly": true,
"region": {
"code": "string",
"id": 42,
"name": "string",
"taxMode": "ANNUALLY"
},
"service": "string",
"toTheAttentionOf": "string"
},
"bvrGenerationAvailability": true,
"canEditProformaFlag": true,
"clientAddressId": 42,
"clientId": 42,
"clientName": "string",
"comments": "string",
"currencyId": 42,
"date": "string",
"description": "string",
"endDate": "string",
"excludedFromVat": true,
"id": 42,
"invoiceLines": [
{
"allocationKey": "string",
"appliedAllocationRules": [
"string"
],
"articleId": 42,
"articleName": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"departmentId": 42,
"departmentName": "string",
"description": "string",
"discount": 42.0,
"fixedAssetId": 42,
"fixedAssetName": "string",
"id": 42,
"isArticleShipped": true,
"lineType": "ARTICLE",
"longDescription": "string",
"netUnitPrice": 42.0,
"officeId": 42,
"officeName": "string",
"quantity": 42.0,
"saleAccountId": 42,
"saleAccountName": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"tempId": 42,
"totalNet": 42.0,
"totalPrice": 42.0,
"vat": 42.0,
"vatRateId": 42,
"vatTypeCodeId": 42
}
],
"invoiceLinesLayout": [
{
"children": [
{}
],
"id": 42,
"lineType": "ARTICLE",
"name": "string",
"parentId": 42,
"position": 42,
"salesInvoiceLineId": 42,
"sourceOrderId": 42
}
],
"isContainsFixedAsset": true,
"isFromLockedAccountingPeriod": true,
"journalEntryId": 42,
"number": "string",
"ourContactId": 42,
"payments": [
{
"bankCharges": "string",
"id": 42,
"isFromLockedAccountingPeriod": true,
"lossOnDebtors": "string",
"overdueDate": "string",
"paidAmount": "string",
"qrBillData": "string",
"qrReferenceNumber": "string",
"receivableByAccountId": 42,
"receivableByAccountName": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"requestedAmount": "string",
"requestedDate": "string",
"sentDate": "string",
"valueDate": "string"
}
],
"proforma": true,
"qrGenerationAvailability": true,
"realValidated": true,
"receivableAccountId": 42,
"reference": "string",
"shipments": [
{
"articleId": 42,
"articleIdSku": "string",
"articleName": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"currencyCode": "string",
"generatedStockMovementId": 42,
"id": 42,
"orderArticleId": 42,
"quantity": "string",
"salesInvoiceLineId": 42,
"shipmentDate": "string",
"totalCost": 42.0
}
],
"sourceOrderId": 42,
"sourceSubOrderId": 42,
"startDate": "string",
"systemValidated": true,
"timesheetInfoItems": [
{
"billableAmount": "string",
"billableRate": "string",
"date": "string",
"description": "string",
"employeeContactId": 42,
"employeeTaskId": 42,
"id": 42,
"originalTimesheetId": 42,
"time": "string"
}
],
"validated": true,
"validatorUserIds": [
42
],
"validatorUserIdsSize": 42,
"vatTypeCodeId": 42,
"warnings": "string",
"yourContactId": 42,
"yourReference": "string"
}
]
Response examples (200)
{
"items": [
{
"error": true,
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"freshData": {},
"freshRow": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"severeError": true
}
]
}