List orders completed on a day
curl --request GET \
--url https://app.crown-brlv.com/api/v1/ordersimport requests
url = "https://app.crown-brlv.com/api/v1/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v1/orders', 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/orders",
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/orders"
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/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v1/orders")
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{
"orders": [
{
"state-updated-at": "2024-01-15T10:30:00Z",
"account-id": "01a11333-d4db-70cb-8c00-baad6625fb47",
"effective-rate": "0.9950",
"base-rate": "1.0000",
"id": "660e8400-e29b-41d4-a716-446655440001",
"source-amount": "100.50",
"target-amount": "99.75",
"created-at": "2024-01-15T10:30:00Z",
"quote-id": "550e8400-e29b-41d4-a716-446655440000",
"source-asset": "fiat/brl",
"target-asset": "eth-base/brlv",
"state": "created",
"completed-at": "2024-01-15T10:30:00Z",
"payment-term": "d1",
"fee-amount": "0.50",
"fee-asset": "fiat/brl",
"qr-code-base64": "<string>",
"rate-lock": "10m",
"expiration": "2024-01-15T10:30:00Z",
"brcode": "00020101021226890014br.gov.bcb.pix..."
}
],
"next-cursor": "<string>"
}{
"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>"
}
}Orders
List Completed Orders
Lists the orders that completed on the given day (America/Sao_Paulo), oldest first, so a partner can reconcile a day of orders against its own records. Covers the authenticated account and, for callers with the manage-holders capability, every one of its sub-accounts, each order carrying its account-id. Paginated: up to limit orders per page (default 50, at most 100); pass the next-cursor of a page as cursor to get the next one, until next-cursor is null. Requires API access.
GET
/
api
/
v1
/
orders
List orders completed on a day
curl --request GET \
--url https://app.crown-brlv.com/api/v1/ordersimport requests
url = "https://app.crown-brlv.com/api/v1/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v1/orders', 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/orders",
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/orders"
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/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v1/orders")
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{
"orders": [
{
"state-updated-at": "2024-01-15T10:30:00Z",
"account-id": "01a11333-d4db-70cb-8c00-baad6625fb47",
"effective-rate": "0.9950",
"base-rate": "1.0000",
"id": "660e8400-e29b-41d4-a716-446655440001",
"source-amount": "100.50",
"target-amount": "99.75",
"created-at": "2024-01-15T10:30:00Z",
"quote-id": "550e8400-e29b-41d4-a716-446655440000",
"source-asset": "fiat/brl",
"target-asset": "eth-base/brlv",
"state": "created",
"completed-at": "2024-01-15T10:30:00Z",
"payment-term": "d1",
"fee-amount": "0.50",
"fee-asset": "fiat/brl",
"qr-code-base64": "<string>",
"rate-lock": "10m",
"expiration": "2024-01-15T10:30:00Z",
"brcode": "00020101021226890014br.gov.bcb.pix..."
}
],
"next-cursor": "<string>"
}{
"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>"
}
}Query Parameters
Day the orders completed, in America/Sao_Paulo
Example:
"2026-10-09"
The next-cursor of the previous page. Omit it for the first page.
Pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Example:
"2026-10-09T13:04:16.344Z_01a120c1-cf85-70e7-b319-f6194a8061c4"
Orders per page, from 1 to 100. Defaults to 50.
Example:
50