Shepherd Veterinary Software Refill API
The Refill API from Shepherd Veterinary Software — 1 operation(s) for refill.
The Refill API from Shepherd Veterinary Software — 1 operation(s) for refill.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/shepherd-vet:shepherd-vet-refill-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: v1
title: Shepherd Open API (v2.248.0.39) Refill API
description: 'Production Base URL: https://open-api.shepherd.vet/pav2/
Production App URL: https://app.shepherd.vet/
Production Documentation URL: https://app.shepherd.vet/swagger/
Sandbox Base URL: https://demo-open-api.shepherd.vet/pav2/
Sandbox App URL: https://demo.shepherd.vet/
Sandbox Documentation URL: https://demo.shepherd.vet/swagger
Authorization: The integration is authorized by providing two headers in the API call
X-Integration-Private-Key - this contains the private key from your credentials
X-Integration-Public-Key - this contains the public key from your credentials
Additionally, for all requests other than Clinic, the X-Clinic-Id header must be provided with the value of the clinic entity id for which you are running the API requests. You can get the entity id by calling the Clinic endpoint. If authorization fails, the request returns HTTP status 401 and the response body is one of the messages below. Missing X-Integration-Public-Key header - the public key header is absent from the request. Missing X-Integration-Private-Key header - the private key header is absent from the request. Missing X-Clinic-Id header - the clinic identifier header is absent, and the endpoint is clinic scoped. Incorrect API keys provided - both key headers were supplied, but the public key matches no integration, or the private key is not valid for that integration. Integration not enabled for the provided clinic - the key pair is valid, but the integration is not enabled and active for the clinic supplied in X-Clinic-Id. NEW: Each API call will count against your RPH and RPM limits. Once you exhaust those limits, requests will start returning HTTP status 429. The RPH is set to 12000 and RPM to 800 (subject to change). Where an endpoint supports searchQuery, a query longer than 500 characters may return HTTP status 400 with ERROR_MESSAGES.SEARCH_PHRASE.TOO_LONG, and a query with more than 10 words may return HTTP status 400 with ERROR_MESSAGES.SEARCH_PHRASE.TOO_MANY_PHRASES. NOTE: Since this API is WIP, we would be happy to hear any feedback and to implement additional filtering/sorting options etc. **Endpoints:
All endpoints are POST requests that accept JSON bodies. The common request properties for all endpoints are:**
rpp::int - The number of items to return per page. The max is 1000. Defaults to 10. page::int - The page number. Defaults to 1. sort::string - Which field to sort by. Needs to be in "field|order" format, where order is either "asc" or "desc". All top-level properties should be sortable, only some nested-fields work and you should probably not use them until this API reaches production and we settle on which nested-field sortings we will support. Default depends on endpoint, usually "id|asc". embed::string - Comma-separated values for nested-fields you want to fetch (eg. "clientPhones,clientPhones.phoneType" on Client endpoint). If a specific embed is not requested, the response will contain either null or an empty array for that value. No default. dateCreatedFrom::date
dateCreatedTo::date
dateUpdatedFrom::date
dateUpdatedTo::date
- Date range filters for either the creation date or last update date. - You can pass in either one end or both of them. *
* Only the date filters listed on an endpoint''s request model are supported; sending another one, or a ''From'' later than its ''To'', returns HTTP status 400. The request responses will come back as a JSON object. The common response properties for all endpoints are:
embed::string - Lists the embed used in the request. This may sometimes be different from what you sent in, if in the future we add that some embeds get set automatically on certain endpoints
links::object[] - Always empty, a leftover from the internal framework we use on our web API. Will be removed in the future if possible so do not rely on this
page::int - Which page was fetched.'
servers:
- url: https://open-api.shepherd.vet
tags:
- name: Refill
paths:
/pav2/open-api-refills:
post:
tags:
- Refill
summary: Retrieves {OpenApiRefillController.Refill} resources that match the specified…
description: 'Example Request
{
"rpp": 1,
"embed": "refillStatus"
}
Example Response
{
"embed": "refillStatus",
"item": [
{
"clinicId": "7f2b6d8e-90ab-4c3d-a6f1-1b2e3c4d5f6a",
"createdByPav2User": null,
"createdByUserId": "c1d2e3f4-a5b6-4789-b0c1-d2e3f4a5b6c7",
"dateFilled": "2025-08-06T05:38:33.622826Z",
"direction": "",
"editedByPav2User": null,
"editedByUserId": "c1d2e3f4-a5b6-4789-b0c1-d2e3f4a5b6c7",
"expirationDate": "2026-08-05T22:00:00Z",
"isEditLabel": false,
"isInitial": false,
"lastRefillDate": null,
"medicationVolume": null,
"medicationVolumeId": "b7a6f5e4-d3c2-1b0a-9f87-6543210fedcb",
"name": "Medixol - 500 mg",
"pav2User": null,
"prescribingDoctor": null,
"prescribingDoctorId": "a1b2c3d4-e5f6-47a8-b90c-d1e2f3a4b5c6",
"prescriptionId": "f4e3d2c1-b6a5-4897-8f0d-c3b2a1d0e9f8",
"refillCanceledNote": "",
"refillDate": null,
"refillDeniedNote": "",
"refillPrn": false,
"refillQuantity": 1,
"refillStatus": {
"abrv": "completed",
"description": null,
"name": "Completed",
"dateCreated": "2025-08-04T09:10:29.262822Z",
"dateUpdated": "2025-08-04T09:10:29.262822Z",
"id": "d6c5b4a3-2e1f-4d0c-9a8b-7c6d5e4f3a21"
},
"refillStatusId": "d6c5b4a3-2e1f-4d0c-9a8b-7c6d5e4f3a21",
"requestedBy": null,
"requestedById": "c1d2e3f4-a5b6-4789-b0c1-d2e3f4a5b6c7",
"requestedByPav2User": null,
"dateCreated": "2025-08-06T05:38:28.337233Z",
"dateUpdated": "2025-08-06T05:38:35.126498Z",
"id": "e7d8c9b0-1f2a-4b3c-8d7e-6f5a4b3c2d1e"
}
],
"links": [],
"page": 1,
"recordsPerPage": 1,
"searchQuery": null,
"sort": null,
"totalRecords": 3
}'
operationId: OpenApiRefillGet
parameters:
- name: x-integration-public-key
in: header
description: Your public API key
required: true
schema:
type: string
- name: x-integration-private-key
in: header
description: Your private API key
required: true
schema:
type: string
- name: x-clinic-id
in: header
description: The clinic uuid identifier
required: true
schema:
type: string
responses:
'200':
description: A paged collection of refills matching the supplied filter.
content:
application/json:
schema:
$ref: '#/components/schemas/RESTCollectionModelBase_OpenApiRefillController.Refill'
text/json:
schema:
$ref: '#/components/schemas/RESTCollectionModelBase_OpenApiRefillController.Refill'
application/hal+json:
schema:
$ref: '#/components/schemas/RESTCollectionModelBase_OpenApiRefillController.Refill'
'401':
description: 'Authorization failed. One of: Missing X-Integration-Public-Key header, Missing X-Integration-Private-Key header, Missing X-Clinic-Id header, Incorrect API keys provided, or Integration not enabled for the provided clinic.'
'429':
description: Request rate limit exceeded. Please wait before making further requests. Returned once the integration passes its configured hourly or per-minute request allowance.
'400':
description: "A date filter range is reversed. The response body is one of:\n \"DateCreated filter 'From' can't be later than 'To'.\" - dateCreatedFrom is after dateCreatedTo.\n \"DateUpdated filter 'From' can't be later than 'To'.\" - dateUpdatedFrom is after dateUpdatedTo."
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/OpenApiRefillController.RefillFilterModel'
text/json:
schema:
$ref: '#/components/schemas/OpenApiRefillController.RefillFilterModel'
application/hal+json:
schema:
$ref: '#/components/schemas/OpenApiRefillController.RefillFilterModel'
description: The model.
required: true
components:
schemas:
OpenApiRefillController.Pav2User:
description: Pav2User rest model.
type: object
properties:
licenseNumber:
description: User's license number.
type: string
prefix:
description: User's assigned prefix (e.g., "Dr.", "Mr.", "Mrs.").
type: string
suffix:
description: User's assigned suffix (e.g., "MD", "PhD", "Jr.").
type: string
userId:
description: Unique identifier representing this user.
type: string
dateCreated:
format: date-time
type: string
dateUpdated:
format: date-time
type: string
id:
type: string
OpenApiRefillController.RefillStatus:
description: RefillStatus REST model
type: object
properties:
abrv:
description: Short unique identifier for the lookup.
type: string
description:
description: The description of the lookup entry.
type: string
name:
description: The name of the lookup entry.
type: string
dateCreated:
format: date-time
type: string
dateUpdated:
format: date-time
type: string
id:
type: string
RESTCollectionModelBase_OpenApiRefillController.Refill:
type: object
properties:
embed:
type: string
item:
type: array
items:
$ref: '#/components/schemas/OpenApiRefillController.Refill'
page:
format: int32
type: integer
recordsPerPage:
format: int32
type: integer
searchQuery:
type: string
sort:
type: string
totalRecords:
format: int32
type: integer
OpenApiRefillController.MedicationVolume:
description: MedicationVolume REST model
type: object
properties:
abrv:
description: Short unique identifier for the lookup.
type: string
description:
description: The description of the lookup entry.
type: string
name:
description: The name of the lookup entry.
type: string
dateCreated:
format: date-time
type: string
dateUpdated:
format: date-time
type: string
id:
type: string
OpenApiRefillController.Refill:
description: Refill REST model.
type: object
properties:
clinicId:
description: Unique identifier representing the related Clinic entity.
type: string
createdByPav2User:
$ref: '#/components/schemas/OpenApiRefillController.Pav2User'
description: Object representing the related User who created this refill.
createdByUserId:
format: uuid
description: Unique identifier representing the related user who created this refill.
type: string
example: 00000000-0000-0000-0000-000000000000
dateFilled:
format: date-time
description: Date when prescription was filled based on this refill.
type: string
direction:
description: Direction, explaining how to use the product/medication.
type: string
editedByPav2User:
$ref: '#/components/schemas/OpenApiRefillController.Pav2User'
description: Object representing the related User who edited this refill.
editedByUserId:
format: uuid
description: Unique identifier representing the related user who edited this refill.
type: string
example: 00000000-0000-0000-0000-000000000000
expirationDate:
format: date-time
description: Expiration date of the refill.
type: string
isEditLabel:
description: Flag indicating whether the refill label was edited.
type: boolean
isInitial:
description: Flag indicating whether this is the initial refill.
type: boolean
lastRefillDate:
format: date-time
description: Date of the most recent refill.
type: string
medicationVolume:
$ref: '#/components/schemas/OpenApiRefillController.MedicationVolume'
description: Object representing the related Medication volume entity.
medicationVolumeId:
format: uuid
description: Unique identifier representing the related Medication volume entity.
type: string
example: 00000000-0000-0000-0000-000000000000
name:
description: The name of the refill.
type: string
pav2User:
$ref: '#/components/schemas/OpenApiRefillController.Pav2User'
description: Object representing the related User entity.
prescribingDoctor:
$ref: '#/components/schemas/OpenApiRefillController.UserInfo'
description: Object representing the additional user information of the Prescribing doctor.
prescribingDoctorId:
description: Unique identifier representing the related Prescribing doctor.
type: string
prescriptionId:
description: Prescription (Rx) identifier.
type: string
refillCanceledNote:
description: Note if the refill was canceled.
type: string
refillDate:
format: date-time
description: Date the refill was dispensed.
type: string
refillDeniedNote:
description: Note if the refill was denied.
type: string
refillPrn:
description: Flag indicating whether this prescription supports PRN refills.
type: boolean
refillQuantity:
format: double
description: Quantity dispensed in this refill.
type: number
refillStatus:
$ref: '#/components/schemas/OpenApiRefillController.RefillStatus'
description: Object representing the related Refill status entity.
refillStatusId:
description: Unique identifier representing the related Refill status entity.
type: string
requestedBy:
$ref: '#/components/schemas/OpenApiRefillController.UserInfo'
description: Object representing the additional information of user who requested this refill.
requestedById:
description: Unique identifier representing the user who requested this refill.
type: string
requestedByPav2User:
$ref: '#/components/schemas/OpenApiRefillController.Pav2User'
description: Object representing the User who requested this refill.
dateCreated:
format: date-time
type: string
dateUpdated:
format: date-time
type: string
id:
type: string
OpenApiRefillController.RefillFilterModel:
description: Refill Filter REST model
type: object
properties:
clientIds:
description: Comma-separated list of Client identifiers.
type: string
clinicIds:
description: Comma-separated list of Clinic identifiers. Defaults to null. The filter is applicable only if the group to which the clinic belongs shares clients and patients.
type: string
includePatientHomeClinic:
description: "Used to support multi-site practices that share patients and clients.\nDetermines whether to include Refills from a patient's home clinic\nwhen filtering by clinic.\n \nBehavior:\n- If true:\n - Includes Refills from the specified clinic (default)\n - Also includes Refills from other clinics where the patient's home clinic\n matches the specified clinic\n- If false (default):\n - Only includes Refills directly from the specified clinic\n \nNote: The patient's home clinic is only considered if ClinicIds are provided\nin the filter; otherwise, all data from the group is returned."
type: boolean
patientIds:
description: Comma-separated list of Patient identifiers.
type: string
prescriptionIds:
description: Comma-separated list of Prescription identifiers.
type: string
productIds:
description: Comma-separated list of Product identifiers.
type: string
refillStatusIds:
description: Comma-separated list of RefillStatus identifiers.
type: string
dateCreatedFrom:
format: date-time
description: 'Sets the start of the date range filter on the entity creation date. Must not be later than DateCreatedTo, or
the request returns 400. Defaults to null.'
type: string
dateCreatedTo:
format: date-time
description: The end of the date range filter on the entity creation date. Defaults to null.
type: string
dateUpdatedFrom:
format: date-time
description: 'The start of the date range filter on the entity last update date. Must not be later than DateUpdatedTo, or the
request returns 400. Defaults to null.'
type: string
dateUpdatedTo:
format: date-time
description: The end of the date range filter on the entity last update date. Defaults to null.
type: string
embed:
description: Comma-separated list of embedded properties to fetch. Nested fetches can be specified using dot notation (e.g., "client.clientPhones"). Defaults to null.
type: string
excludeIds:
description: Comma-separated list of IDs representing entities that you wish to exclude from your search. Defaults to null.
type: string
ids:
description: Comma-separated list of IDs representing entities that you wish to include in your search. Defaults to null.
type: string
page:
format: int32
description: The page number. Defaults to 1.
type: integer
rpp:
format: int32
description: The number of items to return per page. The max is 1000. Defaults to 10.
type: integer
sort:
description: Which field to sort by. Needs to be in "field|order" format, where order is either "asc" or "desc". The default sort field depends on the endpoint, typically "id|asc"
type: string
OpenApiRefillController.UserInfo:
description: CoreUser REST model.
type: object
properties:
firstName:
description: User's first name.
type: string
lastName:
description: User's last name.
type: string
dateCreated:
format: date-time
type: string
dateUpdated:
format: date-time
type: string
id:
type: string