List Consumption Records V2
curl --request POST \
--url https://nestvet.com/api/1.1/wf/consumption-v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"home_clinic": "1700000000000x111111111111111111",
"subscription": "1700000000000x333333333333333333",
"pet": "1700000000000x555555555555555555",
"invoice_line": "1700000000000x666666666666666666",
"invoice_line_id": "INV-LINE-789",
"product_code": "VACC-RABIES",
"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/consumption-v2"
payload = {
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"home_clinic": "1700000000000x111111111111111111",
"subscription": "1700000000000x333333333333333333",
"pet": "1700000000000x555555555555555555",
"invoice_line": "1700000000000x666666666666666666",
"invoice_line_id": "INV-LINE-789",
"product_code": "VACC-RABIES",
"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',
home_clinic: '1700000000000x111111111111111111',
subscription: '1700000000000x333333333333333333',
pet: '1700000000000x555555555555555555',
invoice_line: '1700000000000x666666666666666666',
invoice_line_id: 'INV-LINE-789',
product_code: 'VACC-RABIES',
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/consumption-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/consumption-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',
'home_clinic' => '1700000000000x111111111111111111',
'subscription' => '1700000000000x333333333333333333',
'pet' => '1700000000000x555555555555555555',
'invoice_line' => '1700000000000x666666666666666666',
'invoice_line_id' => 'INV-LINE-789',
'product_code' => 'VACC-RABIES',
'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/consumption-v2"
payload := strings.NewReader("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"home_clinic\": \"1700000000000x111111111111111111\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"pet\": \"1700000000000x555555555555555555\",\n \"invoice_line\": \"1700000000000x666666666666666666\",\n \"invoice_line_id\": \"INV-LINE-789\",\n \"product_code\": \"VACC-RABIES\",\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/consumption-v2")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"home_clinic\": \"1700000000000x111111111111111111\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"pet\": \"1700000000000x555555555555555555\",\n \"invoice_line\": \"1700000000000x666666666666666666\",\n \"invoice_line_id\": \"INV-LINE-789\",\n \"product_code\": \"VACC-RABIES\",\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/consumption-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 \"home_clinic\": \"1700000000000x111111111111111111\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"pet\": \"1700000000000x555555555555555555\",\n \"invoice_line\": \"1700000000000x666666666666666666\",\n \"invoice_line_id\": \"INV-LINE-789\",\n \"product_code\": \"VACC-RABIES\",\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>",
"clinic": "<string>",
"invoice_pims_id": "<string>",
"invoice_date": "2023-11-07T05:31:56Z",
"invoice_line": "<string>",
"invoice_line_aje_delta": 123,
"invoice_line_pims_id": "<string>",
"pet": "<string>",
"pet_benefit": "<string>",
"product_code": "<string>",
"product_name": "<string>",
"qty_available_on_plan": 123,
"qty_consumed": 123,
"qty_consumed_accum": 123,
"qty_in_plan": 123,
"qty_out_of_plan": 123,
"qty_remaining": 123,
"revenue_in_plan_total": 123,
"revenue_out_of_plan_total": 123,
"revenue_to_recognize_total": 123,
"revenue_to_recognize_per_unit": 123,
"subscription": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Filter by organization ID
"1700000000000x444444444444444444"
1 <= x <= 200100
x >= 00
Filter by consumption record ID
"1700000000000x000000000000000000"
Filter by home clinic ID
"1700000000000x111111111111111111"
Filter by subscription ID
"1700000000000x333333333333333333"
Filter by pet ID
"1700000000000x555555555555555555"
Filter by Bubble invoice line ID
"1700000000000x666666666666666666"
Filter by PIMS invoice line ID
"INV-LINE-789"
Filter by product code
"VACC-RABIES"
Filter: internal modified_date >= value
"2025-01-01T00:00:00Z"
Filter: bubble created date >= value
"2025-01-01T00:00:00Z"
Filter: bubble modified date >= value
"2025-01-01T00:00:00Z"
Include soft-deleted rows
false
Response
A list of consumption records
curl --request POST \
--url https://nestvet.com/api/1.1/wf/consumption-v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"home_clinic": "1700000000000x111111111111111111",
"subscription": "1700000000000x333333333333333333",
"pet": "1700000000000x555555555555555555",
"invoice_line": "1700000000000x666666666666666666",
"invoice_line_id": "INV-LINE-789",
"product_code": "VACC-RABIES",
"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/consumption-v2"
payload = {
"organization": "1700000000000x444444444444444444",
"limit": 100,
"offset": 0,
"id": "1700000000000x000000000000000000",
"home_clinic": "1700000000000x111111111111111111",
"subscription": "1700000000000x333333333333333333",
"pet": "1700000000000x555555555555555555",
"invoice_line": "1700000000000x666666666666666666",
"invoice_line_id": "INV-LINE-789",
"product_code": "VACC-RABIES",
"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',
home_clinic: '1700000000000x111111111111111111',
subscription: '1700000000000x333333333333333333',
pet: '1700000000000x555555555555555555',
invoice_line: '1700000000000x666666666666666666',
invoice_line_id: 'INV-LINE-789',
product_code: 'VACC-RABIES',
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/consumption-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/consumption-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',
'home_clinic' => '1700000000000x111111111111111111',
'subscription' => '1700000000000x333333333333333333',
'pet' => '1700000000000x555555555555555555',
'invoice_line' => '1700000000000x666666666666666666',
'invoice_line_id' => 'INV-LINE-789',
'product_code' => 'VACC-RABIES',
'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/consumption-v2"
payload := strings.NewReader("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"home_clinic\": \"1700000000000x111111111111111111\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"pet\": \"1700000000000x555555555555555555\",\n \"invoice_line\": \"1700000000000x666666666666666666\",\n \"invoice_line_id\": \"INV-LINE-789\",\n \"product_code\": \"VACC-RABIES\",\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/consumption-v2")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"1700000000000x444444444444444444\",\n \"limit\": 100,\n \"offset\": 0,\n \"id\": \"1700000000000x000000000000000000\",\n \"home_clinic\": \"1700000000000x111111111111111111\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"pet\": \"1700000000000x555555555555555555\",\n \"invoice_line\": \"1700000000000x666666666666666666\",\n \"invoice_line_id\": \"INV-LINE-789\",\n \"product_code\": \"VACC-RABIES\",\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/consumption-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 \"home_clinic\": \"1700000000000x111111111111111111\",\n \"subscription\": \"1700000000000x333333333333333333\",\n \"pet\": \"1700000000000x555555555555555555\",\n \"invoice_line\": \"1700000000000x666666666666666666\",\n \"invoice_line_id\": \"INV-LINE-789\",\n \"product_code\": \"VACC-RABIES\",\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>",
"clinic": "<string>",
"invoice_pims_id": "<string>",
"invoice_date": "2023-11-07T05:31:56Z",
"invoice_line": "<string>",
"invoice_line_aje_delta": 123,
"invoice_line_pims_id": "<string>",
"pet": "<string>",
"pet_benefit": "<string>",
"product_code": "<string>",
"product_name": "<string>",
"qty_available_on_plan": 123,
"qty_consumed": 123,
"qty_consumed_accum": 123,
"qty_in_plan": 123,
"qty_out_of_plan": 123,
"qty_remaining": 123,
"revenue_in_plan_total": 123,
"revenue_out_of_plan_total": 123,
"revenue_to_recognize_total": 123,
"revenue_to_recognize_per_unit": 123,
"subscription": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]