PSP (Live Stripe Reads)
List payments (live Stripe read)
POST
/
psp-payments
/
search
List payments (live Stripe read)
curl --request POST \
--url https://practice-data.nest.vet/api/v3/psp-payments/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clinic": "<string>",
"organization": "<string>",
"limit": 100,
"starting_after": "<string>",
"created_gte": 123,
"created_lte": 123
}
'import requests
url = "https://practice-data.nest.vet/api/v3/psp-payments/search"
payload = {
"clinic": "<string>",
"organization": "<string>",
"limit": 100,
"starting_after": "<string>",
"created_gte": 123,
"created_lte": 123
}
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({
clinic: '<string>',
organization: '<string>',
limit: 100,
starting_after: '<string>',
created_gte: 123,
created_lte: 123
})
};
fetch('https://practice-data.nest.vet/api/v3/psp-payments/search', 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://practice-data.nest.vet/api/v3/psp-payments/search",
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([
'clinic' => '<string>',
'organization' => '<string>',
'limit' => 100,
'starting_after' => '<string>',
'created_gte' => 123,
'created_lte' => 123
]),
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://practice-data.nest.vet/api/v3/psp-payments/search"
payload := strings.NewReader("{\n \"clinic\": \"<string>\",\n \"organization\": \"<string>\",\n \"limit\": 100,\n \"starting_after\": \"<string>\",\n \"created_gte\": 123,\n \"created_lte\": 123\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://practice-data.nest.vet/api/v3/psp-payments/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clinic\": \"<string>\",\n \"organization\": \"<string>\",\n \"limit\": 100,\n \"starting_after\": \"<string>\",\n \"created_gte\": 123,\n \"created_lte\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://practice-data.nest.vet/api/v3/psp-payments/search")
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 \"clinic\": \"<string>\",\n \"organization\": \"<string>\",\n \"limit\": 100,\n \"starting_after\": \"<string>\",\n \"created_gte\": 123,\n \"created_lte\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"has_more": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<unknown>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Authorization: Bearer <api key>. The key resolves to your organization; every response is scoped to it. An organization field in the request body is optional, but if present it must match, or the request is rejected.
Body
application/json
Required. Names the clinic whose connected Stripe account to read. There is no organization-wide Stripe read.
Optional. If present, must match the organization your API key resolves to, or the request is rejected with 400.
Capped at 100, Stripe's own page limit.
Stripe cursor: the id of the last item on the previous page. There is no offset -- Stripe paginates by cursor.
Inclusive lower bound on Stripe's created, epoch seconds.
Inclusive upper bound on Stripe's created, epoch seconds.
⌘I
List payments (live Stripe read)
curl --request POST \
--url https://practice-data.nest.vet/api/v3/psp-payments/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clinic": "<string>",
"organization": "<string>",
"limit": 100,
"starting_after": "<string>",
"created_gte": 123,
"created_lte": 123
}
'import requests
url = "https://practice-data.nest.vet/api/v3/psp-payments/search"
payload = {
"clinic": "<string>",
"organization": "<string>",
"limit": 100,
"starting_after": "<string>",
"created_gte": 123,
"created_lte": 123
}
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({
clinic: '<string>',
organization: '<string>',
limit: 100,
starting_after: '<string>',
created_gte: 123,
created_lte: 123
})
};
fetch('https://practice-data.nest.vet/api/v3/psp-payments/search', 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://practice-data.nest.vet/api/v3/psp-payments/search",
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([
'clinic' => '<string>',
'organization' => '<string>',
'limit' => 100,
'starting_after' => '<string>',
'created_gte' => 123,
'created_lte' => 123
]),
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://practice-data.nest.vet/api/v3/psp-payments/search"
payload := strings.NewReader("{\n \"clinic\": \"<string>\",\n \"organization\": \"<string>\",\n \"limit\": 100,\n \"starting_after\": \"<string>\",\n \"created_gte\": 123,\n \"created_lte\": 123\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://practice-data.nest.vet/api/v3/psp-payments/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clinic\": \"<string>\",\n \"organization\": \"<string>\",\n \"limit\": 100,\n \"starting_after\": \"<string>\",\n \"created_gte\": 123,\n \"created_lte\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://practice-data.nest.vet/api/v3/psp-payments/search")
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 \"clinic\": \"<string>\",\n \"organization\": \"<string>\",\n \"limit\": 100,\n \"starting_after\": \"<string>\",\n \"created_gte\": 123,\n \"created_lte\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"has_more": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<unknown>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}