POST /api-v1/purchase-invoice/batch

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

Query parameters

  • suppressDuplicateWarning boolean
application/json

Body Required

  • id integer
  • journalEntryId integer
  • organizationId integer
  • date string Required
  • supplierId integer Required
  • currencyId integer Required
  • reference string Required
  • description string
  • comment string
  • validated boolean
  • vatType string

    Values are NO_VAT, NATIVE, or IMPORT_OF_SERVICE.

  • vatTypeCodeId integer
  • paymentAccountId integer
  • amounts array[object] Required
    Hide amounts attributes Show amounts attributes object
    • id integer
    • vatRateId integer
    • amountType string

      Values are NO_VAT, VAT_RATE, or MANUAL.

    • net string
    • vat string
    • vatType string

      Values are NO_VAT, NATIVE, or IMPORT_OF_SERVICE.

    • vatTypeCodeId integer
  • attributions array[object]
    Hide attributions attributes Show attributions attributes object
    • id integer
    • chartOfAccountsId integer Required
    • dateFrom string Required
    • dateTo string Required
    • net string
    • percent string
    • departmentId integer
    • orderId integer
    • orderIdToDisplay string
    • orderClientId integer
    • reBillDate string(date-time)
    • reBill boolean
    • articleId integer
    • quantity string
    • shipments array[object]
      Hide shipments attributes Show shipments attributes object
      • id integer
      • shipmentDate string
      • articleId integer
      • quantity string
      • currencyCode string
      • totalCost number
      • generatedStockMovementId integer
      • articleName object
        Hide articleName attributes Show articleName attributes object
        • en string
        • fr string
        • de string
        • it string
      • articleIdSku string
      • attributionId integer
      • departmentId integer
      • officeId integer
    • appliedAllocationRules array[string]
    • chartOfAccountsName object
      Hide chartOfAccountsName attributes Show chartOfAccountsName attributes object
      • en string
      • fr string
      • de string
      • it string
    • departmentName string
    • articleName object
      Hide articleName attributes Show articleName attributes object
      • en string
      • fr string
      • de string
      • it string
    • fixedAssetName string
    • fixedAssetId integer
    • officeId integer
    • officeName string
    • readOnly boolean
    • startDate string
    • endDate string
  • payments array[object] Required
    Hide payments attributes Show payments attributes object
    • id integer
    • requestedDate string Required
    • plannedDate string
    • sentDate string
    • valueDate string
    • requestedAmount string
    • paidAmount string
    • bankCharges string
    • payableByAccountId integer
    • paymentType string Required

      Values are BANK_TRANSFER, BVR, or QR_BILL.

    • payableToBankId integer
    • lineCode string
    • accountNumber string
    • referenceNumber string
    • qrBillData string
    • isFromLockedAccountingPeriod boolean
    • payableByAccountName object
      Hide payableByAccountName attributes Show payableByAccountName attributes object
      • en string
      • fr string
      • de string
      • it string
    • paymentPurposeCodeId integer
  • warnings string
  • isFromLockedAccountingPeriod boolean
  • accrualEntriesAmount integer(int32)
  • isDraft boolean
  • validatorUserIdsSize integer
  • validatorUserIds array[integer(int32)]
  • realValidated boolean
  • systemValidated boolean
  • isContainsSoldFixedAsset boolean

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • items array[object]
      Hide items attributes Show items attributes object
      • 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
          • errorCode string
          • fieldName string
          • data string
          • isSevere boolean
      • freshRow object
      • freshData object
      • possibleWorkflows array[object]
        Hide possibleWorkflows attributes Show possibleWorkflows attributes object
        • id integer
        • name string
      • error boolean
      • severeError boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/purchase-invoice/batch
