code change · fixIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#9112 [Shopify] Skip refund credit memo while transaction is pending

Shopify refund processing now skips credit memo creation when the refund transaction is still pending, preventing financially invalid documents with zero totals. The refund is retried on the next sync once the transaction succeeds.

Pull request · merged into main (BC30) on 2026-07-09 by onbuyuka · 5 files (+141 -0), 3 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Added internal helper to detect pending refund transactions
  • Manual credit memo creation path throws an error if transaction is pending
  • Automatic sync path silently skips processing until transaction succeeds
  • Unprocessed refunds are retried on every sync cycle
  • Prevents credit memos with incorrect zero totals when Shopify’s totalRefundedSet returns 0
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#640432
  • Labels: AL: Apps (W1)
  • Systems: integration
  • From the description: “Block credit memo / return order creation while the refund still has a pending transaction”

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).