Ability to retrieve the ID of the transaction posted

Hi - just getting into the API now with a real system. I’m trying to find documentation relating to posting Invoices. It would be really useful when posting an Invoice for the API to return the Reference generated (or at least the ID) . Something akin to SELECT @@IDENTITY in database terms. Is this possible at all?

You should get the newly-created invoice back, as JSON.

The JSON includes the reference field, and the ID is in the url field.