Listar pedidos de depósito
curl --request GET \
--url https://api-bc.pgubright.com/wallet/deposit-requests \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-bc.pgubright.com/wallet/deposit-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-bc.pgubright.com/wallet/deposit-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 123,
"user_id": "<string>",
"sensor_id": "<string>",
"wallet_address": "<string>",
"amount_eur": "<string>",
"external_reference": "<string>",
"status": "PENDING",
"approved_by": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"rejected_reason": "<string>",
"tx_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
]{
"message": "Usuário sem permissão para operar neste sensor.",
"code": "SENSOR_FORBIDDEN"
}Carteira
Listar pedidos de depósito
GET
/
wallet
/
deposit-requests
Listar pedidos de depósito
curl --request GET \
--url https://api-bc.pgubright.com/wallet/deposit-requests \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-bc.pgubright.com/wallet/deposit-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-bc.pgubright.com/wallet/deposit-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 123,
"user_id": "<string>",
"sensor_id": "<string>",
"wallet_address": "<string>",
"amount_eur": "<string>",
"external_reference": "<string>",
"status": "PENDING",
"approved_by": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"rejected_reason": "<string>",
"tx_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
]{
"message": "Usuário sem permissão para operar neste sensor.",
"code": "SENSOR_FORBIDDEN"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Pedidos do usuário autenticado.
Available options:
PENDING, APPROVED, REJECTED, EXPIRED, CANCELLED 