This information is a clarification that applies to integrations that use VAT types REVERSE or EUINTERNAL on suppliers when creating supplier invoices.

In Fortnox, if you create supplier invoices with VAT Type REVERSE or EUINTERNAL (set on the supplier invoice or fetched from the supplier register), two invoice rows are automatically created containing the corresponding predefined VAT accounts.

If you want your invoice rows to match the exact input in the API call there are two options to achieve this:

  • The first option is to use VAT type REVERSE or EUINTERNAL in the supplier invoice call and additionally specify corresponding row codes (field Code) on the supplier invoice rows. This is described in Example 1 below.
  • The second option is to instead use VAT type NORMAL in the supplier invoice call and specify rows as you want them to appear, i.e. without any corresponding row codes.

You must use a valid combination of VAT type, sales type and codes – as displayed in the below table.  For example, if you have VAT type EUINTERNAL and sales type STOCK, you need to  specify code PRD on one row and have a corresponding row with the PRC code.

VAT Type Sales Type Code Description
EUINTERNAL STOCK PRD Product VAT Debit
PRC Product VAT Credit
SERVICE SRD Service VAT Debit
SRC Service VAT Credit
REVERSE STOCK /
SERVICE
CND Construction VAT Debit
CNC Construction VAT Credit

 

Example 1: With specified row codes

[...]
{
  "SupplierInvoice": {
    "AdministrationFee": "0",
    "Comments": "Test UIF product",
    "CostCenter": "",
    "DueDate": "2015-12-23",
    "ExternalInvoiceNumber": "",
    "ExternalInvoiceSeries": "",
    "Freight": "0",
    "InvoiceDate": "2015-12-13",
    "InvoiceNumber": "",
    "OCR": "",
    "OurReference": "",
    "RoundOffValue": "0",
    "SupplierInvoiceRows": [
      {
        "Account": 2645,
        "ArticleNumber": null,
        "Code": "PRD",
        "CostCenter": "",
        "AccountDescription": "Debiterad ingående moms",
        "ItemDescription": null,
        "Debit": 2500,
        "DebitCurrency": 2500,
        "Credit": 0,
        "CreditCurrency": 0,
        "TransactionInformation": "",
        "Price": 0,
        "Quantity": 0,
        "Total": 2500,
        "Unit": null
      },
      {
        "Account": 2615,
        "ArticleNumber": null,
        "Code": "PRC",
        "CostCenter": "",
        "ItemDescription": null,
        "Debit": 0,
        "DebitCurrency": 0,
        "Credit": 2500,
        "CreditCurrency": 2500,
        "TransactionInformation": "",
        "Price": 0,
        "Quantity": 0,
        "Total": -2500,
        "Unit": null
      },
      {
        "Account": 4515,
        "ArticleNumber": null,
        "Code": "",
        "CostCenter": "",
        "Debit": 10000,
        "DebitCurrency": 10000,
        "Credit": 0,
        "CreditCurrency": 0,
        "TransactionInformation": "",
        "Price": 0,
        "Quantity": 0,
        "Total": 10000,
        "Unit": null
      }
    ],
    "SupplierNumber": "1",
    "Total": "10000",
    "VAT": "0",
    "YourReference": "",
    "VATType": "EUINTERNAL",
    "SalesType": "STOCK"
  }
}

Codes_Sharp
Example 2: Without specified row codes

[...]
{
  "SupplierInvoice": {
    "AdministrationFee": "0",
    "Comments": "Test UIF product",
    "CostCenter": "",
    "DueDate": "2015-12-23",
    "ExternalInvoiceNumber": "",
    "ExternalInvoiceSeries": "",
    "Freight": "0",
    "InvoiceDate": "2015-12-13",
    "InvoiceNumber": "",
    "OCR": "",
    "OurReference": "",
    "RoundOffValue": "0",
    "SupplierInvoiceRows": [
      {
        "Account": 4515,
        "ArticleNumber": null,
        "Code": "",
        "CostCenter": "",
        "Debit": 10000,
        "DebitCurrency": 10000,
        "Credit": 0,
        "CreditCurrency": 0,
        "TransactionInformation": "",
        "Price": 0,
        "Quantity": 0,
        "Total": 10000,
        "Unit": null
      }
    ],
    "SupplierNumber": "1",
    "Total": "10000",
    "VAT": "0",
    "YourReference": "",
    "VATType": "EUINTERNAL",
    "SalesType": "STOCK"
  }
}
No_Codes_Sharp