Connectors

/

Shopify

/

Check a Shopify refund for a Zendesk ticket
Read
Cross-Connector

Answer where-is-my-refund tickets with the Shopify facts

For support agents who want to see what was refunded in Shopify and whether the money went back, straight from a Zendesk ticket, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Check a Shopify refund for a Zendesk ticket
Ticket 48213 in Zendesk asks where their refund is. Can you check Shopify?
Order #1042 was refunded in full, and the money went back on 3 October. - Refund: 89.00 including 7.12 tax - Transaction: success, via Shopify Payments - Gap: none, the customer asked for 89.00 Suggested reply: your refund was issued on 3 October and can take 5 to 10 days to show. Want me to adjust it?
Shopify
Sample figures. Your results come from your own account.
zendesk-get-ticket
zendesk-get-ticket-comment
shopify-get-order
shopify-get-refund
shopify-get-refund-line
shopify-get-order-adjustment
shopify-get-transaction

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Shopify

Shopify
Run it on your own Shopify data.

Connect Shopify, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Where is my refund tickets take three screens to answer

When a customer asks in Zendesk where their refund is, you have to find the order in Shopify, see what was refunded and check whether the money went back. A refund recorded in Shopify is not the same as one that reached the card.

Without PopdockAI

  • Read the ticket to see what the customer expects
  • Search Shopify for the order
  • Open each refund and its transaction status
  • Reply without knowing if the money actually moved

With PopdockAI

  • The ticket is read for what the customer says they are owed
  • The order is found and the email checked against the requester
  • Each refund and its transaction status are listed plainly
  • You get any gap and a suggested reply, with nothing changed

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** For Zendesk ticket `{ticket-id}`, find the Shopify order it concerns (order `{order-number}` if given) and report whether a refund was issued, what it covered, and whether the money has actually gone back to the customer.

**Step 1: Read the ticket**

Call `zendesk-get-ticket` filtered by ticket-id and note requester-email, subject and created-date. Call `zendesk-get-ticket-comment` filtered by ticket-id to find an order number and what the customer says they are owed.

**Step 2: Find the order**

Call `shopify-get-order` filtered by order-number (retry with name set to # followed by the number), or by email set to the requester-email if no number is known. Confirm the order email equals the requester-email, ignoring case. If it does not, report the mismatch and stop. Note name, total-price, financial-status and currency.

**Step 3: Refunds on the order**

* Call `shopify-get-refund` filtered by order-id: refund-id, created-at, processed-at, note, restock.
* Call `shopify-get-refund-line` filtered by order-id: name, quantity, subtotal, total-tax, restock-type.
* Call `shopify-get-order-adjustment` filtered by order-id for shipping or other adjustments.
* Call `shopify-get-transaction` filtered by order-id and keep those whose kind is a refund: shop-amount, status, gateway, processed-at, error-code.

**Step 4: Report**

* What the customer asked for, from the ticket.
* Refunds issued: date, items and quantities, tax, adjustments, total.
* Money returned: each refund transaction with its status and gateway. A pending or failed transaction means the money has not gone back. Say so plainly and give the error-code.
* The gap, if any, between what the customer asked for and what was refunded.
* A suggested reply for the agent in two or three sentences. Card refunds usually take several business days to show. Say that when the transaction succeeded recently.

**Rules & Guidelines:**

* `zendesk-get-ticket` and `zendesk-get-ticket-comment` are on the zendesk server. `shopify-get-order`, `shopify-get-refund`, `shopify-get-refund-line`, `shopify-get-order-adjustment` and `shopify-get-transaction` are on the shopify server.
* This prompt is read-only. It cannot issue a refund, and neither server has a tool that does. Do not call `zendesk-add-ticket-comment`, `zendesk-update-ticket`, `shopify-update-order` or any other write tool.

**Validation:**

* If the order has no refunds, say so and report the order's financial-status.
* If the ticket names several orders, check each and report them separately.

Who it's for

One answer, three teams that use it

Support agents

Answer refund tickets in one message

Get the refund status, the amounts and a suggested reply without switching between Zendesk and Shopify.

Ticket 51877 says the refund never arrived. Check the Shopify order and tell me what was refunded and whether it went through.

Support team leads

Spot pending and failed refunds early

Refunds that are pending or failed are called out plainly, so agents escalate them instead of promising money that has not moved.

For Zendesk ticket 50320, is the Shopify refund pending, failed or done, and does it cover what the customer asked for?

Customer service managers

Protect order details from the wrong person

The check stops when the order email does not match the requester, so details only go to the customer who owns the order.

Ticket 49102 mentions order 1088. Confirm it belongs to the requester and summarise any refunds on it.

How it works

What PopdockAI does when you ask

You name the ticket, and your AI assistant finds the Shopify order and checks every refund. It only reads both systems and stops if the order does not belong to the requester.

01

Ask

You name the Zendesk ticket, and optionally the order.

Your AI tool

02

Find

It reads what the customer says and finds the order, checking the email matches.

zendesk-get-ticket
zendesk-get-ticket-comment
shopify-get-order

03

Check

It lists each refund and whether its transaction succeeded, is pending or failed.

shopify-get-refund
shopify-get-refund-line
shopify-get-order-adjustment
shopify-get-transaction

04

Report

You get any gap against what was asked for and a suggested reply.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Shopify and one secure connection to your AI tool. No code, no exports.

get-data

zendesk-get-ticket

Returns Zendesk support tickets with their status, priority, requester, assignee, group and organization. Filter by status, priority, assignee, group or dates to find the tickets you need.
get-data

zendesk-get-ticket-comment

Returns the comments on a Zendesk ticket, both public replies and internal notes, with their author and when they were posted.
get-data

shopify-get-order

Returns Shopify orders with their financial status, fulfillment status and total. Filter by order number or name, customer, email, financial status, fulfillment status, created date and total price.
get-data

shopify-get-refund

Returns Shopify refunds with their order and total adjustments. Filter by order, customer, customer email, refund and created date.
get-data

shopify-get-refund-line

Returns the line items on Shopify refunds, with the subtotal and how each was restocked. Filter by refund, order, SKU, name and restock type.
get-data

shopify-get-order-adjustment

Returns the adjustments on Shopify refunds, such as shipping refunds and refund discrepancies. Filter by order, refund, kind and amount.
get-data

shopify-get-transaction

Returns the payment transactions on Shopify orders, such as authorizations, sales, captures and refunds, with gateway and status. Filter by order, customer, kind, status, gateway, amount and processed date.
Read only.Nothing in Shopify Changes

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.

How Popdock AI secures your data

The outcome

Refund answers backed by facts, for the right customer

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

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.

Try PopdockAI Free
See Documentation