Modify batch of sales invoices

POST /api-v1/sales-invoice/batch

Headers

Body Required

salesInvoices

Responses

  • 200

    OK

    Hide response attribute Show response attribute object
    • items array[object]
      Hide items attributes Show items attributes object
      • error boolean
      • Hide errorCode attributes Show errorCode attributes
        • Values are NO_ERROR, NOT_IMPLEMENTED_YET, CONTACT_NOT_FOUND, FIELD_REQUIRED, VALIDATION_ERROR, DUPLICATION_ERROR, UNIQUE_CONSTRAINT_VIOLATION, WRONG_PASSWORD_FORMAT, WRONG_PASSWORD, ACTION_DENIED, NOT_FOUND, EXPECTED_ONE_FILE, UNIQUE_VIOLATION, CONTENT_EMPTY, INVALID_TYPE, CONVERSION_ERROR, FILE_PARSE_EXCEPTION, or IN_USE.

        • errorDetailValues array[object]
          Hide errorDetailValues attributes Show errorDetailValues attributes object
      • freshRow object
      • possibleWorkflows array[object]
        Hide possibleWorkflows attributes Show possibleWorkflows attributes object
  • 400

    Error

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/sales-invoice/batch
curl \
 -X POST http://wyzio.app/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"},"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,"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 example
# 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"
      },
      "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,
        "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
    }
  ]
}