Skip to main content
GET
/
v1
/
charge
/
{code}
Consultar cobrança
curl --request GET \
  --url https://hml.4seletpay.com.br/api/v1/charge/{code} \
  --header 'Authorization: Bearer <token>' \
  --header 'account: <account>'
{
  "mensagem": "Charge found",
  "erro": false,
  "mensagenserro": [],
  "codigoretorno": 200,
  "id": "00000000-0000-0000-0000-000000000000",
  "data": {
    "charge_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "charge_created_at": "11/03/2026 10:00:00",
    "account_id": 1,
    "code": "pur_abc123xyz",
    "value": 199.8,
    "charge_value": 199.8,
    "type": "PurchaseOrder",
    "cycle_type": "Only",
    "cycle": 1,
    "coin": "BRL",
    "status": "Approved",
    "client": {
      "code": "cli_abc123",
      "name": "João Silva",
      "email": "joao@exemplo.com.br",
      "documents": [
        {
          "type": "CPF",
          "number": "123.456.789-09",
          "default": true
        }
      ],
      "phone": [
        {
          "ddi": "55",
          "ddd": "11",
          "number": "999999999",
          "default": true
        }
      ],
      "addresss": [
        {
          "zipcode": "01310-100",
          "street": "Avenida Paulista",
          "number": "1000",
          "neighborhood": "Bela Vista",
          "city": "São Paulo",
          "state": "SP"
        }
      ]
    },
    "orders": [
      {
        "code": "ord_abc123xyz",
        "status": "Approved",
        "value": 199.8,
        "error_message": null,
        "items": [
          {
            "code": "produto_001",
            "name": "Camiseta Premium",
            "unitary_value": 99.9,
            "quantity": 2
          }
        ],
        "charges": [
          {
            "code": "chg_abc123",
            "status": "Approved",
            "value": 199.8,
            "canceled_amount": 0,
            "nsu": "123456789",
            "installments": 1,
            "attempts": 1,
            "payment": {
              "code": null,
              "copy_paste": null,
              "expiration": null,
              "payment_type": "CreditCard",
              "installments": 1
            },
            "last_transaction": {
              "transaction_id": "txn_abc123",
              "type": "Authorization",
              "status_code": "00",
              "nsu": "123456789",
              "event_date": "2026-03-11T10:00:00.000000Z",
              "message_acquisition": "Transação autorizada"
            },
            "historics": [],
            "card": {
              "id": "card_abc123",
              "name": "JOAO SILVA",
              "type": "credit",
              "number": "411111****1111",
              "flag": "visa"
            }
          }
        ],
        "confirmation_codes": []
      }
    ]
  }
}
Requer o header account com o código da conta.

Authorizations

Authorization
string
header
required

Token JWT obtido via POST /v1/login. Envie no header Authorization: Bearer <token>.

Headers

account
string
required

Código da conta à qual a operação se aplica

Example:

"acc_abc123xyz"

Path Parameters

code
string
required

Código único da cobrança

Example:

"chg_abc123"

Response

Dados da cobrança retornados com sucesso

Resposta da consulta de cobrança (envelope APIReturnUtil + dados ConsultCharge)

mensagem
string
Example:

"Charge found"

erro
boolean
Example:

false

mensagenserro
string[]
Example:
[]
codigoretorno
integer
Example:

200

id
string
Example:

"00000000-0000-0000-0000-000000000000"

data
object

Dados completos de uma cobrança retornados pelo ConsultCharge