Organization clients
Fetch an organization client
This endpoint is available to Group API Keys only.
Fetches the organization-level view of a client (pet parent) by the organization client’s ID. Returns all clinic client records associated with this person across every clinic in the organization. Use this endpoint to get a unified view of a pet parent across all locations.
An organization client is a cross-clinic identity that links together the separate clinic client records that exist when the same person visits multiple clinic locations within the same organization.
GET
/
ext
/
v2
/
organization-clients
/
{organization_client_id}
/
Fetch an organization client
curl --request GET \
--url https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/', 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://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/",
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://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/"
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://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/")
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{
"clinic_clients": {
"data": [
{
"can_be_called": true,
"client_notes": "<string>",
"clinic_id": 123,
"created": "2023-11-07T05:31:56Z",
"deleted": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"has_multiple_users": true,
"has_unread_messages_for_clinic": true,
"id": 123,
"is_active": true,
"is_deleted": true,
"is_email_unsubscribed": true,
"is_subscribed": true,
"last_visit_date": "2023-11-07T05:31:56Z",
"modified": "2023-11-07T05:31:56Z",
"organization_client_id": 123,
"pim_id": "<string>",
"primary_client_user_id": 123,
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone_number": 123,
"primary_address": {
"address_one": "<string>",
"city": "<string>",
"id": 123,
"state": "<string>",
"zipcode": "<string>",
"address_two": "",
"country": "US",
"county": "",
"name": "",
"phone_number": 123
},
"primary_payment_method_id": 123
}
],
"next_page": "<string>",
"has_more": false,
"type": "list"
},
"primary_clinic_id": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the organization client
Response
200 - application/json
OK
Was this page helpful?
⌘I
Fetch an organization client
curl --request GET \
--url https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/', 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://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/",
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://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/"
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://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.vetcove.com/ext/v2/organization-clients/{organization_client_id}/")
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{
"clinic_clients": {
"data": [
{
"can_be_called": true,
"client_notes": "<string>",
"clinic_id": 123,
"created": "2023-11-07T05:31:56Z",
"deleted": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"has_multiple_users": true,
"has_unread_messages_for_clinic": true,
"id": 123,
"is_active": true,
"is_deleted": true,
"is_email_unsubscribed": true,
"is_subscribed": true,
"last_visit_date": "2023-11-07T05:31:56Z",
"modified": "2023-11-07T05:31:56Z",
"organization_client_id": 123,
"pim_id": "<string>",
"primary_client_user_id": 123,
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone_number": 123,
"primary_address": {
"address_one": "<string>",
"city": "<string>",
"id": 123,
"state": "<string>",
"zipcode": "<string>",
"address_two": "",
"country": "US",
"county": "",
"name": "",
"phone_number": 123
},
"primary_payment_method_id": 123
}
],
"next_page": "<string>",
"has_more": false,
"type": "list"
},
"primary_clinic_id": 123
}