One order with multiple transactions

Topic summary

Central issue: After an order is edited in Shopify (e.g., an extra line item added), the order can have multiple payment transactions, but the API doesn’t clearly indicate which line items belong to which transaction.

Goal: Programmatically separate line items per transaction for accurate bookkeeping.

Current workaround: Manually infer from the Order timeline in the Shopify admin. However, this timeline is not exposed via the API.

Pain points:

  • Order API shows all line items with the original order creation timestamp, even those added later.
  • No apparent linkage between line items and specific transaction IDs.

Requested improvements:

  • API access to the admin timeline or equivalent edit history.
  • Metadata or fields that map line items to transaction(s) and reflect edit timestamps.

Outcome/Status: No solution or official guidance provided in the thread. Multiple participants express interest; the issue remains open.

Unanswered questions:

  • How to associate line items to particular transactions via existing endpoints?
  • Whether Shopify plans to expose timeline or edit history through the API.
Summarized with AI on January 31. AI used: gpt-5.

Background:
We’re creating an app to help with Shopify Bookkeeping.

Issue:
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.

Questions:
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?

Thanks

Dan

6 Likes

Would be interested in this too!

2 Likes

I would like to know how to do this too…

1 Like

I’m interested in this as well.

Yes exactly what I need ! Something to replicate the timeline ! At the moment, all line items are shown as created at the order creation date, even the ones added later :disappointed_face:

Also would love to know!

this would be great! :grinning_face_with_smiling_eyes: hint hint Shopify

1 Like