One order with multiple transactions

New Member
1 0 1

We're creating an app to help with Shopify Bookkeeping.

We have come across an issue whereby we are trying to separate the line items for a specific transaction because the corresponding order actually has two transactions not one.

Reason being that the order was edited after it was placed and an extra line item was added. This resulted in two transactions for the same one order.

How can we work out which line items from the order API are for transaction 1 and which are from transaction 2?

We worked it out manually using the Order timeline section on the Store admin page but this "timeline" does not seem to be available through the API?