Ref: https://github.com/inventree/InvenTree/pull/11963 - Determine the API version first - Update the API calls to match the new endpoints
Ref: inventree/InvenTree#11963