create_refund
Refunds a paid Pix charge back to the payer, supporting full or partial amounts by charge ID. Confirm the charge and refund amount with the user before calling, since this moves money.
Instructions
Refund a paid charge back to the payer via Pix. MOVES MONEY: confirm charge and amount with the user before calling. Idempotent per correlation_id.
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": {
"charge_id": "<charge_id>"
},
"name": "create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why; shown on the refund. | |
| account | No | Configured account name; omit for the default account. | |
| charge_id | Yes | correlationID or Woovi id of a PAID (COMPLETED) charge. | |
| value_cents | No | Partial amount in centavos; omit for the full charge value. | |
| correlation_id | No | Refund idempotency key; generated if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||