Service pricing groups
Fetch prices for a service pricing group
This endpoint is available to Group API Keys only.
Retrieves the prices for all services within a specific service pricing group.
A service price defines how much a clinic charges for a specific service. Prices are configured per service pricing group, allowing different pricing tiers across clinics.
GET
/
ext
/
v2
/
service-pricing-groups
/
{service_pricing_group_id}
/
prices
/
Fetch prices for a service pricing group
curl --request GET \
--url https://connect.vetcove.com/ext/v2/service-pricing-groups/{service_pricing_group_id}/prices/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://connect.vetcove.com/ext/v2/service-pricing-groups/{service_pricing_group_id}/prices/"
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/service-pricing-groups/{service_pricing_group_id}/prices/', 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/service-pricing-groups/{service_pricing_group_id}/prices/",
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/service-pricing-groups/{service_pricing_group_id}/prices/"
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/service-pricing-groups/{service_pricing_group_id}/prices/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.vetcove.com/ext/v2/service-pricing-groups/{service_pricing_group_id}/prices/")
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{
"group_services_with_prices": [
{
"code": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 123,
"is_enabled": true,
"is_removable": true,
"is_searchable_for_line_items": true,
"kind": "PROCEDURE",
"min_price": 1,
"name": "<string>",
"revenue_category_id": 123,
"service_price": {
"id": 123,
"service_pricing_group_id": 123,
"strategy_kind": "FIXED_PRICING",
"strategy_value": {},
"current_price": 123
},
"service_pricing_category_id": 123,
"tax_category_id": 123,
"unit_of_measure": "APPLICATOR",
"display_name": "<string>"
}
],
"service_pricing_group_id": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the service pricing group to fetch
Response
200 - application/json
OK
Was this page helpful?
⌘I
Fetch prices for a service pricing group
curl --request GET \
--url https://connect.vetcove.com/ext/v2/service-pricing-groups/{service_pricing_group_id}/prices/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://connect.vetcove.com/ext/v2/service-pricing-groups/{service_pricing_group_id}/prices/"
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/service-pricing-groups/{service_pricing_group_id}/prices/', 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/service-pricing-groups/{service_pricing_group_id}/prices/",
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/service-pricing-groups/{service_pricing_group_id}/prices/"
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/service-pricing-groups/{service_pricing_group_id}/prices/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.vetcove.com/ext/v2/service-pricing-groups/{service_pricing_group_id}/prices/")
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{
"group_services_with_prices": [
{
"code": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 123,
"is_enabled": true,
"is_removable": true,
"is_searchable_for_line_items": true,
"kind": "PROCEDURE",
"min_price": 1,
"name": "<string>",
"revenue_category_id": 123,
"service_price": {
"id": 123,
"service_pricing_group_id": 123,
"strategy_kind": "FIXED_PRICING",
"strategy_value": {},
"current_price": 123
},
"service_pricing_category_id": 123,
"tax_category_id": 123,
"unit_of_measure": "APPLICATOR",
"display_name": "<string>"
}
],
"service_pricing_group_id": 123
}