put
https://api.loopsubscriptions.com/storefront/2023-10/bundle/transaction
Updates an existing draft bundle transaction in place - when a customer edits their bundle in the cart (changing products, quantities, discount, box size, or selling plan) before purchase.
Previously you had to call Create transaction again for every edit and rewrite the cart line with a new txnId. With this endpoint you keep the same transactionId across edits and simply refresh the cart.
Auth: Storefront-callable (no token)
Draft only. Only transactions in
draftstatus can be updated. A transaction that has been purchased is no longer draft - edit those with Update subscription bundle instead.
Example flow
- Customer adds a product → call Create transaction → gets
transactionId. - Call
/cart/add.js(with_bundleId: transactionId) to open the cart. - Customer edits the bundle in the cart.
- call Update transaction with the same
transactionId. - Call
/cart/add.jsagain to reflect the updated cart. (The_bundleIdalready on the lines stays valid.