1984hosting / 1984-connector-for-dk-and-woocommerce

Synchronise products, prices and inventory status between your WooCommerce store and your DK account. Have DK generate invoices automatically on checkout without worrying about setitng up an email connection for your WordPress site.
GNU General Public License v3.0
1 stars 1 forks source link

Products with 11% VAT can't be POSTed to the DK API #132

Closed aldavigdis closed 4 months ago

aldavigdis commented 4 months ago

While POSTing products with 24% and 0% VAT to the DK API works, for some reason it does not work with 11%.

Here is an example POST request:

{
    "ItemCode": "lowtaxrate",
    "Description": "New product in lower tax bracket",
    "CurrencyCode": "ISK",
    "AllowNegativeInventiry": true,
    "AllowDiscount": true,
    "ShowItemInWebShop": true,
    "NetWeight": "",
    "TaxPercent": 11,
    "PropositionPrice": 0,
    "PropositionDateFrom": "",
    "PropositionDateTo": "",
    "SalesLedgerCode": "s003",
    "UnitPrice1WithTax": "3000",
    "Inactive": false
}

The DK API responds with the following:

{
    "Message": "Validation error: Error occured while creating a product.'Could not find VAT category for purchase with 11 percent for item code lotax"
}
aldavigdis commented 4 months ago

This may be related to #129. Perhaps all the tax codes and sales ledger codes need to be set here in order for 11% VAT to work. Closing in the meantime.