Pular para o conteúdo principal
GET
/
v1
/
refunds
Listar Reembolsos
curl --request GET \
  --url https://conta-public-api.kiwify.com/v1/refunds \
  --header 'X-PoP-Challenge: <api-key>' \
  --header 'X-PoP-Format: <api-key>' \
  --header 'X-PoP-Signature: <api-key>' \
  --header 'x-access-id: <api-key>'
{
  "refunds": [
    {
      "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>"
    }
  ],
  "next_cursor": "<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 consulta

external_reference_id
string | null

External reference identifier to filter refunds

limit
integer<int32> | null

Maximum number of refunds to return (1-100, default: 20)

Intervalo obrigatório: x >= 0
cursor
string | null

Cursor for pagination (format: timestamp_micros:id)

Resposta

Refunds retrieved successfully

refunds
object[]
obrigatório

List of refunds

next_cursor
string | null

Cursor for the next page of results. If null, there are no more results.