Muriuki, Levi M Thank you for posting your question in Microsoft Q&A. Based on error message Can't change property ApiVersion for non-current revision.
, it appears that you are trying to modify ApiVersion property in non-current revision (isCurrent as false) with bicep.
API version cannot be edited for a non-current revision and please review Revision descriptions for the list of the properties that cannot be edited (similar thread: https://learn.microsoft.com/en-us/answers/questions/1062269/cannot-update-api-description-for-an-api-revision posted by you).
Validate if Invoices.Services.sandbox
is versioned API for which API version is not null using https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/apis/get?tabs=HTTP. If the value is null, and still face the issue, we might have to review the payload to understand more and investigate the issue (I couldn't repro this issue in my APIM). In such case, you would have to create a ticket to support team to share the payload info/details.
I hope this helps your question and feel free to add a comment for any other questions. Would be happy to answer if any.