get https://api.sandbox.empresas.btgpactual.com/v1/companies//authorized-direct-debits//debits
Obtém a lista débitos de um DDA.
Responses
401Unauthorized
403Forbidden
Obtém a lista débitos de um DDA.
401Unauthorized
403Forbidden
xxxxxxxxxx
curl --request GET \
--url https://api.sandbox.empresas.btgpactual.com/v1/companies/companyId/authorized-direct-debits/authorizedDirectDebitId/debits \
--header 'accept: application/json'
xxxxxxxxxx
28}
{
"data": [
{
"debitId": "00000000-0000-0000-0000-000000000001",
"authorizedDirectDebitId": "00000000-0000-0000-0000-000000000000",
"status": "CREATED",
"amount": 0.01,
"dueDate": "2023-02-28T00:00:00.000Z",
"expirationDate": "2024-02-28T00:00:00.000Z",
"digitableLine": "20800000000000000000000000000000000000000000001",
"payee": {
"taxId": "30306294000145",
"fantasyName": "NOME FANTASIA",
"socialName": "NOME SOCIAL",
"bank": {
"code": 208,
"name": "BANCO BTG PACTUAL S.A."
}
}
}
],
"_links": {
"next": {
"href": "/v1/companies/30306294000145/authorized-direct-debits/00000000-0000-0000-0000-000000000000/debits?cursor=eyJvZmZzZXQiOiAxMCwgImxpbWl0IjogMTB9",
"method": "GET"