Okapi Okapi

/v2/expenses* → endpoint removal

FreeAgent API

Deprecated, no date

FreeAgent deprecated the body parameter depreciation_schedule for /v2/expenses* requests and responses without a shutdown date. The deprecation applies to expense and bill/bill item requests and responses. Calls that rely on this parameter will eventually fail once the removal takes effect.


Calls it hits

  • /v2/expenses*
  • body parameter depreciation_schedule

What to use instead of these calls

Describe the depreciation in capital_asset.depreciation_profile (method, asset_life_years or annual_depreciation_percentage, frequency) instead of depreciation_schedule.

In FreeAgent API's words

Deprecate depreciation_schedule for expense and bill/bill item requests and responses.

FreeAgent API, Announcement

Facts

API
FreeAgent API api.freeagent.com
Kind
Endpoint removal
Announced
March 7, 2024
Takes effect
No date given yet
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against FreeAgent API's own pages

Questions

When does this change take effect?

FreeAgent API deprecated /v2/expenses*, body parameter depreciation_schedule without giving a shutdown date yet.

Do these calls still work?

Yes, they still work: FreeAgent API has not given a shutdown date yet.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from FreeAgent API 2

  1. PUT /v2/credit_notes/{}/transitions/mark_as_cancelledEndpoint removal Stopped working
  2. No date /v2/bills*Endpoint removal Deprecated, no date

Is your code calling this?

Okapi finds the calls this change hits in your repo and opens the pull request with the fix.

Add to GitHub