curl \
 --request POST 'https://wyzio.app/api-v1/purchase-invoice/batch' \
 --header "Content-Type: application/json" \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --data '[{"id":42,"journalEntryId":42,"organizationId":42,"date":"string","supplierId":42,"currencyId":42,"reference":"string","description":"string","comment":"string","validated":true,"vatType":"NO_VAT","vatTypeCodeId":42,"paymentAccountId":42,"amounts":[{"id":42,"vatRateId":42,"amountType":"NO_VAT","net":"string","vat":"string","vatType":"NO_VAT","vatTypeCodeId":42}],"attributions":[{"id":42,"chartOfAccountsId":42,"dateFrom":"string","dateTo":"string","net":"string","percent":"string","departmentId":42,"orderId":42,"orderIdToDisplay":"string","orderClientId":42,"reBillDate":"2026-05-04T09:42:00Z","reBill":true,"articleId":42,"quantity":"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","attributionId":42,"departmentId":42,"officeId":42}],"appliedAllocationRules":["string"],"chartOfAccountsName":{"en":"string","fr":"string","de":"string","it":"string"},"departmentName":"string","articleName":{"en":"string","fr":"string","de":"string","it":"string"},"fixedAssetName":"string","fixedAssetId":42,"officeId":42,"officeName":"string","readOnly":true,"startDate":"string","endDate":"string"}],"payments":[{"id":42,"requestedDate":"string","plannedDate":"string","sentDate":"string","valueDate":"string","requestedAmount":"string","paidAmount":"string","bankCharges":"string","payableByAccountId":42,"paymentType":"BANK_TRANSFER","payableToBankId":42,"lineCode":"string","accountNumber":"string","referenceNumber":"string","qrBillData":"string","isFromLockedAccountingPeriod":true,"payableByAccountName":{"en":"string","fr":"string","de":"string","it":"string"},"paymentPurposeCodeId":42}],"warnings":"string","isFromLockedAccountingPeriod":true,"accrualEntriesAmount":42,"isDraft":true,"validatorUserIdsSize":42,"validatorUserIds":[42],"realValidated":true,"systemValidated":true,"isContainsSoldFixedAsset":true}]'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42

# Payload
[
  {
    "id": 42,
    "journalEntryId": 42,
    "organizationId": 42,
    "date": "string",
    "supplierId": 42,
    "currencyId": 42,
    "reference": "string",
    "description": "string",
    "comment": "string",
    "validated": true,
    "vatType": "NO_VAT",
    "vatTypeCodeId": 42,
    "paymentAccountId": 42,
    "amounts": [
      {
        "id": 42,
        "vatRateId": 42,
        "amountType": "NO_VAT",
        "net": "string",
        "vat": "string",
        "vatType": "NO_VAT",
        "vatTypeCodeId": 42
      }
    ],
    "attributions": [
      {
        "id": 42,
        "chartOfAccountsId": 42,
        "dateFrom": "string",
        "dateTo": "string",
        "net": "string",
        "percent": "string",
        "departmentId": 42,
        "orderId": 42,
        "orderIdToDisplay": "string",
        "orderClientId": 42,
        "reBillDate": "2026-05-04T09:42:00Z",
        "reBill": true,
        "articleId": 42,
        "quantity": "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",
            "attributionId": 42,
            "departmentId": 42,
            "officeId": 42
          }
        ],
        "appliedAllocationRules": [
          "string"
        ],
        "chartOfAccountsName": {
          "en": "string",
          "fr": "string",
          "de": "string",
          "it": "string"
        },
        "departmentName": "string",
        "articleName": {
          "en": "string",
          "fr": "string",
          "de": "string",
          "it": "string"
        },
        "fixedAssetName": "string",
        "fixedAssetId": 42,
        "officeId": 42,
        "officeName": "string",
        "readOnly": true,
        "startDate": "string",
        "endDate": "string"
      }
    ],
    "payments": [
      {
        "id": 42,
        "requestedDate": "string",
        "plannedDate": "string",
        "sentDate": "string",
        "valueDate": "string",
        "requestedAmount": "string",
        "paidAmount": "string",
        "bankCharges": "string",
        "payableByAccountId": 42,
        "paymentType": "BANK_TRANSFER",
        "payableToBankId": 42,
        "lineCode": "string",
        "accountNumber": "string",
        "referenceNumber": "string",
        "qrBillData": "string",
        "isFromLockedAccountingPeriod": true,
        "payableByAccountName": {
          "en": "string",
          "fr": "string",
          "de": "string",
          "it": "string"
        },
        "paymentPurposeCodeId": 42
      }
    ],
    "warnings": "string",
    "isFromLockedAccountingPeriod": true,
    "accrualEntriesAmount": 42,
    "isDraft": true,
    "validatorUserIdsSize": 42,
    "validatorUserIds": [
      42
    ],
    "realValidated": true,
    "systemValidated": true,
    "isContainsSoldFixedAsset": true
  }
]
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
    }
  ]
}