Financials
List Balance Transactions
deprecated
POST
/
psp-balance-transactions
List Stripe Balance Transactions
curl --request POST \
--url https://nestvet.com/api/1.1/wf/psp-balance-transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "<string>",
"limit": 123,
"offset": 123,
"clinic_id": "<string>",
"starting_after": "<string>",
"created_since": 123,
"payout_id": "<string>"
}
'import requests
url = "https://nestvet.com/api/1.1/wf/psp-balance-transactions"
payload = {
"organization": "<string>",
"limit": 123,
"offset": 123,
"clinic_id": "<string>",
"starting_after": "<string>",
"created_since": 123,
"payout_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organization: '<string>',
limit: 123,
offset: 123,
clinic_id: '<string>',
starting_after: '<string>',
created_since: 123,
payout_id: '<string>'
})
};
fetch('https://nestvet.com/api/1.1/wf/psp-balance-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://nestvet.com/api/1.1/wf/psp-balance-transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organization' => '<string>',
'limit' => 123,
'offset' => 123,
'clinic_id' => '<string>',
'starting_after' => '<string>',
'created_since' => 123,
'payout_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nestvet.com/api/1.1/wf/psp-balance-transactions"
payload := strings.NewReader("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"clinic_id\": \"<string>\",\n \"starting_after\": \"<string>\",\n \"created_since\": 123,\n \"payout_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nestvet.com/api/1.1/wf/psp-balance-transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"clinic_id\": \"<string>\",\n \"starting_after\": \"<string>\",\n \"created_since\": 123,\n \"payout_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nestvet.com/api/1.1/wf/psp-balance-transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"clinic_id\": \"<string>\",\n \"starting_after\": \"<string>\",\n \"created_since\": 123,\n \"payout_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "txn_1SKUFrQ2tZJqmmPddXbdWOuD",
"object": "balance_transaction",
"amount": -14614,
"available_on": 123,
"balance_type": "payments",
"created": 123,
"currency": "usd",
"description": "STRIPE PAYOUT",
"exchange_rate": 123,
"fee": 123,
"fee_details": [
{}
],
"net": -14614,
"reporting_category": "payout",
"source": "po_1SKUFqQ2tZJqmmPd0jPqc6n1",
"status": "available",
"type": "payout"
}
],
"has_more": true
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The clinic ID to scope this request to.
Stripe pagination cursor — return results after this object ID.
Unix timestamp; return only transactions created on or after this time.
Filter to balance transactions associated with the given payout ID.
⌘I
List Stripe Balance Transactions
curl --request POST \
--url https://nestvet.com/api/1.1/wf/psp-balance-transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "<string>",
"limit": 123,
"offset": 123,
"clinic_id": "<string>",
"starting_after": "<string>",
"created_since": 123,
"payout_id": "<string>"
}
'import requests
url = "https://nestvet.com/api/1.1/wf/psp-balance-transactions"
payload = {
"organization": "<string>",
"limit": 123,
"offset": 123,
"clinic_id": "<string>",
"starting_after": "<string>",
"created_since": 123,
"payout_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organization: '<string>',
limit: 123,
offset: 123,
clinic_id: '<string>',
starting_after: '<string>',
created_since: 123,
payout_id: '<string>'
})
};
fetch('https://nestvet.com/api/1.1/wf/psp-balance-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://nestvet.com/api/1.1/wf/psp-balance-transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organization' => '<string>',
'limit' => 123,
'offset' => 123,
'clinic_id' => '<string>',
'starting_after' => '<string>',
'created_since' => 123,
'payout_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nestvet.com/api/1.1/wf/psp-balance-transactions"
payload := strings.NewReader("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"clinic_id\": \"<string>\",\n \"starting_after\": \"<string>\",\n \"created_since\": 123,\n \"payout_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nestvet.com/api/1.1/wf/psp-balance-transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"clinic_id\": \"<string>\",\n \"starting_after\": \"<string>\",\n \"created_since\": 123,\n \"payout_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nestvet.com/api/1.1/wf/psp-balance-transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"clinic_id\": \"<string>\",\n \"starting_after\": \"<string>\",\n \"created_since\": 123,\n \"payout_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "txn_1SKUFrQ2tZJqmmPddXbdWOuD",
"object": "balance_transaction",
"amount": -14614,
"available_on": 123,
"balance_type": "payments",
"created": 123,
"currency": "usd",
"description": "STRIPE PAYOUT",
"exchange_rate": 123,
"fee": 123,
"fee_details": [
{}
],
"net": -14614,
"reporting_category": "payout",
"source": "po_1SKUFqQ2tZJqmmPd0jPqc6n1",
"status": "available",
"type": "payout"
}
],
"has_more": true
}