---
id: change/bcapps/9525
type: change
title: "#9525 [Shopify] Automatic Transaction Posting"
summary: Shopify payment transactions can now be automatically posted as general journal lines when related invoices or credit memos are posted in Business Central, with configurable journal templates and safety checks to prevent unintended posting.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit shpfy document link mgt.
  - permissionset shpfy - objects
  - codeunit shpfy auto gen. jnl.-post
  - codeunit shpfy auto post eligibility
  - codeunit shpfy auto post finalize
  - codeunit shpfy auto post transactions
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:29.587Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 15e8ab7c0b7b0069dd43d86a2c111f8b68539f52
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9525
    title: "microsoft/BCApps#9525: [Shopify] Automatic Transaction Posting"
    date: "2026-09-18"
    commit: 15e8ab7c0b7b0069dd43d86a2c111f8b68539f52
    t: null
    quote: Automatically posts successful, unused Capture, Sale, and Refund transactions after the related sales invoice or credit memo is posted.
links:
  learn: []
  objects:
    - object/codeunit/30262
    - object/permissionset/30104
    - object/codeunit/30422
    - object/codeunit/30424
    - object/codeunit/30423
    - object/codeunit/30236
    - object/page/30176
    - object/page/30132
    - object/page/30134
    - object/report/30118
    - object/table/30133
    - object/table/30134
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9525
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9525
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-18T12:21:36Z"
author: onbuyuka
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 14
  additions: 1820
  deletions: 13
  al: 12
apps:
  - Shopify
objects_touched:
  - key: codeunit/30262
    page: codeunit/30262
    type: codeunit
    id: 30262
    name: Shpfy Document Link Mgt.
    app: Shopify
    status: modified
  - key: permissionset/30104
    page: permissionset/30104
    type: permissionset
    id: 30104
    name: Shpfy - Objects
    app: Shopify
    status: modified
  - key: codeunit/30422
    page: codeunit/30422
    type: codeunit
    id: 30422
    name: Shpfy Auto Gen. Jnl.-Post
    app: Shopify
    status: added
  - key: codeunit/30424
    page: codeunit/30424
    type: codeunit
    id: 30424
    name: Shpfy Auto Post Eligibility
    app: Shopify
    status: added
  - key: codeunit/30423
    page: codeunit/30423
    type: codeunit
    id: 30423
    name: Shpfy Auto Post Finalize
    app: Shopify
    status: added
  - key: codeunit/30236
    page: codeunit/30236
    type: codeunit
    id: 30236
    name: Shpfy Auto Post Transactions
    app: Shopify
    status: added
  - key: page/30176
    page: page/30176
    type: page
    id: 30176
    name: Shpfy Filter Transactions
    app: Shopify
    status: added
  - key: page/30132
    page: page/30132
    type: page
    id: 30132
    name: Shpfy Payment Methods Mapping
    app: Shopify
    status: modified
  - key: page/30134
    page: page/30134
    type: page
    id: 30134
    name: Shpfy Transactions
    app: Shopify
    status: modified
  - key: report/30118
    page: report/30118
    type: report
    id: 30118
    name: Shpfy Suggest Payments
    app: Shopify
    status: modified
  - key: table/30133
    page: table/30133
    type: table
    id: 30133
    name: Shpfy Order Transaction
    app: Shopify
    status: modified
  - key: table/30134
    page: table/30134
    type: table
    id: 30134
    name: Shpfy Payment Method Mapping
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 620951
systems:
  - integration
quote: Automatically posts successful, unused Capture, Sale, and Refund transactions after the related sales invoice or credit memo is posted.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9525 [Shopify] Automatic Transaction Posting

> Shopify payment transactions can now be automatically posted as general journal lines when related invoices or credit memos are posted in Business Central, with configurable journal templates and safety checks to prevent unintended posting.

[Pull request](https://github.com/microsoft/BCApps/pull/9525) · merged into `main` (BC30) on 2026-09-18 by onbuyuka · 14 files (+1820 -13), 12 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Adds automatic posting setup fields to payment-method mappings with validation for journal template, batch, and balancing account requirements
- Automatically posts successful Capture, Sale, and Refund transactions after related sales invoices or credit memos are posted
- Posts through dedicated single-use journal batches to isolate transactions and prevent unrelated journal lines from being posted
- Includes safety features such as user permission checks, preview skipping, and isolated cleanup operations with telemetry
- Comprehensive test coverage for setup validation, various transaction types, partial invoices/refunds, and failure handling scenarios
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30262 "Shpfy Document Link Mgt."](../../objects/codeunit/30262.md), Shopify: modified
- [Permission set 30104 "Shpfy - Objects"](../../objects/permissionset/30104.md), Shopify: modified
- [Codeunit 30422 "Shpfy Auto Gen. Jnl.-Post"](../../objects/codeunit/30422.md), Shopify: added
- [Codeunit 30424 "Shpfy Auto Post Eligibility"](../../objects/codeunit/30424.md), Shopify: added
- [Codeunit 30423 "Shpfy Auto Post Finalize"](../../objects/codeunit/30423.md), Shopify: added
- [Codeunit 30236 "Shpfy Auto Post Transactions"](../../objects/codeunit/30236.md), Shopify: added
- [Page 30176 "Shpfy Filter Transactions"](../../objects/page/30176.md), Shopify: added
- [Page 30132 "Shpfy Payment Methods Mapping"](../../objects/page/30132.md), Shopify: modified
- [Page 30134 "Shpfy Transactions"](../../objects/page/30134.md), Shopify: modified
- [Report 30118 "Shpfy Suggest Payments"](../../objects/report/30118.md), Shopify: modified
- [Table 30133 "Shpfy Order Transaction"](../../objects/table/30133.md), Shopify: modified
- [Table 30134 "Shpfy Payment Method Mapping"](../../objects/table/30134.md), Shopify: modified

## Context

- Work items: AB#620951
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "Automatically posts successful, unused Capture, Sale, and Refund transactions after the related sales invoice or credit memo is posted."

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).
