name: refund-processing description: Process customer refund requests following company policy. Use when a customer requests a refund, return, exchange, money back, or store credit for an order. metadata: author: acme-commerce version: "1.0"
Refund Processing
Follow these steps when processing a refund request.
Step 1: Verify eligibility
- Retrieve the order using
get_orderwith the order ID. - Read refund policy to determine eligibility based on the order's delivery date and item condition.
- Check if any items fall under non-refundable categories listed in the policy.
Step 2: Calculate refund amount
- Read refund calculations for the formulas and rules for full refunds, partial refunds, and defective item refunds.
- Apply the correct calculation based on the eligibility determined in Step 1.
Step 3: Process the refund
- Call
create_refundwith the order ID, refund amount, and reason. - Call
update_order_statusto set the order status torefund_pending. - Read refund policy for the expected processing timeline by payment method.
- Summarize the refund to the support agent: order ID, refund amount, method, and expected timeline.
- If the support agent asks for a customer email draft, use the refund email template and fill in the placeholders.
Edge cases
For gift orders, subscriptions, or multiple-item refunds, consult refund policy for the specific rules before proceeding.