---
id: change/bcapps/11899
type: change
title: "#11899 [Shopify] Tax matching fixes for country, Canadian HST, and zero-rate lines"
summary: The Shopify Tax Matching Agent now runs only for US and Canadian orders. It scopes Canadian HST/TVH jurisdictions by province, matches zero-rate tax lines, and holds orders as Tax Match Incomplete when a tax line is left without a jurisdiction. The matching prompt rules were also made consistent.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit shpfy tma activity log
  - codeunit shpfy tma events
  - codeunit shpfy tma matcher
  - codeunit shpfy tma notify
  - pageextension shpfy tma order tax lines
  - page shpfy tma order tax lines part
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:52.626Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1e03f388a72b0bb31f95aedb7a58472aff9a1c9b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11899
    title: "microsoft/BCApps#11899: [Shopify] Tax matching fixes for country, Canadian HST, and zero-rate lines"
    date: "2026-10-01"
    commit: 1e03f388a72b0bb31f95aedb7a58472aff9a1c9b
    t: null
    quote: Fix Shopify Tax Matching Agent behavior for supported North American orders
links:
  learn: []
  objects:
    - object/codeunit/30477-ca
    - object/codeunit/30473-ca
    - object/codeunit/30471-ca
    - object/codeunit/30476-ca
    - object/pageextension/30478-ca
    - object/page/30479-ca
    - object/page/30471-ca
    - object/tableextension/30476-ca
    - object/table/30122
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11899
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11899
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-01T16:17:54Z"
author: onbuyuka
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 19
  additions: 982
  deletions: 89
  al: 9
apps:
  - Shopify
  - ShopifyNA
objects_touched:
  - key: codeunit/30477
    page: codeunit/30477-ca
    type: codeunit
    id: 30477
    name: Shpfy TMA Activity Log
    app: ShopifyNA
    status: modified
  - key: codeunit/30473
    page: codeunit/30473-ca
    type: codeunit
    id: 30473
    name: Shpfy TMA Events
    app: ShopifyNA
    status: modified
  - key: codeunit/30471
    page: codeunit/30471-ca
    type: codeunit
    id: 30471
    name: Shpfy TMA Matcher
    app: ShopifyNA
    status: modified
  - key: codeunit/30476
    page: codeunit/30476-ca
    type: codeunit
    id: 30476
    name: Shpfy TMA Notify
    app: ShopifyNA
    status: modified
  - key: pageextension/30478
    page: pageextension/30478-ca
    type: pageextension
    id: 30478
    name: Shpfy TMA Order Tax Lines
    app: ShopifyNA
    status: modified
  - key: page/30479
    page: page/30479-ca
    type: page
    id: 30479
    name: Shpfy TMA Order Tax Lines Part
    app: ShopifyNA
    status: modified
  - key: page/30471
    page: page/30471-ca
    type: page
    id: 30471
    name: Shpfy TMA Review
    app: ShopifyNA
    status: modified
  - key: tableextension/30476
    page: tableextension/30476-ca
    type: tableextension
    id: 30476
    name: Shpfy TMA Order Header
    app: ShopifyNA
    status: modified
  - key: table/30122
    page: table/30122
    type: table
    id: 30122
    name: Shpfy Order Tax Line
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 651349
  - 651374
  - 651375
  - 651520
  - 651529
  - 652155
systems:
  - integration
quote: Fix Shopify Tax Matching Agent behavior for supported North American orders
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #11899 [Shopify] Tax matching fixes for country, Canadian HST, and zero-rate lines

> The Shopify Tax Matching Agent now runs only for US and Canadian orders. It scopes Canadian HST/TVH jurisdictions by province, matches zero-rate tax lines, and holds orders as Tax Match Incomplete when a tax line is left without a jurisdiction. The matching prompt rules were also made consistent.

[Pull request](https://github.com/microsoft/BCApps/pull/11899) · merged into `main` (BC30) on 2026-10-01 by onbuyuka · 19 files (+982 -89), 9 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Tax matching now runs only for US and Canadian orders
- Generic HST/TVH jurisdictions are scoped by ship-to province (e.g. ONHST, NSHST), while GST stays shared
- Zero-rate lines are matched, and a 0% Tax Detail Rate shows as 0.00 on the review page
- Orders with unmatched tax lines after a match is applied are held as Tax Match Incomplete
- Prompt keyword rules were extended (RST, QST, French names), and new jurisdictions keep the full Shopify tax title
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30477 "Shpfy TMA Activity Log"](../../objects/codeunit/30477-ca.md), ShopifyNA (CA layer): modified
- [Codeunit 30473 "Shpfy TMA Events"](../../objects/codeunit/30473-ca.md), ShopifyNA (CA layer): modified
- [Codeunit 30471 "Shpfy TMA Matcher"](../../objects/codeunit/30471-ca.md), ShopifyNA (CA layer): modified
- [Codeunit 30476 "Shpfy TMA Notify"](../../objects/codeunit/30476-ca.md), ShopifyNA (CA layer): modified
- [Page extension 30478 "Shpfy TMA Order Tax Lines"](../../objects/pageextension/30478-ca.md), ShopifyNA (CA layer): modified
- [Page 30479 "Shpfy TMA Order Tax Lines Part"](../../objects/page/30479-ca.md), ShopifyNA (CA layer): modified
- [Page 30471 "Shpfy TMA Review"](../../objects/page/30471-ca.md), ShopifyNA (CA layer): modified
- [Table extension 30476 "Shpfy TMA Order Header"](../../objects/tableextension/30476-ca.md), ShopifyNA (CA layer): modified
- [Table 30122 "Shpfy Order Tax Line"](../../objects/table/30122.md), Shopify: modified

## Context

- Work items: AB#651349, AB#651374, AB#651375, AB#651520, AB#651529, AB#652155
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "Fix Shopify Tax Matching Agent behavior for supported North American orders"

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