picqer / exact-php-client

PHP Client library for Exact Online
MIT License
165 stars 200 forks source link

GLAccount sync no longer provides DeductibilityPercentages #652

Closed olia-bn closed 4 weeks ago

olia-bn commented 3 months ago

It seems that the sync endpoint to GLAccounts no longer provides DeductibilityPercentages

https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SyncFinancialGLAccounts

Requesting the endpoint with this property will result in an exception:

Error 400: Type 'Exact.Web.Api.Models.GLAccountSync' does not have a property named 'DeductibilityPercentages'

DannyvdSluijs commented 3 months ago

I can confirm that Exact Online has removed the DeductibilityPercentages from the documentation for the Sync GLAccounts. See https://github.com/DannyvdSluijs/ExactOnlineRestApiReference/pull/161/files.

olia-bn commented 3 months ago

I've received the following confirmation / explanation from Exact support

Thank you for your question.

The DeductibilityPercentages is no longer available in the sync API, because if you used this correctly you should do an expand for this field. The expand would give an error. The error is because the timestamp for the GLAccounts might be different from the timestamp for the DeductibilityPercentages.

I have asked the developers to create a releasenote for this. So sorry they didn't create a releasenote upfront for this change.

DannyvdSluijs commented 3 months ago

See https://github.com/picqer/exact-php-client/pull/656 for a fix.