Update return
update_returnOwner/admin only. Manage return cases. action 'create' (order_id, optional grund, positionen [{item_id, menge}], anleitung=false to skip the instruction mail; a withdrawal creates one automatically), 'eingang' (goods arrived, optional zustand), 'geprueft' (checked; system proposes the refund amount: whole order = open amount incl. shipping, partial = returned items; lower betrag only with zustand), 'erstatten' (refund via Stripe/PayPal + credit note; dry_run default true), 'ablehnen' (grund required), 'notiz'. Each step is written to order_audit.
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": {
"action": "<action>"
},
"name": "update_return"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grund | No | ||
| notiz | No | ||
| action | Yes | ||
| betrag | No | ||
| dry_run | No | ||
| zustand | No | ||
| order_id | No | ||
| anleitung | No | ||
| return_id | No | ||
| positionen | No |