Subcontas
List Subaccount Transactions
Extrato da subconta: vendas creditadas e transferências, mais recentes primeiro. amountCents vem com sinal — crédito positivo, débito negativo — então somar a coluna reproduz o balanceCents.
GET
/
v1
/
subaccounts
/
{id}
/
transactions
List Subaccount Transactions
curl --request GET \
--url https://api.purincash.com/v1/subaccounts/{id}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.purincash.com/v1/subaccounts/{id}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.purincash.com/v1/subaccounts/{id}/transactions', 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.purincash.com/v1/subaccounts/{id}/transactions",
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.purincash.com/v1/subaccounts/{id}/transactions"
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.purincash.com/v1/subaccounts/{id}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.purincash.com/v1/subaccounts/{id}/transactions")
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{
"subaccountId": "sacc_a1b2c3d4e5f60718293a4b5c6d7e8f90",
"balanceCents": 45900,
"transactions": [
{
"type": "sale",
"amountCents": 19400,
"refId": "psc_9f8e7d6c5b4a",
"description": "Venda confirmada",
"createdAt": "2026-08-04T12:05:00.000Z"
},
{
"type": "transfer_out",
"amountCents": -30000,
"refId": "tr_1a2b3c4d5e6f",
"description": "Comissão da plataforma",
"createdAt": "2026-08-03T09:00:00.000Z"
}
],
"total": 2,
"limit": 50,
"offset": 0
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Chave de API gerada no dashboard da PurinCash (ps_live_ ou ps_test_).
Path Parameters
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 0Filtrar por tipo de lançamento.
Available options:
sale, transfer_in, transfer_out ⌘I
List Subaccount Transactions
curl --request GET \
--url https://api.purincash.com/v1/subaccounts/{id}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.purincash.com/v1/subaccounts/{id}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.purincash.com/v1/subaccounts/{id}/transactions', 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.purincash.com/v1/subaccounts/{id}/transactions",
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.purincash.com/v1/subaccounts/{id}/transactions"
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.purincash.com/v1/subaccounts/{id}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.purincash.com/v1/subaccounts/{id}/transactions")
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{
"subaccountId": "sacc_a1b2c3d4e5f60718293a4b5c6d7e8f90",
"balanceCents": 45900,
"transactions": [
{
"type": "sale",
"amountCents": 19400,
"refId": "psc_9f8e7d6c5b4a",
"description": "Venda confirmada",
"createdAt": "2026-08-04T12:05:00.000Z"
},
{
"type": "transfer_out",
"amountCents": -30000,
"refId": "tr_1a2b3c4d5e6f",
"description": "Comissão da plataforma",
"createdAt": "2026-08-03T09:00:00.000Z"
}
],
"total": 2,
"limit": 50,
"offset": 0
}{
"error": "<string>"
}{
"error": "<string>"
}
