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>'
{
  "created_at": "2023-11-07T05:31:56Z",
  "details": {
    "amount_in_cents": 123,
    "message_to_payer": "<string>"
  },
  "id": 123,
  "status": "pending",
  "transaction_id": 123,
  "updated_at": "2023-11-07T05:31:56Z",
  "beneficiary": {
    "pix_key": "<string>",
    "name": "<string>",
    "tax_id": "<string>",
    "account_type": "checking_account"
  },
  "cancelled_at": "2023-11-07T05:31:56Z",
  "external_reference_id": "<string>"
}

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

Timestamp when the refund was created

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

Timestamp when the refund was last updated

beneficiary
PIX Key · object

Beneficiary information (payer of original transfer)

cancelled_at
string<date-time> | null

Timestamp when the refund was cancelled (if applicable)

external_reference_id
string | null

External reference identifier provided by the client