Refund an order
refund_orderRefund an order from a conversation on the Shopify store, as the signed-in teammate. The workspace's approval rules apply: a refund above their limits waits for an admin, and the result says whether it ran or waits. Without an amount, everything still refundable is refunded. Repeated calls are not deduplicated: calling it again refunds again while anything is left to refund, or adds another request waiting for approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | In the order's currency; omitted refunds everything still refundable. | |
| notify | No | Email the customer about the refund. | |
| reason | No | Why, for the order history. | |
| orderId | Yes | The order id, from get_conversation_orders or lookup_orders. | |
| conversationId | Yes | The Aide conversation id (`cnv_…`), from find_conversation. | |
| requestApproval | No | Ask a teammate to approve it instead of running it now. Without it, the workspace approval rules decide: an action above their limits waits for an admin. |