Pular para o conteúdo principal
GET
/
v1
/
refunds
/
{id}
Ver Reembolso
curl --request GET \
  --url https://conta-public-api.kiwify.com/v1/refunds/{id} \
  --header 'X-PoP-Challenge: <api-key>' \
  --header 'X-PoP-Format: <api-key>' \
  --header 'X-PoP-Signature: <api-key>' \
  --header 'x-access-id: <api-key>'
import requests

url = "https://conta-public-api.kiwify.com/v1/refunds/{id}"

headers = {
"x-access-id": "<api-key>",
"X-PoP-Challenge": "<api-key>",
"X-PoP-Format": "<api-key>",
"X-PoP-Signature": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {
'x-access-id': '<api-key>',
'X-PoP-Challenge': '<api-key>',
'X-PoP-Format': '<api-key>',
'X-PoP-Signature': '<api-key>'
}
};

fetch('https://conta-public-api.kiwify.com/v1/refunds/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://conta-public-api.kiwify.com/v1/refunds/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-PoP-Challenge: <api-key>",
"X-PoP-Format: <api-key>",
"X-PoP-Signature: <api-key>",
"x-access-id: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://conta-public-api.kiwify.com/v1/refunds/{id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-access-id", "<api-key>")
req.Header.Add("X-PoP-Challenge", "<api-key>")
req.Header.Add("X-PoP-Format", "<api-key>")
req.Header.Add("X-PoP-Signature", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://conta-public-api.kiwify.com/v1/refunds/{id}")
.header("x-access-id", "<api-key>")
.header("X-PoP-Challenge", "<api-key>")
.header("X-PoP-Format", "<api-key>")
.header("X-PoP-Signature", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://conta-public-api.kiwify.com/v1/refunds/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-access-id"] = '<api-key>'
request["X-PoP-Challenge"] = '<api-key>'
request["X-PoP-Format"] = '<api-key>'
request["X-PoP-Signature"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "created_at": "2026-05-28T14:30:00Z",
  "details": {
    "amount_in_cents": 123,
    "message_to_payer": "<string>"
  },
  "id": 123,
  "transaction_id": 123,
  "updated_at": "2026-05-28T14:30:00Z",
  "beneficiary": {
    "pix_key": "<string>",
    "resolved_account_number": "<string>",
    "resolved_branch": "<string>",
    "resolved_ispb": "<string>",
    "name": "<string>",
    "tax_id": "<string>"
  },
  "cancelled_at": "2026-05-28T14:30:00Z",
  "external_reference_id": "<string>",
  "failed_message": "<string>"
}
{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": {}
},
"timestamp": "2026-05-28T14:30:00Z"
}
{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": {}
},
"timestamp": "2026-05-28T14:30:00Z"
}
{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": {}
},
"timestamp": "2026-05-28T14:30:00Z"
}
{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": {}
},
"timestamp": "2026-05-28T14:30:00Z"
}

Autorizações

x-access-id
string
header
obrigatório

UUID of the service account (e.g., 550e8400-e29b-41d4-a716-446655440000)

X-PoP-Challenge
string
header
obrigatório

Unix timestamp in milliseconds (e.g., 1704636800000). Must be within 5 minutes of server time.

X-PoP-Format
string
header
obrigatório

Must be 'service-account' for service account authentication

X-PoP-Signature
string
header
obrigatório

EdDSA signature of the request in base64 format. Signs: uri:method:body:timestamp

Parâmetros de caminho

id
integer<int64>
obrigatório

Refund identifier

Resposta

Refund retrieved successfully

created_at
string<date-time>
obrigatório

Refund creation timestamp (UTC, RFC 3339).

Exemplo:

"2026-05-28T14:30:00Z"

details
object
obrigatório

Refund details (amount, message)

id
integer<int64>
obrigatório

Refund identifier

status
enum<string>
obrigatório

Current status of the refund

Opções disponíveis:
pending,
processing,
success,
cancelled,
failed
transaction_id
integer<int64>
obrigatório

Original transaction identifier

updated_at
string<date-time>
obrigatório

Last update timestamp (UTC, RFC 3339).

Exemplo:

"2026-05-28T14:30:00Z"

beneficiary
Chave Pix · object

Beneficiary information (payer of original transfer)

cancelled_at
string<date-time> | null

Cancellation timestamp (UTC, RFC 3339), if cancelled.

Exemplo:

"2026-05-28T14:30:00Z"

external_reference_id
string | null

External reference identifier provided by the client

failed_message
string | null

Error message if the refund failed