/
/
Follow a WooCommerce order from cart to cash in Dynamics GP
For support and finance teams who want a WooCommerce order traced through Dynamics GP sales and receivables by their AI assistant.
On this page
Connector
Connect WooCommerce, pick your AI tool and paste the prompt.
The problem
Following one order from cart to cash takes five screens
When a customer asks where their order is, the answer runs from WooCommerce through Dynamics GP sales documents into receivables. Following it means matching lines by SKU, finding the invoice and checking applied payments across several screens.
Without PopdockAI
- Read the order and refunds in WooCommerce
- Find GP sales documents by PO number
- Match lines and follow the invoice into receivables
- Check which payments were applied
With PopdockAI
- The order, lines and refunds are read
- GP documents are found by customer PO and lines compared
- The invoice is followed into receivables for balance and payments
- Gaps are flagged with one sentence on where it stands
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Trace WooCommerce order {order-number} through Dynamics GP and report where it stands in each system: sales documents, lines, invoice balance and payments.
**Step 1: Read the store order (woocommerce)**
Call `woocommerce-get-order` with order-number set to {order-number}. If nothing comes back, say the order does not exist in the store and stop. Then call `woocommerce-get-order-line` and `woocommerce-get-refund`, both with order-number set to {order-number}.
**Step 2: Find the GP sales documents (dynamics-gp)**
Call `dynamics-gp-get-rm-sales-trx` with customer-po-number set to {order-number}. If nothing comes back, try once more with the store order-id. If there is still nothing, report the order as present in WooCommerce and absent from GP, show the store side from step 1, and stop.
**Step 3: Compare the lines (dynamics-gp)**
For each GP document call `dynamics-gp-get-rm-sales-line-item` with sop-number and sop-type. Match store lines to GP lines by line-sku and item-number, then compare quantity and unit price.
**Step 4: Follow the invoice into receivables (dynamics-gp)**
For each GP document that is an invoice, call `dynamics-gp-get-rm-trx` with customer-id and document-number set to the sop-number. current-transaction-amount is the amount still owed. Then call `dynamics-gp-get-rm-trx-apply` with applied-to-document-number set to the sop-number to list the payments and credits applied to it.
**Step 5: Report**
1. Store: order number, date, status, customer, total, refunds.
2. GP: each sales document with SOP number, type, date, posting status and amount.
3. Line differences: missing on either side, or a different quantity or price.
4. Receivables: invoice amount, amount still owed, due date, and each payment applied with its date and amount.
5. One sentence on where the order stands, such as invoiced and paid, invoiced and unpaid, or ordered but not invoiced.
**Rules & Guidelines:**
* Tools whose names start with woocommerce- are on the woocommerce MCP server; tools whose names start with dynamics-gp- are on the dynamics-gp MCP server. If a tool from either server is not available, stop and say which server is not connected.
* If the user names a Dynamics GP company, pass it as company on every dynamics-gp call.
* Match a store SKU to a GP item number exactly, after trimming spaces. If that fails, try the SKU in upper case once. Never match on descriptions or partial codes.
* This prompt is read-only. Do not call `woocommerce-update-order`, `woocommerce-add-order-note`, `woocommerce-add-refund`, `dynamics-gp-rm-sales-trx-update`, `dynamics-gp-rm-sales-trx-note` or `dynamics-gp-rm-trx-add`.
**Validation:**
* If GP has an invoice but receivables returns nothing for it, report the invoice as not yet posted to receivables.
* If the store shows refunds and GP shows no return or credit applied, say so.
* If GP returns more than one document of the same type for this PO number, list them all and flag it as a possible duplicate.Who it's for
One answer, three teams that use it
Operations managers
Answer order status questions
Tell a customer exactly where their order is, from sales document to payment.
Where is WooCommerce order 2510 in Dynamics GP?
Accounts receivable
See what is still owed
The invoice is followed into receivables with the balance and payments applied.
How much is still owed on WooCommerce order 1890 in Dynamics GP?
Customer service agents
Spot problems before replying
Invoices not in receivables, missing credits and duplicate documents are flagged.
Trace WooCommerce order 3022 into GP and tell me if anything looks wrong.
How it works
What PopdockAI does when you ask
You give the order number, and your AI assistant follows it from the store into Dynamics GP receivables. Both systems stay exactly as they were.
01
Ask
You give the WooCommerce order number.
02
Read
It reads the store order, lines and refunds.
03
Trace
It finds GP sales documents by PO, compares lines and follows the invoice into receivables.
04
Report
You get flags and one sentence on where it stands.
What PopdockAI provides
The tools behind the answer
Ready made tools for WooCommerce and one secure connection to your AI tool. No code, no exports.
woocommerce-get-order
woocommerce-get-order-line
woocommerce-get-refund
microsoft-dynamics-gp-get-rm-sales-trx
microsoft-dynamics-gp-get-rm-sales-line-item
microsoft-dynamics-gp-get-rm-trx
microsoft-dynamics-gp-get-rm-trx-apply
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
Where an order stands, from cart to cash
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)
