calculate_refund
Calculates the refund amount for a Shopify order before processing, using specified line items and quantities or a full-order refund when none are provided.
Instructions
Calculate refund amount for an order before processing
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": "calculate_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Order ID to calculate refund for | |
| refundLineItems | No | Specific line items to refund (optional, calculates full refund if not specified) |