curl --request GET \
--url https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}import requests
url = "https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "660e8400-e29b-41d4-a716-446655440001",
"asset": "fiat/brl",
"amount": "100.50",
"method": "pix",
"state": "pending-payment",
"created-at": "2025-03-06T10:30:00Z",
"state-updated-at": "2025-03-06T10:30:00Z"
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}Get Withdrawal
Retrieves details of a specific withdrawal
curl --request GET \
--url https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}import requests
url = "https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v1/accounts/{account-id}/withdrawals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "660e8400-e29b-41d4-a716-446655440001",
"asset": "fiat/brl",
"amount": "100.50",
"method": "pix",
"state": "pending-payment",
"created-at": "2025-03-06T10:30:00Z",
"state-updated-at": "2025-03-06T10:30:00Z"
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}Response
Withdrawal retrieved successfully
- PIX Withdrawal
- TED Withdrawal
- Stablecoin Withdrawal
BRL PIX withdrawal
"660e8400-e29b-41d4-a716-446655440001"
fiat/brl "fiat/brl"
"100.50"
pix "pix"
Current state of the order. pending-payment is a brcode order waiting for its PIX. pending-delivery has been paid and its target asset is on its way. rolling-back is being undone. completed is the happy end. rolled-back means the order was undone for a reason other than funding. expired is a brcode order whose funding window closed with no payment: nothing was charged and nothing is owed. payment-returned is a brcode order whose PIX arrived after the window: the payment is being returned to the account it came from. rejected means the order could not go ahead.
pending-payment, pending-delivery, rolling-back, completed, rolled-back, expired, payment-returned, rejected "pending-payment"
"2025-03-06T10:30:00Z"
"2025-03-06T10:30:00Z"