My Products
Help
Sander_Feenstra
CONTRIBUTOR *

How to post a "zero" invoice

by Sander_Feenstra

Hi There,

 

How do I post a "zero" invoice ?

 

Error requesting: POST "https://integration.visma.net/API/controller/api/v2/customerinvoice"
HTTP error: 400 - Bad Request
message: Error: Inserting  'Sales invoice/note' record raised at least one error. Please review the errors.
Enter the quantity and amounts on all detail lines to save or release the invoice.


Body: {
  "branchNumber": {
    "value": "4"
  },
  "overrideNumberSeries": {
    "value": true
  },
  "referenceNumber": {
    "value": "2405471"
  },
  "customerNumber": {
    "value": "D04623"
  },
  "documentDate": {
    "value": "2024-05-16T00:00:00"
  },
  "creditTermsId": {
    "value": "30"
  },
  "documentDueDate": {
    "value": "2024-06-15T00:00:00"
  },
  "currencyId": {
    "value": "EUR"
  },
  "externalReference": {
    "value": "2405471"
  },
  "paymentReference": {
    "value": "2405471"
  },
  "hold": {
    "value": false
  },
  "postPeriod": {
    "value": "052024"
  },
  "dontPrint": {
    "value": true
  },
  "dontEmail": {
    "value": true
  },
  "invoiceLines": [
    {
      "operation": "insert",
      "lineNumber": {
        "value": 1
      },
      "description": {
        "value": "D04623 2405471"
      },
      "quantity": {
        "value": null
      },
      "manualAmountInCurrency": {
        "value": 0.0000
      },
      "accountNumber": {
        "value": "8101"
      },
      "vatCodeId": {
        "value": "1"
      },
      "subaccount": []
    }
  ],
  "taxDetailLines": []
}

 

Thanks in advance.

 

Best regards,

Sander Feenstra

 

 

 

1 REPLY 1
Accepted solution
Marten Voort
VISMA

by Marten Voort

Hi Sander, unfortunately zero invoices without any amount or quantity are not supported. This is the same in UI. The only workarounds are adding amounts with a total of zero in multiple lines, or really simple add a quantity of 1 (or any other). Let us know if this helps.