Modify batch of sales invoices

POST /api-v1/sales-invoice/batch

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

application/json

Body Required

salesInvoices

  • accrualEntriesAmount integer(int32)
  • accrualFrom string
  • accrualTo string
  • address object
    Hide address attributes Show address attributes object
    • city string
    • countryCode2 string
    • countryId integer
    • houseNumber string
    • id integer
    • line1 string
    • line2 string
    • name string
    • position integer(int32)
    • postCode string
    • readOnly boolean
    • region object
      Hide region attributes Show region attributes object
      • code string
      • id integer
      • name string
      • taxMode string

        Values are ANNUALLY or MONTHLY.

    • service string
    • toTheAttentionOf string
  • bvrGenerationAvailability boolean
  • 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]
    Hide invoiceLines attributes Show invoiceLines attributes object
    • allocationKey string
    • appliedAllocationRules array[string]
    • articleId integer
    • articleName object
      Hide articleName attributes Show articleName attributes object
      • de string
      • en string
      • fr string
      • it string
    • departmentId integer
    • departmentName string
    • description string
    • discount number
    • fixedAssetId integer
    • fixedAssetName string
    • id integer
    • isArticleShipped boolean
    • lineType string

      Values are ARTICLE, NO_ARTICLE, TIMESHEET, EXPENSES, DISBURSEMENT, HEADER, or FIXED_ASSET.

    • longDescription string
    • netUnitPrice number
    • officeId integer
    • officeName string
    • quantity number
    • saleAccountId integer
    • saleAccountName object
      Hide saleAccountName attributes Show saleAccountName attributes object
      • de string
      • en string
      • fr string
      • it string
    • tempId integer
    • totalNet number
    • totalPrice number
    • vat number
    • vatRateId integer
    • vatTypeCodeId integer
  • invoiceLinesLayout array[object]
    Hide invoiceLinesLayout attributes Show invoiceLinesLayout attributes object
    • children array[object]
    • id integer
    • lineType string

      Values are ARTICLE, NO_ARTICLE, TIMESHEET, EXPENSES, DISBURSEMENT, HEADER, or FIXED_ASSET.

    • name string
    • parentId integer
    • position integer(int32)
    • salesInvoiceLineId integer
    • sourceOrderId integer
  • isContainsFixedAsset boolean
  • isFromLockedAccountingPeriod boolean
  • journalEntryId integer
  • number string
  • ourContactId integer
  • payments array[object]
    Hide payments attributes Show payments attributes object
    • bankCharges string
    • id integer
    • isFromLockedAccountingPeriod boolean
    • lossOnDebtors string
    • overdueDate string
    • paidAmount string
    • qrBillData string
    • qrReferenceNumber string
    • receivableByAccountId integer
    • receivableByAccountName object
      Hide receivableByAccountName attributes Show receivableByAccountName attributes object
      • de string
      • en string
      • fr string
      • it string
    • requestedAmount string
    • requestedDate string
    • sentDate string
    • valueDate string
  • proforma boolean
  • qrGenerationAvailability boolean
  • realValidated boolean
  • receivableAccountId integer
  • reference string
  • shipments array[object]
    Hide shipments attributes Show shipments attributes object
    • articleId integer
    • articleIdSku string
    • articleName object
      Hide articleName attributes Show articleName attributes object
      • de string
      • en string
      • fr string
      • it string
    • currencyCode string
    • generatedStockMovementId integer
    • id integer
    • orderArticleId integer
    • quantity string
    • salesInvoiceLineId integer
    • shipmentDate string
    • totalCost number
  • sourceOrderId integer
  • sourceSubOrderId integer
  • startDate string
  • systemValidated boolean
  • timesheetInfoItems array[object]
    Hide timesheetInfoItems attributes Show timesheetInfoItems attributes object
    • billableAmount string
    • billableRate string
    • date string
    • description string
    • employeeContactId integer
    • employeeTaskId integer
    • id integer
    • originalTimesheetId integer
    • time string
  • validated boolean
  • validatorUserIds array[integer(int32)]
  • validatorUserIdsSize integer
  • vatTypeCodeId integer
  • warnings string
  • yourContactId integer
  • yourReference string

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • items array[object]
      Hide items attributes Show items attributes object
      • error boolean
      • errorCode object
        Hide errorCode attributes Show errorCode attributes object
        • errorCode string

          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
          • data string
          • errorCode string
          • fieldName string
          • isSevere boolean
      • freshData object
      • freshRow object
      • possibleWorkflows array[object]
        Hide possibleWorkflows attributes Show possibleWorkflows attributes object
        • id integer
        • name string
      • severeError boolean
  • 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 \
 --request POST 'https://wyzio.app/api-v1/sales-invoice/batch' \
 --header "Content-Type: application/json" \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string" \
 --data '[{"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
    }
  ]
}