Skip to main content
GET
/
v1
/
payments
/
{payment_id}
Buscar pagamento
curl --request GET \
  --url https://api.valorapayments.com.br/v1/payments/{payment_id} \
  --header 'x-api-key: <api-key>'
{
  "payment_id": "pay_3f1a8b2c-4d5e",
  "transaction_id": "<string>",
  "business_id": "<string>",
  "amount_brl": 123,
  "external_id": "<string>",
  "failure_code": "<string>",
  "failure_reason": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Chave de API gerada no painel Valora. Envie em todas as requisições.

Path Parameters

payment_id
string
required

ID do pagamento (formato: pay_xxxxxxxx-xxxx)

Example:

"pay_3f1a8b2c-4d5e"

Response

Dados do pagamento

payment_id
string
Example:

"pay_3f1a8b2c-4d5e"

transaction_id
string
business_id
string
method
enum<string>
Available options:
pix,
crypto,
card
status
enum<string>
  • pending — criado, aguardando ação
  • processing — QR Code PIX gerado, aguardando pagamento
  • paid — pagamento confirmado
  • failed — falhou
  • expired — expirou sem pagamento (cripto: 30min)
  • cancelled — cancelado
Available options:
pending,
processing,
paid,
failed,
expired,
cancelled
amount_brl
number

Valor bruto em BRL

external_id
string

ID na EFI (PIX) ou referência Solana (cripto)

failure_code
string | null
failure_reason
string | null
created_at
string<date-time>
updated_at
string<date-time>