Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cria um novo reembolso para uma venda
CHARGEFY_ACCESS_TOKEN
Authorization
saleId
string
amount
integer
reason
id
currency
status
pending
succeeded
failed
createdAt
datetime
curl -X POST "https://api.chargefy.io/api/v1/refunds/" \ -H "Authorization: Bearer $CHARGEFY_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "saleId": "sale_abc123", "amount": 5000, "reason": "Cliente solicitou cancelamento" }'
import { Chargefy } from '@chargefy/sdk'; const chargefy = new Chargefy({ accessToken: process.env.CHARGEFY_ACCESS_TOKEN, }); const refund = await chargefy.sales.refund('sale_abc123', { amount: 5000, reason: 'Cliente solicitou cancelamento', });
{ "id": "ref_xyz789", "saleId": "sale_abc123", "amount": 5000, "currency": "brl", "reason": "Cliente solicitou cancelamento", "status": "succeeded", "createdAt": "2026-03-12T14:30:00Z" }