New property on VatCode
by Henric Ström
OssCodeType
OssCodeTypeis a readonly property added to the response object of the endpoint GET /v2/vatcodes. The values are 0 = None, 1 = Sales, 2 = Vat with 0 = None as default value. Values 1 = Sales and 2 = Vat are only returned if the company has the setting Apply rules for One Stop Shop (OSS) activated.
New properties on AttachmentResult
by Henric Ström
TransactionDate
TransactionDateis a readonly property added to the response object of the endpoint GET /v2/attachments and GET /v2/attachment/{id}. The value is set if the source image has been interpreted. It represents the date of the transaction for the source document; eg invoice date for a supplier invoice, payment date for a receipt.
CurrencyCode
CurrencyCodeis a readonly property added to the response object of the endpoint GET /v2/attachments and GET /v2/attachment/{id}. The value is set if the source image has been interpreted. It represents the currency code for the amount from the source document.
New User Authentication recommandations and information
by Sorin Turoiu
Useprompt=select_accountto always prompt the selection of companyUp until now
acr_values=service:44643EB1-3F76-4C1C-A672-402AE8085934+forceselectcompany:truein combination withprompt=loginwas used to ignore the standard company setting in Visma Online and always prompt the user with the selection of company.
Now you can useprompt=select_accountto achieve that. Both options forpromptcan be used to force login as well:prompt=login+select_account.The recommandation is to use
prompt=select_account&acr_values=service:44643EB1-3F76-4C1C-A672-402AE8085934.
Please check the authentication page for more information.Disclaimer:
prompt=select_accountdoes not work in Sandbox. Since that is a test environment there are differences compared to Production in regards to the Identity Server implementation. We are working on aligning them in the near future.
Payments endpoints not allowing future payment date
by Sorin Turoiu
Payments endpoints will not allow future payment dateIn order to align to the behaviour inside eAccounting the API will not allow payment dates in the future when using
POST /v2/customerinvoices/{invoiceId}/paymentsandPOST /v2/supplierinvoices/{invoiceId}/paymentsendpoints. A validation exception will be returned in that case.
CustomerInvoiceDraft updates
by Sorin Turoiu
New mapping on empty InvoiceAddress1 and InvoiceAddress2 for POST /v2/customerinvoicedraftsIn order to fix a bug and align to the behaviour inside eAccounting when doing a POST on /v2/customerinvoicedrafts and not providing a value for InvoiceAddress1 and InvoiceAddress2 the values will be taken from the customer.
New property on CustomerInvoiceDraft
by Henric StrömReplaceUnitPriceWhenZero:
This new property allows better control when creating an invoice draft that contains rows which have the unit price set to 0. The main reason for this change was to have the same behavior in the API as we have in the web application.
When the new field is set to true an unit price of zero will be replaced with the unit price of the article from the article register. When set to false it allows creation of drafts with unit price 0 on one or more rows. Rows with an unit price other than 0 are not affected by this property.
The default value is false.
New endpoints: Voucher Drafts
by Sorin TuroiuRelease of a highly requested feature by AOs in collaboration with customers.
This will enable end users to save manual journal entries as a draft and then allow the AO to review them and edit if needed before posting them to ledger.
The new endpoints enable the possibility to create, get, update, delete a draft or convert it to a voucher.
Changelog
- added: POST
v2/voucherdrafts - added: GET
v2/voucherdrafts - added: GET
v2/voucherdrafts/{voucherDraftId} - added: PUT
v2/voucherdrafts/{voucherDraftId} - added: DELETE
v2/voucherdrafts/{voucherDraftId} - added: POST
v2/voucherdrafts/{voucherDraftId}/convert
CompanySettings updates
by Sorin TuroiuNew properties on v2/companysettings.
Changelog
UseAutomaticVatCalculation: optional boolean. When set to true, vat rows are added (when creating a voucher for example), if the account used relates to (SE, NO, FI only)ShowCostCenterReminder: read-only boolean. Customer has opted to get reminded about adding a cost center when creating invoices.ShowProjectReminder: read-only boolean. Customer has opted to get reminded about adding a cost center when creating invoices.
Customer Invoices new validation on rot/rut
by Sorin Turoiu
New validation error on POST /v2/customerinvoices - RotReducedInvoicingPropertyNameIn order to fix a bug and align to the behaviour inside eAccounting the API will now return a
2000 - DataModelValidationErrorwhen usingPOST /v2/customerinvoiceswith a setRotPropertyTypebut emptyRotReducedInvoicingPropertyName.
