Financials
List Invoices V2
deprecated
POST
/
invoices-v2
List Invoices V2
curl --request POST \
--url https://nestvet.com/api/1.1/wf/invoices-v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"clinic": "1700000000000x111111111111111111",
"user": "1700000000000x222222222222222222",
"subscription": "1700000000000x333333333333333333",
"status": "Paid",
"invoice_pims_id": "INV-12345",
"spanner_invoice_id": "spn_inv_abc123",
"modified_since": "2025-01-01T00:00:00Z",
"created_at_since": "2025-01-01T00:00:00Z",
"updated_at_since": "2025-01-01T00:00:00Z",
"include_deleted": false
}
'import requests
url = "https://nestvet.com/api/1.1/wf/invoices-v2"
payload = {
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"clinic": "1700000000000x111111111111111111",
"user": "1700000000000x222222222222222222",
"subscription": "1700000000000x333333333333333333",
"status": "Paid",
"invoice_pims_id": "INV-12345",
"spanner_invoice_id": "spn_inv_abc123",
"modified_since": "2025-01-01T00:00:00Z",
"created_at_since": "2025-01-01T00:00:00Z",
"updated_at_since": "2025-01-01T00:00:00Z",
"include_deleted": False
}
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: '1700000000000x444444444444444444',
limit: 100,
offset: 0,
id: '1700000000000x000000000000000000',
clinic: '1700000000000x111111111111111111',
user: '1700000000000x222222222222222222',
subscription: '1700000000000x333333333333333333',
status: 'Paid',
invoice_pims_id: 'INV-12345',
spanner_invoice_id: 'spn_inv_abc123',
modified_since: '2025-01-01T00:00:00Z',
created_at_since: '2025-01-01T00:00:00Z',
updated_at_since: '2025-01-01T00:00:00Z',
include_deleted: false
})
};
fetch('https://nestvet.com/api/1.1/wf/invoices-v2', 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/invoices-v2",
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' => '1700000000000x444444444444444444',
'limit' => 100,
'offset' => 0,
'id' => '1700000000000x000000000000000000',
'clinic' => '1700000000000x111111111111111111',
'user' => '1700000000000x222222222222222222',
'subscription' => '1700000000000x333333333333333333',
'status' => 'Paid',
'invoice_pims_id' => 'INV-12345',
'spanner_invoice_id' => 'spn_inv_abc123',
'modified_since' => '2025-01-01T00:00:00Z',
'created_at_since' => '2025-01-01T00:00:00Z',
'updated_at_since' => '2025-01-01T00:00:00Z',
'include_deleted' => false
]),
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/invoices-v2"
payload := strings.NewReader("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"clinic\": \"1700000000000x111111111111111111\",\n \"user\": \"1700000000000x222222222222222222\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"status\": \"Paid\",\n \"invoice_pims_id\": \"INV-12345\",\n \"spanner_invoice_id\": \"spn_inv_abc123\",\n \"modified_since\": \"2025-01-01T00:00:00Z\",\n \"created_at_since\": \"2025-01-01T00:00:00Z\",\n \"updated_at_since\": \"2025-01-01T00:00:00Z\",\n \"include_deleted\": false\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/invoices-v2")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"clinic\": \"1700000000000x111111111111111111\",\n \"user\": \"1700000000000x222222222222222222\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"status\": \"Paid\",\n \"invoice_pims_id\": \"INV-12345\",\n \"spanner_invoice_id\": \"spn_inv_abc123\",\n \"modified_since\": \"2025-01-01T00:00:00Z\",\n \"created_at_since\": \"2025-01-01T00:00:00Z\",\n \"updated_at_since\": \"2025-01-01T00:00:00Z\",\n \"include_deleted\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nestvet.com/api/1.1/wf/invoices-v2")
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\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"clinic\": \"1700000000000x111111111111111111\",\n \"user\": \"1700000000000x222222222222222222\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"status\": \"Paid\",\n \"invoice_pims_id\": \"INV-12345\",\n \"spanner_invoice_id\": \"spn_inv_abc123\",\n \"modified_since\": \"2025-01-01T00:00:00Z\",\n \"created_at_since\": \"2025-01-01T00:00:00Z\",\n \"updated_at_since\": \"2025-01-01T00:00:00Z\",\n \"include_deleted\": false\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"organization": "<string>",
"clinic": "<string>",
"date": "2023-11-07T05:31:56Z",
"invoice_lines": [
"<string>"
],
"invoice_pims_id": "<string>",
"pets": [
"<string>"
],
"status": "<string>",
"subscriptions": [
"<string>"
],
"subtotal": 123,
"tax": 123,
"total": 123
}
]Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Filter by organization ID
Example:
"1700000000000x444444444444444444"
Required range:
1 <= x <= 200Example:
100
Required range:
x >= 0Example:
0
Filter by invoice ID
Example:
"1700000000000x000000000000000000"
Filter by clinic ID
Example:
"1700000000000x111111111111111111"
Filter by user ID
Example:
"1700000000000x222222222222222222"
Filter by subscription ID
Example:
"1700000000000x333333333333333333"
Filter by invoice status
Example:
"Paid"
Filter by PIMS invoice ID
Example:
"INV-12345"
Filter by Spanner invoice ID
Example:
"spn_inv_abc123"
Filter: internal modified_date >= value
Example:
"2025-01-01T00:00:00Z"
Filter: bubble created date >= value
Example:
"2025-01-01T00:00:00Z"
Filter: bubble modified date >= value
Example:
"2025-01-01T00:00:00Z"
Include soft-deleted rows
Example:
false
⌘I
List Invoices V2
curl --request POST \
--url https://nestvet.com/api/1.1/wf/invoices-v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"clinic": "1700000000000x111111111111111111",
"user": "1700000000000x222222222222222222",
"subscription": "1700000000000x333333333333333333",
"status": "Paid",
"invoice_pims_id": "INV-12345",
"spanner_invoice_id": "spn_inv_abc123",
"modified_since": "2025-01-01T00:00:00Z",
"created_at_since": "2025-01-01T00:00:00Z",
"updated_at_since": "2025-01-01T00:00:00Z",
"include_deleted": false
}
'import requests
url = "https://nestvet.com/api/1.1/wf/invoices-v2"
payload = {
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"clinic": "1700000000000x111111111111111111",
"user": "1700000000000x222222222222222222",
"subscription": "1700000000000x333333333333333333",
"status": "Paid",
"invoice_pims_id": "INV-12345",
"spanner_invoice_id": "spn_inv_abc123",
"modified_since": "2025-01-01T00:00:00Z",
"created_at_since": "2025-01-01T00:00:00Z",
"updated_at_since": "2025-01-01T00:00:00Z",
"include_deleted": False
}
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: '1700000000000x444444444444444444',
limit: 100,
offset: 0,
id: '1700000000000x000000000000000000',
clinic: '1700000000000x111111111111111111',
user: '1700000000000x222222222222222222',
subscription: '1700000000000x333333333333333333',
status: 'Paid',
invoice_pims_id: 'INV-12345',
spanner_invoice_id: 'spn_inv_abc123',
modified_since: '2025-01-01T00:00:00Z',
created_at_since: '2025-01-01T00:00:00Z',
updated_at_since: '2025-01-01T00:00:00Z',
include_deleted: false
})
};
fetch('https://nestvet.com/api/1.1/wf/invoices-v2', 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/invoices-v2",
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' => '1700000000000x444444444444444444',
'limit' => 100,
'offset' => 0,
'id' => '1700000000000x000000000000000000',
'clinic' => '1700000000000x111111111111111111',
'user' => '1700000000000x222222222222222222',
'subscription' => '1700000000000x333333333333333333',
'status' => 'Paid',
'invoice_pims_id' => 'INV-12345',
'spanner_invoice_id' => 'spn_inv_abc123',
'modified_since' => '2025-01-01T00:00:00Z',
'created_at_since' => '2025-01-01T00:00:00Z',
'updated_at_since' => '2025-01-01T00:00:00Z',
'include_deleted' => false
]),
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/invoices-v2"
payload := strings.NewReader("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"clinic\": \"1700000000000x111111111111111111\",\n \"user\": \"1700000000000x222222222222222222\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"status\": \"Paid\",\n \"invoice_pims_id\": \"INV-12345\",\n \"spanner_invoice_id\": \"spn_inv_abc123\",\n \"modified_since\": \"2025-01-01T00:00:00Z\",\n \"created_at_since\": \"2025-01-01T00:00:00Z\",\n \"updated_at_since\": \"2025-01-01T00:00:00Z\",\n \"include_deleted\": false\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/invoices-v2")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"clinic\": \"1700000000000x111111111111111111\",\n \"user\": \"1700000000000x222222222222222222\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"status\": \"Paid\",\n \"invoice_pims_id\": \"INV-12345\",\n \"spanner_invoice_id\": \"spn_inv_abc123\",\n \"modified_since\": \"2025-01-01T00:00:00Z\",\n \"created_at_since\": \"2025-01-01T00:00:00Z\",\n \"updated_at_since\": \"2025-01-01T00:00:00Z\",\n \"include_deleted\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nestvet.com/api/1.1/wf/invoices-v2")
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\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"clinic\": \"1700000000000x111111111111111111\",\n \"user\": \"1700000000000x222222222222222222\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"status\": \"Paid\",\n \"invoice_pims_id\": \"INV-12345\",\n \"spanner_invoice_id\": \"spn_inv_abc123\",\n \"modified_since\": \"2025-01-01T00:00:00Z\",\n \"created_at_since\": \"2025-01-01T00:00:00Z\",\n \"updated_at_since\": \"2025-01-01T00:00:00Z\",\n \"include_deleted\": false\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"organization": "<string>",
"clinic": "<string>",
"date": "2023-11-07T05:31:56Z",
"invoice_lines": [
"<string>"
],
"invoice_pims_id": "<string>",
"pets": [
"<string>"
],
"status": "<string>",
"subscriptions": [
"<string>"
],
"subtotal": 123,
"tax": 123,
"total": 123
}
]