Skip to main content
GET
/
charge
/
{id}
Buscar cobrança
curl --request GET \
  --url https://api.aobapay.com/v1/charge/{id} \
  --header 'Authorization: Bearer <token>'
{
  "error": "<unknown>",
  "status": 200,
  "data": {
    "id": "ch_123456",
    "externalID": "pedido-123",
    "brCode": "00020101021226950014br.gov.bcb.pix",
    "brCodeImageUrl": "https://api.aobapay.com/v1/qrcode/ch_abb6bc4f-f55d-45ff-8b",
    "amount": 200,
    "comment": "Pagamento para pedido #123",
    "expiration": 300,
    "fee": 78,
    "expiresAt": "2025-09-25 13:07:27",
    "status": "PENDING",
    "customer": {
      "id": "cus_2243f989-f044-49cc-84db-3ff9e4908dde",
      "name": "João da Silva",
      "document": "12345678900",
      "email": "[email protected]",
      "phone": "+5511987654321"
    },
    "createdAt": "2025-09-25 13:07:27",
    "updatedAt": "2025-09-25 13:07:27"
  }
}

Authorizations

Authorization
string
header
required

Cabeçalho de autenticação Bearer no formato Bearer <aobapay-api-key> onde <aobapay-api-key> é a sua chave de API.

Path Parameters

id
required

Id da cobrança pode ser o (externalID ou ChargeId)

Example:

"ch_123456"

Response

QRCode Pix criado com sucesso

error
null
status
integer

Código de status HTTP.

Example:

200

data
object