Ir para o conteúdo
Infopago Developersv1.0.3
Referência da APIAPI de ContasBoletos

Consultar pagamento de boleto por ID.

Consulta o pagamento de boleto pelo `id` da operação. Use quando já tiver o identificador e quiser só o status e os dados principais, sem o detalhe expandido.

GET
/billets/{id}

Autorização

OAuth2 billets.read
headerAuthorizationBearer <token>

Escopo: billets.read

Parâmetros de caminho

id*string

ID do boleto.

Corpo da resposta

Sucesso

application/json
  1. response
data?
Exemplo de requisição
curl -X GET 'https://cashout.infopago.com.br/api/v2/billets/string'
Exemplo de resposta
{  "data": {    "id": 0,    "idempotencyKey": "string",    "createdAt": "2019-08-24T14:15:22Z",    "status": "CANCELED",    "transactionType": "PIX",    "creditDebitType": "CREDIT",    "payment": {      "currency": "BRL",      "amount": 0.1    },    "billetInfo": {      "digitableCode": "string",      "barCode": "string",      "settleDate": "2019-08-24T14:15:22Z",      "dueDate": "2019-08-24T14:15:22Z"    },    "creditorAccount": {      "ispb": "string",      "issuer": "string",      "number": "string",      "accountType": "SLRY",      "document": "string",      "name": "string"    },    "debtorAccount": {      "ispb": "string",      "issuer": "string",      "number": "string",      "accountType": "SLRY",      "document": "string",      "name": "string"    }  }}