Shopify merchant operations
Partner discount monitoring
A discount intended for one partner can circulate elsewhere. The merchant needs to see where a code appears and decide whether to change it.
- Frequency
- 76
- Severity
- 80
- Recency
- 83
- Novelty
- 74
Buyer and market
Buying situation
Partnership managers running creator or affiliate codes. A partnership manager sees a sharp change in how a creator code is redeemed and needs to decide whether to investigate.
The existing alternative
The merchant already has discount settings and commission records. Determine how often a cross-channel investigation produces a decision those records alone could not support.
Where a product could win
An explainable investigation queue is more defensible than a single “leak” score. Ask who would own the review and any communication with partners.
Commercial hypothesis
Test a monthly fee based on the number of active partner codes. Monthly monitoring subscription. Interview the operator and the budget holder separately. Ask what an approved purchase would replace and who must sign off.
How to compare alternatives
Replay a legitimate high-volume partner promotion and a code found on an unapproved coupon site. Compare false accusations, attribution of affected orders and the number of clicks needed to document a partner conversation before suspending payouts.
Reachable market
Start a prospect list with the buyer profile above. Qualify each account by who owns the workflow, whether the source data is accessible and how often the trigger occurs. Count qualified accounts and record the channel that reaches them. A defensible pilot revenue range needs that count, an observed paid conversion rate and a tested price.
What would change the decision
Ask the operator to reproduce the handoff with existing tools. If the result already meets the acceptance criteria at negligible effort, narrow the segment. Record one contrary case and the cost of switching before pursuing a subscription.
Evidence and sources
An advertised coupon was never authorized
A merchant in a coupon-extension discussion described a third-party site advertising offers the store had never made. The merchant explained the problem to customers. Separate an invented offer from misuse of a genuine partner code. A coupon listing alone is insufficient grounds to adjust a payout.
Read source · Shopify CommunityShopify Collabs creator payments
Shopify Collabs records creator commissions and processes them through Shopify billing. An investigation flag needs an owner and a reason. It cannot establish an incorrect commission by itself.
Read source · ShopifyShopify discount codes
Shopify supports code-level eligibility, usage controls and dates. Compare observed redemption against how a code was actually configured before recommending a change.
Read source · ShopifyCoupon leak alerts and monitoring
KeepCart advertises leak detection, notifications and actions to retire or rotate a leaked code. Finding a code online is already a product feature. Compare how reliably the merchant can connect an alert to the right partner and its redemptions.
Read source · KeepCartWhat still needs fieldwork
The linked material describes existing capabilities or recorded observations. Budget, frequency, switching intent and the size of the reachable market still need buyer evidence.
Operating workflow
In the first observation window, three of fifty known referrals fell outside the partner’s expected channel.
Group redemptions
A partnership manager sees a sharp change in how a creator code is redeemed and needs to decide whether to investigate. Capture the source reference and the version the operator actually used.
Compare referral mix
Compare redemption mix within the same merchant-defined window. Preserve unknown referrals as their own group and require a minimum sample before evaluating a change.
Inspect campaign context
Missing referral data, launch campaigns or a creator repost can explain a spike. A flag must never automatically cancel commissions or disable the code.
Record decision
A case showing counts, comparison windows and campaign context with an owner, review decision and audit time.
Worked case · illustrative
A fixture shifts from 3 of 50 known referrals outside the intended channel to 24 of 60. Display both denominators and ask for campaign context before proposing a change.
Counterexample
A launch produces six redemptions with five unknown sources. Suppress the anomaly assertion and write the insufficient-evidence reason.
Unit economics
Value to the buyer
Actionable investigations as a share of reviewed flags, with false accusations and investigator time explicitly counted. Choose a unit where value can be independently reconciled. Include the operator’s review cost when estimating the net amount per successful case.
Scenario assumptions
The calculator starts with hypothetical inputs of 35 monthly cases, 20% realized and $18 per successful case, with a $59 monthly cost. Replace each assumption with customer data. A price or volume forecast requires additional evidence.
How to interpret the model
Monthly value equals case volume × realized share × net value per successful case. Subtract the monthly fee for buyer surplus. To find break-even volume, divide the fee by the product of realized share and net value per successful case, then round up to a whole case.
Validation plan
Recruitment and baseline
Review one known promotion and one genuine misuse case. Have the partnerships lead classify anonymized flags, then measure the false alarms created by normal campaign activity. Obtain permission to inspect the artifacts and agree on which fields can be retained. Capture the unassisted baseline before showing a prototype.
Interview the decision maker
What do you look at before deciding that a partner code needs replacing?
Concierge test
Reproduce the outcome by hand for a willing operator: A case showing counts, comparison windows and campaign context with an owner, review decision and audit time. Log every uncertain input, rework step and downstream rejection. Compare it with how that same operator would normally complete the case.
Decision gate · proposed
Agree the pilot threshold before collecting results. Start with five closed cases that include at least one exception. Require correct treatment of every exception, a measurable improvement on Actionable investigations as a share of reviewed flags, with false accusations and investigator time explicitly counted. and a budget holder willing to test a paid pilot. Extend discovery if the sample is too small to distinguish real improvement.
Product requirements document
Objective and primary user
Primary user: Partnership managers running creator or affiliate codes. The journey starts with “Group redemptions” and ends with “Record decision”. The operator must be able to produce and reconcile this result: A case showing counts, comparison windows and campaign context with an owner, review decision and audit time.
First release
Compare redemptions by referral source and flag changes for a merchant to investigate. Support one agreed input format and one complete handoff before prioritizing additional integrations.
Scope boundary
Creator surveillance, automatic commission withholding, and interpreting an unknown referral as misuse.
R1 · Intake and identity
As the operator, I can import a partner code investigation with code_id, partner_id, order_ref, redeemed_at. Accept when identical store + code ID + order reference inputs yield one case and rejected rows retain their source reference and reason.
R2 · Explain the decision
Compare redemption mix within the same merchant-defined window. Preserve unknown referrals as their own group and require a minimum sample before evaluating a change. Accept when a reviewer can reproduce the result using only the recorded inputs and rule revision. The following fixture must pass: A fixture shifts from 3 of 50 known referrals outside the intended channel to 24 of 60. Display both denominators and ask for campaign context before proposing a change.
R3 · Handle uncertainty
Missing referral data, launch campaigns or a creator repost can explain a spike. A flag must never automatically cancel commissions or disable the code. Accept when an incomplete case remains visibly blocked, can be corrected and retains its original history.
R4 · Review and handoff
Only an authorized reviewer can release the reviewed partner code investigation. Accept when two competing approvals create one completed result, a stale review sees the current version, and the resulting artifact is A case showing counts, comparison windows and campaign context with an owner, review decision and audit time.
R5 · Measure an actual outcome
Actionable investigations as a share of reviewed flags, with false accusations and investigator time explicitly counted. Store the observed outcome separately from expected value. Accept when an operator can reconcile each reported success to one completed case and export any unresolved exceptions.
Architecture and release
Data contract
Primary record: partner code investigation. Required domain fields: code_id, partner_id, order_ref, redeemed_at, referral_group, campaign_window, discount_cents, channel_known, investigation_state. Logical identity: store + code ID + order reference. Preserve the raw source reference, capture time, normalized values, schema version and reviewer decision as distinct fields.
Interfaces and permissions
Start with a read-only file adapter and a schema preview. Separate intake, rule evaluation, review and export. Scope lookup and mutations by workspace and record. The person importing a batch may prepare a draft; the designated reviewer releases the outcome.
State and concurrency
A source record moves through received, needs review, approved and outcome recorded. A correction creates a revision. Compare the expected revision on write, keep an immutable decision log and make retries idempotent using store + code ID + order reference.
Test and release matrix
Cover normal flow, missing inputs, an interrupted write, repeated ingestion, conflicting edits and a redacted export. For this product the release-blocking regression is: A launch produces six redemptions with five unknown sources. Suppress the anomaly assertion and write the insufficient-evidence reason.
Pilot cutover
Run the new workflow beside the current one for the first batch. Reconcile each partner code investigation with the operator. Disable outbound actions on discrepancies and replay from the original input revision before enabling a broader rollout.
Build prompts
01 · Establish the domain contract
Implement the domain foundation for "Partner discount monitoring" in the existing repository. The primary user is Partnership managers running creator or affiliate codes. Their first useful deliverable is A case showing counts, comparison windows and campaign context with an owner, review decision and audit time.
Inspect the project conventions for storage, migrations, fixtures and tests. Use those conventions. Write a short decision record naming the source of truth and the boundary between an imported observation and a reviewer decision.
Define the partner code investigation record with code_id, partner_id, order_ref, redeemed_at, referral_group, campaign_window, discount_cents, channel_known, investigation_state. Scope all identities to a workspace. Use store + code ID + order reference for replay detection. Preserve raw source references and an immutable revision of every normalized record. Specify types, required fields, null handling and timestamps in the schema.
Implement a transactional importer and a dry-run summary containing accepted rows, duplicates and rejected rows with reasons. Return stable row references. A failed import must leave the preceding successful revision available.
Use fictitious fixtures. Happy path: A fixture shifts from 3 of 50 known referrals outside the intended channel to 24 of 60. Display both denominators and ask for campaign context before proposing a change. Adverse path: A launch produces six redemptions with five unknown sources. Suppress the anomaly assertion and write the insufficient-evidence reason.
Deliver the schema, migration, two fixtures and runnable importer tests. Include the command and expected row counts. Stop at a verified import; no outbound integration is required for this stage.
02 · Implement decisions and exceptions
Build the decision engine for "Partner discount monitoring". Input is a versioned partner code investigation identified by store + code ID + order reference. The intended operator is Partnership managers running creator or affiliate codes.
Implement this proposed policy as a pure function with typed results and a versioned rule identifier: Compare redemption mix within the same merchant-defined window. Preserve unknown referrals as their own group and require a minimum sample before evaluating a change. Return a decision, the factors used, the applicable source references and an operator-readable reason.
Implement the exception path explicitly: Missing referral data, launch campaigns or a creator repost can explain a spike. A flag must never automatically cancel commissions or disable the code. An unknown value cannot be coerced to zero or treated as success. A new source revision invalidates an unapproved result; retain previous reviewed versions.
Keep the operator sequence visible in the state model: Group redemptions > Compare referral mix > Inspect campaign context > Record decision. Separate an accepted proposal from the external outcome. Make repeated commands return the existing result, and reject a stale version with a recoverable conflict.
Write table-driven examples: A fixture shifts from 3 of 50 known referrals outside the intended channel to 24 of 60. Display both denominators and ask for campaign context before proposing a change. Also reproduce: A launch produces six redemptions with five unknown sources. Suppress the anomaly assertion and write the insufficient-evidence reason. Add tests for a duplicate, a missing required field and concurrent reviews. Assert the result and persisted transition count in each case.
Deliver the rule module, fixture-driven tests and one decision trace a nontechnical reviewer can read. Out of scope: Creator surveillance, automatic commission withholding, and interpreting an unknown referral as misuse.
03 · Build the operator workflow
Implement the complete first user journey for "Partner discount monitoring". The person using it is Partnership managers running creator or affiliate codes. Start when A partnership manager sees a sharp change in how a creator code is redeemed and needs to decide whether to investigate.
Use the project’s existing UI and routing patterns. Provide an inbox at /partner-code-investigation, an addressable detail view for a single partner code investigation, and a completed result with the original evidence. The first release must accomplish this task: Compare redemptions by referral source and flag changes for a merchant to investigate.
Arrange the interface around Group redemptions > Compare referral mix > Inspect campaign context > Record decision. Show the original values and the proposed decision side by side on desktop and in a deliberate reading order on mobile. The review must expose code_id, partner_id, order_ref, redeemed_at before approval.
For a missing prerequisite show the exact reason and one recovery action. Preserve unfinished reviewer input on a version conflict and display the new source revision. Handle empty, loading, read-only and failed states with keyboard and touch support.
The final artifact is A case showing counts, comparison windows and campaign context with an owner, review decision and audit time. Export only reviewed data and label unresolved fields. Require a deliberate action before any external handoff. Preserve an audit record of who approved which version.
Demonstrate the journey using this fixture: A fixture shifts from 3 of 50 known referrals outside the intended channel to 24 of 60. Display both denominators and ask for campaign context before proposing a change. Include an end-to-end test for the exception: Missing referral data, launch campaigns or a creator repost can explain a spike. A flag must never automatically cancel commissions or disable the code. Deliver the route, states, accessible controls and proof that refresh preserves the same case.
04 · Prove the release and instrument the pilot
Prepare "Partner discount monitoring" for a supervised pilot with Partnership managers running creator or affiliate codes. Keep the first release bounded: Creator surveillance, automatic commission withholding, and interpreting an unknown referral as misuse.
Turn the following into an acceptance fixture with independently computed expected values: A fixture shifts from 3 of 50 known referrals outside the intended channel to 24 of 60. Display both denominators and ask for campaign context before proposing a change. Write the parallel failure fixture: A launch produces six redemptions with five unknown sources. Suppress the anomaly assertion and write the insufficient-evidence reason.
Verify tenant isolation, source-to-output lineage, duplicate handling, stale approvals and restore after an interrupted write. Exercise import, review and export on the smallest supported mobile width. Compare the exported result to the stored reviewed revision.
Instrument intake, review_required, reviewed and outcome_recorded events. Include workspace-scoped case IDs, rule revision, reason category and elapsed time. Exclude raw customer material. Define the numerator, denominator and observation window for this outcome: Actionable investigations as a share of reviewed flags, with false accusations and investigator time explicitly counted.
Run a dry pilot: Review one known promotion and one genuine misuse case. Have the partnerships lead classify anonymized flags, then measure the false alarms created by normal campaign activity. Keep a before-and-after worksheet including review time, corrections and cases the workflow could not handle. Label estimates and distinguish a proposed result from a realized one.
Deliver a release checklist, fixture results, an off switch for integrations and a rollback rehearsal. State which acceptance criteria passed and which assumptions still require a real buyer. Do not accept an attractive demo screen as proof of a correct outcome.