Cancelar pedido de depósito
curl --request POST \
--url https://api-bc.pgubright.com/wallet/deposit-requests/{deposit_id}/cancel \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-bc.pgubright.com/wallet/deposit-requests/{deposit_id}/cancel', 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/{deposit_id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(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"
}{
"message": "Usuário sem permissão para operar neste sensor.",
"code": "SENSOR_FORBIDDEN"
}Carteira
Cancelar pedido de depósito
POST
/
wallet
/
deposit-requests
/
{deposit_id}
/
cancel
Cancelar pedido de depósito
curl --request POST \
--url https://api-bc.pgubright.com/wallet/deposit-requests/{deposit_id}/cancel \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-bc.pgubright.com/wallet/deposit-requests/{deposit_id}/cancel', 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/{deposit_id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(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"
}{
"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.
Path Parameters
Identificador do pedido de depósito.
Response
Pedido cancelado.
Available options:
PENDING, APPROVED, REJECTED, EXPIRED, CANCELLED 