v1
latestOpenAPI 3.1.02026-08-0629140119.9 KBPIX Refunds
Create Refund
Creates a refund request for a PIX transaction. The transaction_id must be provided in the request body. The refund will be processed asynchronously - validation and execution are performed by a worker process. If amount_in_cents is not provided, it defaults to 0 and will be determined during processing.
post/v1/refunds
Headers
X-Idempotency-Keystring nullable
Optional idempotency key for safe retries. When provided, requests with the same key and payload return the same result. Without this header, duplicate external_reference_id values will fail with 400 Bad Request.
Request body
Example request
{
"amount_in_cents": 15000,
"external_reference_id": "refund-001",
"message_to_payer": "Devolução parcial",
"transaction_id": 123456789
}Response
Refund request created successfully and will be processed asynchronously
Example response
{
"cancelled_at": "2026-05-28T14:30:00Z",
"created_at": "2026-05-28T14:30:00Z",
"updated_at": "2026-05-28T14:30:00Z"
}