refund_payment
Refunds total or partial payments. When a prepaid runway is hit, resubmit with confirm_runway=true to complete the refund.
Instructions
Estorna um pagamento (total/parcial). Se atingir runway pré-pago, retorna 422 requires_confirmation=runway; reenvie com confirm_runway=true. Escopo write.
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": {
"payment_id": "<payment_id>",
"amount_cents": "<amount_cents>",
"reason": "<reason>"
},
"name": "refund_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| revoke | No | ||
| payment_id | Yes | ||
| amount_cents | Yes | ||
| confirm_runway | No |