create_refund
Create refunds for Shopify orders by specifying line items, shipping amounts, and payment transactions. Handles restocking and multiple payment methods for partial or full reimbursements.
Instructions
Create a refund for an order. Supports refunding line items, shipping costs, and processing refunds through different payment methods.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orderId": "<orderId>"
},
"name": "create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Refund note | |
| orderId | Yes | Order ID | |
| transactions | No | Transaction details | |
| shippingAmount | No | Shipping amount to refund | |
| refundLineItems | No | Line items to refund |