Read all accounts
curl --request GET \
--url https://api-sandbox.lumx.io/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.lumx.io/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.lumx.io/accounts', 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://api-sandbox.lumx.io/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api-sandbox.lumx.io/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.lumx.io/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.lumx.io/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "d71d44bc-51f2-478f-864f-744dffafe17f",
"customerId": "4ad70abb-cb43-4ab8-adb4-dd5cb8b18409",
"status": "AWAITING_ONBOARDING",
"currency": "BRL",
"provider": "BPY",
"createdAt": "2026-10-30T17:17:09.566Z",
"updatedAt": "2026-10-30T17:17:09.566Z"
},
{
"id": "bdb68dac-0370-4957-a7ea-5fcb7d5a4008",
"customerId": "992f6325-fdd9-410d-803c-2ec0f30e1d74",
"status": "ACTIVE",
"currency": "BRL",
"provider": "BPY",
"createdAt": "2026-10-29T18:41:06.734Z",
"updatedAt": "2026-10-29T18:41:07.615Z"
},
{
"id": "9e5c0711-0157-4a27-9fc4-6b63de281716",
"customerId": "81e5dc66-091d-4abe-83a4-5347fa54b869",
"status": "INACTIVE",
"currency": "BRL",
"provider": "STARKBANK",
"createdAt": "2026-10-21T01:42:10.587Z",
"updatedAt": "2026-10-21T01:45:01.503Z"
}
],
"pagination": {
"size": 3,
"total": 8,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "9e5c0711-0157-4a27-9fc4-6b63de281716"
}
}
Accounts
Read all accounts
Reads all accounts of the project’s customers, newest first.
GET
/
accounts
Read all accounts
curl --request GET \
--url https://api-sandbox.lumx.io/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.lumx.io/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.lumx.io/accounts', 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://api-sandbox.lumx.io/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api-sandbox.lumx.io/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.lumx.io/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.lumx.io/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "d71d44bc-51f2-478f-864f-744dffafe17f",
"customerId": "4ad70abb-cb43-4ab8-adb4-dd5cb8b18409",
"status": "AWAITING_ONBOARDING",
"currency": "BRL",
"provider": "BPY",
"createdAt": "2026-10-30T17:17:09.566Z",
"updatedAt": "2026-10-30T17:17:09.566Z"
},
{
"id": "bdb68dac-0370-4957-a7ea-5fcb7d5a4008",
"customerId": "992f6325-fdd9-410d-803c-2ec0f30e1d74",
"status": "ACTIVE",
"currency": "BRL",
"provider": "BPY",
"createdAt": "2026-10-29T18:41:06.734Z",
"updatedAt": "2026-10-29T18:41:07.615Z"
},
{
"id": "9e5c0711-0157-4a27-9fc4-6b63de281716",
"customerId": "81e5dc66-091d-4abe-83a4-5347fa54b869",
"status": "INACTIVE",
"currency": "BRL",
"provider": "STARKBANK",
"createdAt": "2026-10-21T01:42:10.587Z",
"updatedAt": "2026-10-21T01:45:01.503Z"
}
],
"pagination": {
"size": 3,
"total": 8,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "9e5c0711-0157-4a27-9fc4-6b63de281716"
}
}