Modify batch of purchase invoice scans
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Query parameters
-
suppressDuplicateWarning boolean
suppressDuplicateWarning
Body Required
scans
-
amounts array[object]
-
attributions array[object]
-
comment string
-
currencyId integer
-
date string
-
description string
-
document object
Additional properties are allowed.
-
id integer
-
isFromLockedAccountingPeriod boolean
-
isOrganizationNameIncluded boolean
-
isTreatedByManagingOrganization boolean
-
organizationId integer
-
paymentChartId integer
-
payments array[object]
-
reference string
-
status string
Values are
NEW
,PROCESS
,CONVERT
, orRECOGNIZING
. -
supplierId integer
-
validated boolean
-
vatType string
Values are
NO_VAT
,NATIVE
, orIMPORT_OF_SERVICE
. -
vatTypeCodeId integer
-
warnings string
PUT /api-v1/purchase-invoice-scan/batch
curl \
-X PUT http://10.10.10.132/api-v1/purchase-invoice-scan/batch \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '[{"amounts":[{"amountType":"NO_VAT","id":42,"net":"string","vat":"string","vatRateId":42,"vatType":"NO_VAT","vatTypeCodeId":42}],"attributions":[{"appliedAllocationRules":["string"],"articleId":42,"chartOfAccountsId":42,"dateFrom":"string","dateTo":"string","departmentId":42,"endDate":"string","id":42,"net":"string","officeId":42,"orderId":42,"orderIdToDisplay":"string","percent":"string","quantity":"string","reBill":true,"reBillDate":"2024-05-04T09:42:00+00:00","readOnly":true,"shipments":[{"articleId":42,"articleIdSku":"string","articleName":{"de":"string","en":"string","fr":"string","it":"string"},"attributionId":42,"currencyCode":"string","generatedStockMovementId":42,"id":42,"quantity":"string","shipmentDate":"string","totalCost":42.0}],"startDate":"string"}],"comment":"string","currencyId":42,"date":"string","description":"string","document":{"comments":"string","contact":{"email":"string","id":42,"name":"string"},"createdBy":"string","createdOn":"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","date":"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'","entityId":42,"fileExtension":"string","fileId":42,"id":42,"isSystem":true,"module":"ALL","name":"string","self":true,"size":42,"tags":[{"id":42,"name":"string"}]},"id":42,"isFromLockedAccountingPeriod":true,"isOrganizationNameIncluded":true,"isTreatedByManagingOrganization":true,"organizationId":42,"paymentChartId":42,"payments":[{"accountNumber":"string","bankCharges":"string","id":42,"isFromLockedAccountingPeriod":true,"lineCode":"string","paidAmount":"string","payableByAccountId":42,"payableToBankId":42,"paymentType":"BANK_TRANSFER","plannedDate":"string","qrBillData":"string","referenceNumber":"string","requestedAmount":"string","requestedDate":"string","sentDate":"string","valueDate":"string"}],"reference":"string","status":"NEW","supplierId":42,"validated":true,"vatType":"NO_VAT","vatTypeCodeId":42,"warnings":"string"}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
[
{
"amounts": [
{
"amountType": "NO_VAT",
"id": 42,
"net": "string",
"vat": "string",
"vatRateId": 42,
"vatType": "NO_VAT",
"vatTypeCodeId": 42
}
],
"attributions": [
{
"appliedAllocationRules": [
"string"
],
"articleId": 42,
"chartOfAccountsId": 42,
"dateFrom": "string",
"dateTo": "string",
"departmentId": 42,
"endDate": "string",
"id": 42,
"net": "string",
"officeId": 42,
"orderId": 42,
"orderIdToDisplay": "string",
"percent": "string",
"quantity": "string",
"reBill": true,
"reBillDate": "2024-05-04T09:42:00+00:00",
"readOnly": true,
"shipments": [
{
"articleId": 42,
"articleIdSku": "string",
"articleName": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"attributionId": 42,
"currencyCode": "string",
"generatedStockMovementId": 42,
"id": 42,
"quantity": "string",
"shipmentDate": "string",
"totalCost": 42.0
}
],
"startDate": "string"
}
],
"comment": "string",
"currencyId": 42,
"date": "string",
"description": "string",
"document": {
"comments": "string",
"contact": {
"email": "string",
"id": 42,
"name": "string"
},
"createdBy": "string",
"createdOn": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
"date": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
"entityId": 42,
"fileExtension": "string",
"fileId": 42,
"id": 42,
"isSystem": true,
"module": "ALL",
"name": "string",
"self": true,
"size": 42,
"tags": [
{
"id": 42,
"name": "string"
}
]
},
"id": 42,
"isFromLockedAccountingPeriod": true,
"isOrganizationNameIncluded": true,
"isTreatedByManagingOrganization": true,
"organizationId": 42,
"paymentChartId": 42,
"payments": [
{
"accountNumber": "string",
"bankCharges": "string",
"id": 42,
"isFromLockedAccountingPeriod": true,
"lineCode": "string",
"paidAmount": "string",
"payableByAccountId": 42,
"payableToBankId": 42,
"paymentType": "BANK_TRANSFER",
"plannedDate": "string",
"qrBillData": "string",
"referenceNumber": "string",
"requestedAmount": "string",
"requestedDate": "string",
"sentDate": "string",
"valueDate": "string"
}
],
"reference": "string",
"status": "NEW",
"supplierId": 42,
"validated": true,
"vatType": "NO_VAT",
"vatTypeCodeId": 42,
"warnings": "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
}
]
}