Pular para o conteúdo
Torviko

Pagamentos

Listar pagamentos

get/v1/payments
Escopo payments:read

Parâmetros#

  • limitintegerquery
    Itens por página.
    1 a 100padrão 25
  • starting_afterstringquery
    ID do último item da página anterior.
  • statusstringquery
    Situação atual.
    CREATEDPENDING_PAYMENTPROCESSINGCONFIRMEDFAILEDCANCELEDEXPIREDREFUNDEDPARTIALLY_REFUNDEDDISPUTED

Resposta#

200 — lista paginada de objetos Payment. Veja Paginação.

  • objectstring
    Tipo do objeto.
    payment
  • idstring
    Identificador único.
  • kindstring
    Em pagamentos: charge (cobrança) ou deposit (depósito de saldo). Em itens de pedido: principal, order bump ou adicional.
    chargedeposit
  • statusstring
    Situação atual.
    CREATEDPENDING_PAYMENTPROCESSINGCONFIRMEDFAILEDCANCELEDEXPIREDREFUNDEDPARTIALLY_REFUNDEDDISPUTED
  • methodstring
    Forma de pagamento.
    PIX
  • amount_centsinteger
    Valor em centavos de real.
  • fee_centsinteger
    Tarifa da Torviko, em centavos.
  • net_centsinteger
    Valor líquido (valor menos tarifa), em centavos.
  • refunded_centsinteger
    Total já reembolsado, em centavos.
  • currencystring
    Moeda. Sempre BRL.
    BRL
  • livemodeboolean
    true para dados reais (chave live); false para dados de teste.
  • end_to_end_idstring | null
    Identificador end-to-end do PIX no Banco Central.
  • created_atstring
    Data de criação (ISO 8601, UTC).
    ISO 8601
  • confirmed_atstring | null
    Quando o pagamento foi confirmado.
    ISO 8601
  • order_idstring | null
    Pedido vinculado, quando houver.
  • expires_atstring | null
    Vencimento da cobrança.
    ISO 8601
  • pixobject | null
    Dados do PIX, presentes quando o método é PIX.
  • copy_pastestring
    Código PIX copia e cola.
  • failure_codestring | null
    Código da falha.
  • failure_messagestring | null
    Descrição da falha.
  • metadataobject
    Pares chave-valor livres, devolvidos exatamente como enviados.

Erros#

Além desses, qualquer endpoint pode responder 401, 403 e 429. Veja Erros e limites.

curl https://api.torviko.com.br/v1/payments \
  -H "Authorization: Bearer $TORVIKO_API_KEY"
Resposta 200
{
  "object": "list",
  "data": [
    {
      "object": "payment",
      "id": "txn_7h3k9m2p4q6r8s1t",
      "kind": "charge",
      "status": "PENDING_PAYMENT",
      "method": "PIX",
      "amount_cents": 19900,
      "fee_cents": 197,
      "net_cents": 19703,
      "refunded_cents": 0,
      "currency": "BRL",
      "livemode": false,
      "end_to_end_id": null,
      "created_at": "2026-11-08T14:02:11.000Z",
      "confirmed_at": null,
      "order_id": null,
      "expires_at": "2026-11-08T14:32:11.000Z",
      "pix": {
        "copy_paste": "00020126...6304ABCD"
      },
      "failure_code": null,
      "failure_message": null,
      "metadata": {
        "pedido_interno": "A-1042"
      }
    }
  ],
  "has_more": false
}