DEFRA / sroc-service-team

Guides, info and issue management for the Charging Module Team
Other
0 stars 1 forks source link

Add invoice and licence delete endpoints to spec #38

Closed Cruikshanks closed 3 years ago

Cruikshanks commented 3 years ago

As part of Version 2 of the API invoices and licences will be actual records in the DB with links to the relevant bill runs and transactions. This is all part of the changes we are making to fix the performance issues in the API.

Because of this, it means we can add endpoint dedicated to there deletion that work based on ID rather than as a query param. The benefit to us is

Exactly where these endpoints will sit is still unknown. For example, should they also sit under ../bill-runs/ or should we look to have a /{regime}/invoices path? So these changes add them under the suggested tag for now.