Skip to main content

Refund all remaining order lines

Use this workflow when the customer should receive every amount that remains refundable on a paid order. The agent still shows each line and exact amount before creating anything.

Prompt

Prepare a refund for every amount that remains refundable on order <ORDER_ID>. Show each line's original paid amount, any amount already reserved or refunded, and the exact remaining amount. Ask for the overall reason, then give me one final itemized confirmation. Do not create the refund until I approve it, and do not call it complete until its status is succeeded.

The agent first calls get_refund_options. It may offer the full remaining amount for each line, but you must approve the itemized values and provide the overall reason before create_refund is called.

Sample response

Full remaining refund ready

Every currently refundable line is included. No refund has been created yet.

Confirmation table
Order
ord_example_2088
Currency
GHS
Refund total
GHS 145.00
Overall reason
Requested by customer

Amounts awaiting confirmation

Order lineOriginal paidAlready reservedThis refund
Canvas bag × 1GHS 95.00GHS 20.00GHS 75.00
Delivery × 1GHS 70.00GHS 0.00GHS 70.00

Approving this summary starts an asynchronous refund for GHS 145.00. It does not mean the customer has received the money.

Illustrative values. The exact presentation depends on the MCP client.

After creation, the agent uses get_refund to reconcile the result. pending and processing remain in progress; only succeeded is complete.