refundMoneyTransaction
Refund a succeeded money transaction and return the amount and currency refunded. This sends real money back: a Stripe, WayForPay or KakaoPay payment is refunded to the payer's card and cannot be undone; an external payment only records the refund, so the money has to be returned outside Spacebring. Omit transaction.amount to refund everything still refundable, or pass a smaller amount in major units for a partial refund. Each call is a new refund until nothing is left to refund: when a call fails or times out, check payment.refunds with getMoneyTransaction before calling again. Get transactionId from getMoneyTransactions. Never invent UUIDs; only use values from prior tool responses.
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": {
"transactionId": "<transactionId>"
},
"name": "refundMoneyTransaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction | No | Refund options for the transaction. | |
| transactionId | Yes | The id of the transaction. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refund | Yes |