/
/
See which paid invoices a lost Stripe dispute would reopen
For finance teams who want open Stripe disputes traced to Dynamics 365 Business Central invoices, sorted by deadline, by their AI assistant.
On this page
Connector
Connect Stripe, pick your AI tool and paste the prompt.
The problem
A lost dispute reopens an invoice you thought was paid
A Stripe dispute does more than freeze a payment. If it is lost, an invoice that looked paid in Dynamics 365 Business Central reopens, and tracing each dispute to the customer and receivable at risk while watching deadlines is easy to let slip.
Without PopdockAI
- List open Stripe disputes
- Trace each through its charge and invoice
- Find the Business Central invoice and customer
- Track evidence deadlines by hand
With PopdockAI
- Disputes still in progress are listed
- Each is traced through its charge and invoice to Business Central
- One table by evidence deadline with amount, reason and open balance
- Paid invoices a loss would reopen are flagged, and nothing is changed
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** List the Stripe disputes still in progress, or with status `{status}` when it is given, and show which Business Central invoice and customer in company `{company}` (default: the default company) each one affects.
**Step 1: Read disputes**
Call `stripe-get-dispute`, with `status` set to `{status}` when it is given. When it is empty, call it without a status and keep only disputes whose status is not won and not lost. Keep `dispute-id`, `charge-id`, `amount`, `currency`, `reason`, `status`, `details-due-by`, `past-due` and `has-evidence`.
**Step 2: Trace each dispute to its invoice**
Call `stripe-get-charge` with `charge-id`, and keep `invoice-id`, `customer-email` and `customer-name`. If the charge has an `invoice-id`, call `stripe-get-invoice` with that `invoice-id` to get its `number`.
**Step 3: Find it in Business Central**
Call `business-central-get-posted-sales-invoice` with `external-document-number` set to the Stripe invoice `number`. Keep `invoice-number`, `sell-to-customer-number`, `total-amount-including-tax` and `remaining-amount`. If there is no Stripe invoice or no Business Central match, call `business-central-get-customer` with `email` set to the charge's `customer-email` so the customer can still be identified.
**Step 4: Report**
One table, ordered by `details-due-by` with the soonest first: dispute-id, reason, status, amount, evidence due, has-evidence, Stripe invoice number, Business Central invoice-number, Business Central customer-number and name, Business Central remaining-amount.
Above the table, summarise the total disputed amount per currency and how many disputes are due within 7 days or past due. Flag any dispute whose Business Central invoice shows as fully paid (remaining-amount zero), because a lost dispute will reopen that receivable.
**Rules & Guidelines:**
* `stripe-get-dispute`, `stripe-get-charge` and `stripe-get-invoice` are on the stripe server; `business-central-get-posted-sales-invoice` and `business-central-get-customer` are on the business-central server.
* This prompt is read-only. Do NOT call `business-central-create-sales-credit-memo` or any other create or update tool. Submitting dispute evidence is done in Stripe, not here.
**Validation:**
* If no disputes are in progress, say so and stop.
* If a charge has no invoice (a one-off payment), show "no invoice" in the invoice columns and still show the Business Central customer if one is found.Who it's for
One answer, three teams that use it
Disputes specialists
Work disputes by deadline
A table sorted by evidence deadline shows what to work on first.
What is our Stripe dispute exposure in Business Central right now, by deadline?
Controllers
Know which receivables could reopen
Invoices shown as paid that a loss would reopen are flagged for the close.
Which fully paid Business Central invoices would reopen if we lose our open Stripe disputes?
Finance managers
Size the exposure
Totals per currency and the count due within seven days give you the exposure at a glance.
How much is under Stripe dispute and how many need evidence this week?
How it works
What PopdockAI does when you ask
You can filter by status, and your AI assistant traces every open Stripe dispute to Business Central. It only reads and totals exposure per currency.
01
Ask
You optionally filter by dispute status.
02
Read
It lists Stripe disputes still in progress.
03
Trace
It follows each through its charge and invoice to Business Central.
04
Report
You get a table by deadline and totals, with nothing changed.
What PopdockAI provides
The tools behind the answer
Ready made tools for Stripe and one secure connection to your AI tool. No code, no exports.
stripe-get-dispute
stripe-get-charge
stripe-get-invoice
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
No deadline missed, no surprise reopened invoices
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
