/
/
See a Salesforce case with the customer's 2Checkout billing
For support agents who ask their AI assistant to add a customer's 2Checkout subscriptions and payments to the Salesforce case they are working.
On this page
Connector
Connect 2Checkout, pick your AI tool and paste the prompt.
The problem
The billing answer to a case sits in another system
An agent working a Salesforce case has to open 2Checkout separately to find the customer's subscriptions and payments. With similar names it is easy to read the wrong customer and miss the failed payment that explains the case.
Without PopdockAI
- Copy the contact email from the Salesforce case
- Search 2Checkout and pick the right customer
- Open subscriptions and payments one by one
- Guess at what caused the case
With PopdockAI
- Case subject, status, priority and contact read from Salesforce
- Customer found in 2Checkout by the contact email
- Subscriptions, latest payments and optional orders listed
- Says plainly when billing does not explain the case
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** For Salesforce case `{case-number}`, collect the customer billing context from 2Checkout so the agent can answer without opening a second system.
This prompt needs both servers connected: salesforce (tools whose names start with salesforce-) and 2checkout (tools whose names start with 2checkout-).
**Step 1: Read the case**
Call `salesforce-get-case` (salesforce server) with `case-number` set to `{case-number}`. If it returns nothing, stop and say the case was not found. Note the subject, status, priority and the contact email.
**Step 2: Find the customer in 2Checkout**
Call `2checkout-get-customer` (2checkout server) with `email` set to the case contact email. If none is found, report the case as having no 2Checkout customer and stop after Step 4. If several are found, list them and use the one whose name matches the case contact; if still unclear, stop and ask.
**Step 3: Pull the billing records**
Call `2checkout-get-subscription` (2checkout server) with `customer-reference` set to the customer's reference. For each subscription, call `2checkout-get-subscriptionpayment` (2checkout server) with `subscription-reference`. If `{order-lookup}` is yes, also call `2checkout-get-order` (2checkout server) with `billing-last-name` set to the customer's last name.
**Step 4: Report**
Show the case summary, then the customer, then each subscription with status, expiration date and its latest payments, then any orders. Finish with one or two sentences on what in the billing data may explain the case, for example a failed or declined payment.
**Rules & Guidelines:**
* Salesforce tools are on the salesforce server; 2Checkout tools are on the 2checkout server.
* Read-only. Never call `salesforce-add-case`, `salesforce-update-case` or any other write tool on either server.
**Validation:**
* Say plainly when the data does not explain the case; do not speculate beyond it.
* Treat `{order-lookup}` as no when it is empty.Who it's for
One answer, three teams that use it
Support agents
Answer billing cases without a second system
See subscriptions and recent payments next to the case, so you can spot a failed charge and reply.
Show 2Checkout billing for the customer on Salesforce case 00045678.
Support team leads
Review escalations with the facts
Check what the customer pays for and whether a payment failed before you decide how to handle an escalation.
For case 00012999, did the customer have a failed 2Checkout payment recently?
Billing specialists
Check orders behind a disputed charge
Include the customer's 2Checkout orders when a case is about a charge they do not recognise.
Pull the 2Checkout orders and payments for the contact on Salesforce case 00031122.
How it works
What PopdockAI does when you ask
You give a case number and your AI assistant reads the case and the customer's 2Checkout billing. If several customers match it asks you rather than guessing.
01
Ask
You give the Salesforce case number and say whether to include orders.
02
Case
It reads the case subject, status, priority and contact email.
03
Billing
It finds the customer in 2Checkout and reads subscriptions, payments and orders if asked.
04
Report
You get the case, customer and billing together, with a note on what may explain it.
What PopdockAI provides
The tools behind the answer
Ready made tools for 2Checkout and one secure connection to your AI tool. No code, no exports.
salesforce-get-case
2checkout-get-customer
2checkout-get-subscription
2checkout-get-subscriptionpayment
2checkout-get-order
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
Every case comes with its billing context
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)
