Skip to content

[releases/28.0] Shopify Payout sync skips records when multiple stores are connected#7687

Merged
onbuyuka merged 1 commit into
releases/28.0from
bugs/630990-backport
Apr 17, 2026
Merged

[releases/28.0] Shopify Payout sync skips records when multiple stores are connected#7687
onbuyuka merged 1 commit into
releases/28.0from
bugs/630990-backport

Conversation

@onbuyuka
Copy link
Copy Markdown
Contributor

@onbuyuka onbuyuka commented Apr 14, 2026

Summary

Backport of bug #630653 to releases/28.0.

Fixes AB#630995

Original PR(s): #7633

… setups (#7633)

## Summary
- Add `Shop Code` field to `Shpfy Payout` (30125) and `Shpfy Dispute`
(30155) tables, mirroring the existing pattern on `Shpfy Payment
Transaction`
- Filter `FindLast()` by Shop Code in `ImportNewPayouts()` and
`ImportNewDisputes()` so each store uses its own sync cursor instead of
the global max ID
- Add shop filtering to `UpdatePendingPayouts()`,
`UpdatePaymentTransactionPayoutIds()`, and `UpdateUnfinishedDisputes()`
to prevent cross-store API calls
- Set `Shop Code` on both insert and update paths in `ImportPayout()`
and `ImportDispute()` so existing records are backfilled on first sync
after deployment

Fixes
[AB#630653](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/630653)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@onbuyuka onbuyuka requested a review from a team as a code owner April 14, 2026 13:04
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Apr 14, 2026
@github-actions github-actions Bot added this to the Version 28.0 milestone Apr 14, 2026
@onbuyuka onbuyuka merged commit 9ea02e0 into releases/28.0 Apr 17, 2026
42 checks passed
@onbuyuka onbuyuka deleted the bugs/630990-backport branch April 17, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants