Billing Queries

These queries allow you to interact with billing data.

accountCreditHistory

Arguments

ArgumentTypeDescription
clientIdrequiredID!ID of the client (pet owner)
limitIntMaximum number of results to return
offsetIntNumber of results to skip for pagination
orderBy[AccountCreditHistoryOrderBy]Order by
Example Query
query(
$clientId: ID!,
$limit: Int,
$offset: Int,
$orderBy: [AccountCreditHistoryOrderBy]
) {
accountCreditHistory(
clientId: $clientId,
limit: $limit,
offset: $offset,
orderBy: $orderBy
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"limit": 1,
"offset": 1,
"orderBy": {}
}

accountsReceivableBalance

Returns a client's accounts receivable balance.

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
Example Query
query($clientId: ID) {
accountsReceivableBalance(clientId: $clientId) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1"
}

bills

Returns: [Bill]

Arguments

ArgumentTypeDescription
clientIdrequiredID!ID of the client (pet owner)
Example Query
query($clientId: ID!) {
bills(clientId: $clientId) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1"
}

ccTerminals

Returns: [String]

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
Example Query
query($locationId: ID!) {
ccTerminals(locationId: $locationId) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1"
}

creditMemos

Returns: [CreditMemo]

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientTagIds[ID]List of client tag IDs to filter by
endrequiredDateTime!Ending point for the range
limitIntMaximum number of results to return
locationIds[ID]List of location IDs
offsetIntNumber of results to skip for pagination
patientTagIds[ID]List of patienttag IDs
startrequiredDateTime!Starting point for the range
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$alertIds: [ID],
$clientTagIds: [ID],
$end: DateTime!,
$limit: Int,
$locationIds: [ID],
$offset: Int,
$patientTagIds: [ID],
$start: DateTime!,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
creditMemos(
alertIds: $alertIds,
clientTagIds: $clientTagIds,
end: $end,
limit: $limit,
locationIds: $locationIds,
offset: $offset,
patientTagIds: $patientTagIds,
start: $start,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientTagIds": "1",
"end": {},
"limit": 1,
"locationIds": "1",
"offset": 1,
"patientTagIds": "1",
"start": {},
"updatedAtEnd": {},
"updatedAtStart": {}
}

creditMemosTotals

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientTagIds[ID]List of client tag IDs to filter by
endDateTimeEnding point for the range
locationIds[ID]List of location IDs
patientTagIds[ID]List of patienttag IDs
startDateTimeStarting point for the range
Example Query
query(
$alertIds: [ID],
$clientTagIds: [ID],
$end: DateTime,
$locationIds: [ID],
$patientTagIds: [ID],
$start: DateTime
) {
creditMemosTotals(
alertIds: $alertIds,
clientTagIds: $clientTagIds,
end: $end,
locationIds: $locationIds,
patientTagIds: $patientTagIds,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientTagIds": "1",
"end": {},
"locationIds": "1",
"patientTagIds": "1",
"start": {}
}

discountReasons

Returns: [DiscountReason]
Example Query
query {
discountReasons {
id
# Add other fields you need
}
}

estimatePdf

Returns: String

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
estimatePdf(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

estimates

Returns: [Estimate]

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientIdIDID of the client (pet owner)
clientTagIds[ID]List of client tag IDs to filter by
closedBooleanFilter by closed status
endDateTimeEnding point for the range
invoicedBooleanInvoiced
limitIntMaximum number of results to return
locationIdIDID of the location
locationIds[ID]List of location IDs
offsetIntNumber of results to skip for pagination
patientTagIds[ID]List of patienttag IDs
providerIdIDID of the provider
startDateTimeStarting point for the range
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$alertIds: [ID],
$clientId: ID,
$clientTagIds: [ID],
$closed: Boolean,
$end: DateTime,
$invoiced: Boolean,
$limit: Int,
$locationId: ID,
$locationIds: [ID],
$offset: Int,
$patientTagIds: [ID],
$providerId: ID,
$start: DateTime,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
estimates(
alertIds: $alertIds,
clientId: $clientId,
clientTagIds: $clientTagIds,
closed: $closed,
end: $end,
invoiced: $invoiced,
limit: $limit,
locationId: $locationId,
locationIds: $locationIds,
offset: $offset,
patientTagIds: $patientTagIds,
providerId: $providerId,
start: $start,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientId": "1",
"clientTagIds": "1",
"closed": true,
"end": {},
"invoiced": true,
"limit": 1,
"locationId": "1",
"locationIds": "1",
"offset": 1,
"patientTagIds": "1",
"providerId": "1",
"start": {},
"updatedAtEnd": {},
"updatedAtStart": {}
}

estimatesTotals

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientIdIDID of the client (pet owner)
clientTagIds[ID]List of client tag IDs to filter by
closedBooleanFilter by closed status
endDateTimeEnding point for the range
invoicedBooleanInvoiced
limitIntMaximum number of results to return
locationIds[ID]List of location IDs
offsetIntNumber of results to skip for pagination
patientTagIds[ID]List of patienttag IDs
providerIdIDID of the provider
startDateTimeStarting point for the range
Example Query
query(
$alertIds: [ID],
$clientId: ID,
$clientTagIds: [ID],
$closed: Boolean,
$end: DateTime,
$invoiced: Boolean,
$limit: Int,
$locationIds: [ID],
$offset: Int,
$patientTagIds: [ID],
$providerId: ID,
$start: DateTime
) {
estimatesTotals(
alertIds: $alertIds,
clientId: $clientId,
clientTagIds: $clientTagIds,
closed: $closed,
end: $end,
invoiced: $invoiced,
limit: $limit,
locationIds: $locationIds,
offset: $offset,
patientTagIds: $patientTagIds,
providerId: $providerId,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientId": "1",
"clientTagIds": "1",
"closed": true,
"end": {},
"invoiced": true,
"limit": 1,
"locationIds": "1",
"offset": 1,
"patientTagIds": "1",
"providerId": "1",
"start": {}
}

getCardconnectBaseUrlBySlug

Returns: String!

Arguments

ArgumentTypeDescription
slugrequiredString!Slug
Example Query
query($slug: String!) {
getCardconnectBaseUrlBySlug(slug: $slug) {
id
# Add other fields you need
}
}
Variables
{
"slug": "example"
}

getCardconnectCardInfo

Arguments

ArgumentTypeDescription
clientIdrequiredID!ID of the client (pet owner)
locationIdrequiredID!ID of the location
Example Query
query(
$clientId: ID!,
$locationId: ID!
) {
getCardconnectCardInfo(
clientId: $clientId,
locationId: $locationId
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"locationId": "1"
}

hasBalanceDue

Returns: Boolean

if the client has an open, due balance

Arguments

ArgumentTypeDescription
clientIdrequiredID!ID of the client (pet owner)
Example Query
query($clientId: ID!) {
hasBalanceDue(clientId: $clientId) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1"
}

inCollections

Returns: Boolean

Arguments

ArgumentTypeDescription
clientIdrequiredID!ID of the client (pet owner)
Example Query
query($clientId: ID!) {
inCollections(clientId: $clientId) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1"
}

invoicePdf

Returns: String

Arguments

ArgumentTypeDescription
coownerClientIdIDID of the co-owner client
idrequiredID!Unique identifier
Example Query
query(
$coownerClientId: ID,
$id: ID!
) {
invoicePdf(
coownerClientId: $coownerClientId,
id: $id
) {
id
# Add other fields you need
}
}
Variables
{
"coownerClientId": "1",
"id": "1"
}

masterProducts

Returns: [MasterProduct]
Example Query
query {
masterProducts {
id
# Add other fields you need
}
}

order

Returns: Order

Gets an order by id

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
order(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

orderItems

Returns: [OrderItem]

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
byInvoiceDateBooleanGroup or filter by invoice date
categoryIds[ID]List of category IDs to filter by
clientTagIds[ID]List of client tag IDs to filter by
endDateDateEnd of date range
excludeHistoricalBooleanExclude historical
ids[ID]List of IDs
includeDeclinedBooleanInclude declined
isReturnedBooleanIs returned
limitIntMaximum number of results to return
locationIds[ID]List of location IDs
names[String]Names
notRenderedBooleanNot rendered
offsetIntNumber of results to skip for pagination
onlyControlledDrugsBooleanOnly controlled drugs
onlyInventoryBooleanOnly inventory
onlyInvoicedBooleanOnly invoiced
onlyPostedBooleanOnly posted
orderFlagIds[ID]List of orderflag IDs
packageIds[ID]List of package IDs
patientIds[ID]List of patient IDs
patientTagIds[ID]List of patienttag IDs
productIds[ID]List of product IDs
providerIdIDID of the provider
providerIds[ID]List of provider IDs
scheduledDrugTypes[ScheduledDrugType]Scheduled drug types
startDateDateStart of date range
typeIds[ID]List of type IDs
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$alertIds: [ID],
$byInvoiceDate: Boolean,
$categoryIds: [ID],
$clientTagIds: [ID],
$endDate: Date,
$excludeHistorical: Boolean,
$ids: [ID],
$includeDeclined: Boolean,
$isReturned: Boolean,
$limit: Int,
$locationIds: [ID],
$names: [String],
$notRendered: Boolean,
$offset: Int,
$onlyControlledDrugs: Boolean,
$onlyInventory: Boolean,
$onlyInvoiced: Boolean,
$onlyPosted: Boolean,
$orderFlagIds: [ID],
$packageIds: [ID],
$patientIds: [ID],
$patientTagIds: [ID],
$productIds: [ID],
$providerId: ID,
$providerIds: [ID],
$scheduledDrugTypes: [ScheduledDrugType],
$startDate: Date,
$typeIds: [ID],
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
orderItems(
alertIds: $alertIds,
byInvoiceDate: $byInvoiceDate,
categoryIds: $categoryIds,
clientTagIds: $clientTagIds,
endDate: $endDate,
excludeHistorical: $excludeHistorical,
ids: $ids,
includeDeclined: $includeDeclined,
isReturned: $isReturned,
limit: $limit,
locationIds: $locationIds,
names: $names,
notRendered: $notRendered,
offset: $offset,
onlyControlledDrugs: $onlyControlledDrugs,
onlyInventory: $onlyInventory,
onlyInvoiced: $onlyInvoiced,
onlyPosted: $onlyPosted,
orderFlagIds: $orderFlagIds,
packageIds: $packageIds,
patientIds: $patientIds,
patientTagIds: $patientTagIds,
productIds: $productIds,
providerId: $providerId,
providerIds: $providerIds,
scheduledDrugTypes: $scheduledDrugTypes,
startDate: $startDate,
typeIds: $typeIds,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"byInvoiceDate": true,
"categoryIds": "1",
"clientTagIds": "1",
"endDate": {},
"excludeHistorical": true,
"ids": "1",
"includeDeclined": true,
"isReturned": true,
"limit": 1,
"locationIds": "1",
"names": "example",
"notRendered": true,
"offset": 1,
"onlyControlledDrugs": true,
"onlyInventory": true,
"onlyInvoiced": true,
"onlyPosted": true,
"orderFlagIds": "1",
"packageIds": "1",
"patientIds": "1",
"patientTagIds": "1",
"productIds": "1",
"providerId": "1",
"providerIds": "1",
"scheduledDrugTypes": {},
"startDate": {},
"typeIds": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

orderItemsTotals

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
byInvoiceDateBooleanGroup or filter by invoice date
clientTagIds[ID]List of client tag IDs to filter by
endDateEnding point for the range
isReturnedBooleanIs returned
locationIds[ID]List of location IDs
onlyControlledDrugsBooleanOnly controlled drugs
onlyInvoicedBooleanOnly invoiced
patientTagIds[ID]List of patienttag IDs
providerIdIDID of the provider
providerIds[ID]List of provider IDs
scheduledDrugTypes[ScheduledDrugType]Scheduled drug types
startDateStarting point for the range
Example Query
query(
$alertIds: [ID],
$byInvoiceDate: Boolean,
$clientTagIds: [ID],
$end: Date,
$isReturned: Boolean,
$locationIds: [ID],
$onlyControlledDrugs: Boolean,
$onlyInvoiced: Boolean,
$patientTagIds: [ID],
$providerId: ID,
$providerIds: [ID],
$scheduledDrugTypes: [ScheduledDrugType],
$start: Date
) {
orderItemsTotals(
alertIds: $alertIds,
byInvoiceDate: $byInvoiceDate,
clientTagIds: $clientTagIds,
end: $end,
isReturned: $isReturned,
locationIds: $locationIds,
onlyControlledDrugs: $onlyControlledDrugs,
onlyInvoiced: $onlyInvoiced,
patientTagIds: $patientTagIds,
providerId: $providerId,
providerIds: $providerIds,
scheduledDrugTypes: $scheduledDrugTypes,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"byInvoiceDate": true,
"clientTagIds": "1",
"end": {},
"isReturned": true,
"locationIds": "1",
"onlyControlledDrugs": true,
"onlyInvoiced": true,
"patientTagIds": "1",
"providerId": "1",
"providerIds": "1",
"scheduledDrugTypes": {},
"start": {}
}

orderLineItems

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
beforeStringCursor for backward pagination
filtersOrderLineItemsFiltersFilters
firstIntFirst
lastIntLast
orderBy[OrderLineItemsOrderBy]Order by
Example Query
query(
$filters: OrderLineItemsFilters,
$first: Int,
$orderBy: [OrderLineItemsOrderBy]
) {
orderLineItems(
filters: $filters,
first: $first,
orderBy: $orderBy
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"filters": {},
"first": 1,
"orderBy": {}
}

orders

Returns: [Order]

Lists all orders based on the query

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientIdIDID of the client (pet owner)
clientTagIds[ID]List of client tag IDs to filter by
endDateTimeEnding point for the range
excludeHistoricalBooleanExclude historical
hideSubscriptionsBooleanHide subscriptions
ids[ID]List of IDs
includeAccountCreditsBooleanInclude Account Credits on File as of this Instance
includeNegativesBooleanInclude credit memos and not rendered line items as separate virtual negative invoices (typically, you do not ever want to set this to true)
invoicedBooleanInvoiced
invoicedByDateTimeInvoiced by
limitIntMaximum number of results to return
localTimezoneStringLocal timezone
locationIdIDID of the location
locationIds[ID]List of location IDs
mismatchedBooleanMismatched
notUncollectibleBooleanNot uncollectible
offsetIntNumber of results to skip for pagination
onlyDiscountedBooleanOnly discounted
onlySubscriptionsBooleanOnly subscriptions
orderByInvoiceSortFieldEnumOrder by
orderFlagIds[ID]List of orderflag IDs
patientTagIds[ID]List of patienttag IDs
postedBooleanPosted
providerIdIDID of the provider
startDateTimeStarting point for the range
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$alertIds: [ID],
$clientId: ID,
$clientTagIds: [ID],
$end: DateTime,
$excludeHistorical: Boolean,
$hideSubscriptions: Boolean,
$ids: [ID],
$includeAccountCredits: Boolean,
$includeNegatives: Boolean,
$invoiced: Boolean,
$invoicedBy: DateTime,
$limit: Int,
$localTimezone: String,
$locationId: ID,
$locationIds: [ID],
$mismatched: Boolean,
$notUncollectible: Boolean,
$offset: Int,
$onlyDiscounted: Boolean,
$onlySubscriptions: Boolean,
$orderBy: InvoiceSortFieldEnum,
$orderFlagIds: [ID],
$patientTagIds: [ID],
$posted: Boolean,
$providerId: ID,
$start: DateTime,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
orders(
alertIds: $alertIds,
clientId: $clientId,
clientTagIds: $clientTagIds,
end: $end,
excludeHistorical: $excludeHistorical,
hideSubscriptions: $hideSubscriptions,
ids: $ids,
includeAccountCredits: $includeAccountCredits,
includeNegatives: $includeNegatives,
invoiced: $invoiced,
invoicedBy: $invoicedBy,
limit: $limit,
localTimezone: $localTimezone,
locationId: $locationId,
locationIds: $locationIds,
mismatched: $mismatched,
notUncollectible: $notUncollectible,
offset: $offset,
onlyDiscounted: $onlyDiscounted,
onlySubscriptions: $onlySubscriptions,
orderBy: $orderBy,
orderFlagIds: $orderFlagIds,
patientTagIds: $patientTagIds,
posted: $posted,
providerId: $providerId,
start: $start,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientId": "1",
"clientTagIds": "1",
"end": {},
"excludeHistorical": true,
"hideSubscriptions": true,
"ids": "1",
"includeAccountCredits": true,
"includeNegatives": true,
"invoiced": true,
"invoicedBy": {},
"limit": 1,
"localTimezone": "example",
"locationId": "1",
"locationIds": "1",
"mismatched": true,
"notUncollectible": true,
"offset": 1,
"onlyDiscounted": true,
"onlySubscriptions": true,
"orderBy": {},
"orderFlagIds": "1",
"patientTagIds": "1",
"posted": true,
"providerId": "1",
"start": {},
"updatedAtEnd": {},
"updatedAtStart": {}
}

ordersTotals

Returns: OrdersTotals

Returns a count of all orders based on a query, excludes datasync imported orders.

Arguments

ArgumentTypeDescription
agingBucketsBooleanTime periods for aging analysis
alertIds[ID]List of alert IDs
clientIdIDID of the client (pet owner)
clientTagIds[ID]List of client tag IDs to filter by
endDateTimeEnding point for the range
excludeHistoricalBooleanExclude historical
excludeHistoricalTotalsBooleanExclude historical totals
hideSubscriptionsBooleanHide subscriptions
includeAccountCreditsBooleanInclude account credits
includeNegativesBooleanInclude negatives
invoicedBooleanInvoiced
localTimezoneStringLocal timezone
locationIds[ID]List of location IDs
mismatchedBooleanMismatched
notUncollectibleBooleanNot uncollectible
onlySubscriptionsBooleanOnly subscriptions
orderFlagIds[ID]List of orderflag IDs
patientTagIds[ID]List of patienttag IDs
postedBooleanPosted
providerIdIDID of the provider
startDateTimeStarting point for the range
Example Query
query(
$agingBuckets: Boolean,
$alertIds: [ID],
$clientId: ID,
$clientTagIds: [ID],
$end: DateTime,
$excludeHistorical: Boolean,
$excludeHistoricalTotals: Boolean,
$hideSubscriptions: Boolean,
$includeAccountCredits: Boolean,
$includeNegatives: Boolean,
$invoiced: Boolean,
$localTimezone: String,
$locationIds: [ID],
$mismatched: Boolean,
$notUncollectible: Boolean,
$onlySubscriptions: Boolean,
$orderFlagIds: [ID],
$patientTagIds: [ID],
$posted: Boolean,
$providerId: ID,
$start: DateTime
) {
ordersTotals(
agingBuckets: $agingBuckets,
alertIds: $alertIds,
clientId: $clientId,
clientTagIds: $clientTagIds,
end: $end,
excludeHistorical: $excludeHistorical,
excludeHistoricalTotals: $excludeHistoricalTotals,
hideSubscriptions: $hideSubscriptions,
includeAccountCredits: $includeAccountCredits,
includeNegatives: $includeNegatives,
invoiced: $invoiced,
localTimezone: $localTimezone,
locationIds: $locationIds,
mismatched: $mismatched,
notUncollectible: $notUncollectible,
onlySubscriptions: $onlySubscriptions,
orderFlagIds: $orderFlagIds,
patientTagIds: $patientTagIds,
posted: $posted,
providerId: $providerId,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"agingBuckets": true,
"alertIds": "1",
"clientId": "1",
"clientTagIds": "1",
"end": {},
"excludeHistorical": true,
"excludeHistoricalTotals": true,
"hideSubscriptions": true,
"includeAccountCredits": true,
"includeNegatives": true,
"invoiced": true,
"localTimezone": "example",
"locationIds": "1",
"mismatched": true,
"notUncollectible": true,
"onlySubscriptions": true,
"orderFlagIds": "1",
"patientTagIds": "1",
"posted": true,
"providerId": "1",
"start": {}
}

packs

Returns: [Pack]

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientIdIDID of the client (pet owner)
clientTagIds[ID]List of client tag IDs to filter by
locationIds[ID]List of location IDs
Example Query
query(
$alertIds: [ID],
$clientId: ID,
$clientTagIds: [ID],
$locationIds: [ID]
) {
packs(
alertIds: $alertIds,
clientId: $clientId,
clientTagIds: $clientTagIds,
locationIds: $locationIds
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientId": "1",
"clientTagIds": "1",
"locationIds": "1"
}

paymentProviders

Returns: [Provider]

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
endDateTimeEnding point for the range
excludeHistoricalBooleanExclude historical
hideAccountCreditBooleanHide account credit
locationIds[ID]List of location IDs
methods[PaymentMethod]Methods
startDateTimeStarting point for the range
Example Query
query(
$alertIds: [ID],
$end: DateTime,
$excludeHistorical: Boolean,
$hideAccountCredit: Boolean,
$locationIds: [ID],
$methods: [PaymentMethod],
$start: DateTime
) {
paymentProviders(
alertIds: $alertIds,
end: $end,
excludeHistorical: $excludeHistorical,
hideAccountCredit: $hideAccountCredit,
locationIds: $locationIds,
methods: $methods,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"end": {},
"excludeHistorical": true,
"hideAccountCredit": true,
"locationIds": "1",
"methods": {},
"start": {}
}

payments

Returns: [Payment]

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientIdIDID of the client (pet owner)
clientTagIds[ID]List of client tag IDs to filter by
endDateTimeEnding point for the range
excludeHistoricalBooleanExclude historical
hideAccountCreditBooleanHide account credit
hideNegativeAccountCreditsBooleanHide negative account credits
hideVoidedBooleanHide voided
ids[ID]List of IDs
limitIntMaximum number of results to return
locationIdIDID of the location
locationIds[ID]List of location IDs
methodPaymentMethodMethod
methods[PaymentMethod]Methods
methodsToExclude[PaymentMethod]Methods to exclude
offsetIntNumber of results to skip for pagination
onlyPositiveBooleanOnly positive
patientTagIds[ID]List of patienttag IDs
providerIds[ID]List of provider IDs
sortPaymentSortSort
startDateTimeStarting point for the range
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$alertIds: [ID],
$clientId: ID,
$clientTagIds: [ID],
$end: DateTime,
$excludeHistorical: Boolean,
$hideAccountCredit: Boolean,
$hideNegativeAccountCredits: Boolean,
$hideVoided: Boolean,
$ids: [ID],
$limit: Int,
$locationId: ID,
$locationIds: [ID],
$method: PaymentMethod,
$methods: [PaymentMethod],
$methodsToExclude: [PaymentMethod],
$offset: Int,
$onlyPositive: Boolean,
$patientTagIds: [ID],
$providerIds: [ID],
$sort: PaymentSort,
$start: DateTime,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
payments(
alertIds: $alertIds,
clientId: $clientId,
clientTagIds: $clientTagIds,
end: $end,
excludeHistorical: $excludeHistorical,
hideAccountCredit: $hideAccountCredit,
hideNegativeAccountCredits: $hideNegativeAccountCredits,
hideVoided: $hideVoided,
ids: $ids,
limit: $limit,
locationId: $locationId,
locationIds: $locationIds,
method: $method,
methods: $methods,
methodsToExclude: $methodsToExclude,
offset: $offset,
onlyPositive: $onlyPositive,
patientTagIds: $patientTagIds,
providerIds: $providerIds,
sort: $sort,
start: $start,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientId": "1",
"clientTagIds": "1",
"end": {},
"excludeHistorical": true,
"hideAccountCredit": true,
"hideNegativeAccountCredits": true,
"hideVoided": true,
"ids": "1",
"limit": 1,
"locationId": "1",
"locationIds": "1",
"method": {},
"methods": {},
"methodsToExclude": {},
"offset": 1,
"onlyPositive": true,
"patientTagIds": "1",
"providerIds": "1",
"sort": {},
"start": {},
"updatedAtEnd": {},
"updatedAtStart": {}
}

paymentsTotals

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientTagIds[ID]List of client tag IDs to filter by
endDateTimeEnding point for the range
excludeHistoricalBooleanExclude historical
hideAccountCreditBooleanHide account credit
locationIds[ID]List of location IDs
methodPaymentMethodMethod
patientTagIds[ID]List of patienttag IDs
startDateTimeStarting point for the range
Example Query
query(
$alertIds: [ID],
$clientTagIds: [ID],
$end: DateTime,
$excludeHistorical: Boolean,
$hideAccountCredit: Boolean,
$locationIds: [ID],
$method: PaymentMethod,
$patientTagIds: [ID],
$start: DateTime
) {
paymentsTotals(
alertIds: $alertIds,
clientTagIds: $clientTagIds,
end: $end,
excludeHistorical: $excludeHistorical,
hideAccountCredit: $hideAccountCredit,
locationIds: $locationIds,
method: $method,
patientTagIds: $patientTagIds,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientTagIds": "1",
"end": {},
"excludeHistorical": true,
"hideAccountCredit": true,
"locationIds": "1",
"method": {},
"patientTagIds": "1",
"start": {}
}

processorPayments

Returns: [ProcessorPayment]

Arguments

ArgumentTypeDescription
endrequiredDateTime!Ending point for the range
locationIdrequiredID!ID of the location
startrequiredDateTime!Starting point for the range
Example Query
query(
$end: DateTime!,
$locationId: ID!,
$start: DateTime!
) {
processorPayments(
end: $end,
locationId: $locationId,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"end": {},
"locationId": "1",
"start": {}
}

product

Returns: Product

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
product(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

productManufacturer

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
productManufacturer(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

productManufacturers

Arguments

ArgumentTypeDescription
nameStringName of the resource
Example Query
query($name: String) {
productManufacturers(name: $name) {
id
# Add other fields you need
}
}
Variables
{
"name": "example"
}

productManufacturersPaginated

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
beforeStringCursor for backward pagination
nameStringName of the resource
Example Query
query($name: String) {
productManufacturersPaginated(name: $name) {
id
# Add other fields you need
}
}
Variables
{
"name": "example"
}

products

Returns: [Product]

Arguments

ArgumentTypeDescription
categoryIds[ID]List of category IDs to filter by
codeStringUnique code identifier
diagnosticCodeStringDiagnostic or ICD code
diagnosticCodeOrgLabTypeOrgLabTypeOrganization lab type for diagnostic code
excludeChildrenBooleanExclude child records from results
hasDiagnosticCodeBooleanHas diagnostic code
ids[ID]List of IDs
isControlledDrugBooleanIs controlled drug
isNonCompensatedBooleanIs non compensated
limitIntMaximum number of results to return
nameStringName of the resource
offsetIntNumber of results to skip for pagination
onlyBelowThresholdIDOnly below threshold
onlyEnabledAtIDOnly enabled at
onlyTrackInventoryBooleanOnly track inventory
partialProductIdStringID of the partialproduct
skuStringSku
sortBySortProductOptionsSort by
typeIds[ID]List of type IDs
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$categoryIds: [ID],
$code: String,
$diagnosticCode: String,
$diagnosticCodeOrgLabType: OrgLabType,
$excludeChildren: Boolean,
$hasDiagnosticCode: Boolean,
$ids: [ID],
$isControlledDrug: Boolean,
$isNonCompensated: Boolean,
$limit: Int,
$name: String,
$offset: Int,
$onlyBelowThreshold: ID,
$onlyEnabledAt: ID,
$onlyTrackInventory: Boolean,
$partialProductId: String,
$sku: String,
$sortBy: SortProductOptions,
$typeIds: [ID],
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
products(
categoryIds: $categoryIds,
code: $code,
diagnosticCode: $diagnosticCode,
diagnosticCodeOrgLabType: $diagnosticCodeOrgLabType,
excludeChildren: $excludeChildren,
hasDiagnosticCode: $hasDiagnosticCode,
ids: $ids,
isControlledDrug: $isControlledDrug,
isNonCompensated: $isNonCompensated,
limit: $limit,
name: $name,
offset: $offset,
onlyBelowThreshold: $onlyBelowThreshold,
onlyEnabledAt: $onlyEnabledAt,
onlyTrackInventory: $onlyTrackInventory,
partialProductId: $partialProductId,
sku: $sku,
sortBy: $sortBy,
typeIds: $typeIds,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"categoryIds": "1",
"code": "example",
"diagnosticCode": "example",
"diagnosticCodeOrgLabType": {},
"excludeChildren": true,
"hasDiagnosticCode": true,
"ids": "1",
"isControlledDrug": true,
"isNonCompensated": true,
"limit": 1,
"name": "example",
"offset": 1,
"onlyBelowThreshold": "1",
"onlyEnabledAt": "1",
"onlyTrackInventory": true,
"partialProductId": "example",
"sku": "example",
"sortBy": {},
"typeIds": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

productsCount

Returns: Int

Arguments

ArgumentTypeDescription
categoryIds[ID]List of category IDs to filter by
codeStringUnique code identifier
diagnosticCodeStringDiagnostic or ICD code
excludeChildrenBooleanExclude child records from results
nameStringName of the resource
onlyBelowThresholdIDOnly below threshold
onlyEnabledAtIDOnly enabled at
onlyTrackInventoryBooleanOnly track inventory
partialProductIdStringID of the partialproduct
skuStringSku
typeIds[ID]List of type IDs
Example Query
query(
$categoryIds: [ID],
$code: String,
$diagnosticCode: String,
$excludeChildren: Boolean,
$name: String,
$onlyBelowThreshold: ID,
$onlyEnabledAt: ID,
$onlyTrackInventory: Boolean,
$partialProductId: String,
$sku: String,
$typeIds: [ID]
) {
productsCount(
categoryIds: $categoryIds,
code: $code,
diagnosticCode: $diagnosticCode,
excludeChildren: $excludeChildren,
name: $name,
onlyBelowThreshold: $onlyBelowThreshold,
onlyEnabledAt: $onlyEnabledAt,
onlyTrackInventory: $onlyTrackInventory,
partialProductId: $partialProductId,
sku: $sku,
typeIds: $typeIds
) {
id
# Add other fields you need
}
}
Variables
{
"categoryIds": "1",
"code": "example",
"diagnosticCode": "example",
"excludeChildren": true,
"name": "example",
"onlyBelowThreshold": "1",
"onlyEnabledAt": "1",
"onlyTrackInventory": true,
"partialProductId": "example",
"sku": "example",
"typeIds": "1"
}

productsInStockCount

Returns: Decimal

Arguments

ArgumentTypeDescription
insertedAtNaiveDateTimeInserted at
locationIdrequiredID!ID of the location
Example Query
query(
$insertedAt: NaiveDateTime,
$locationId: ID!
) {
productsInStockCount(
insertedAt: $insertedAt,
locationId: $locationId
) {
id
# Add other fields you need
}
}
Variables
{
"insertedAt": {},
"locationId": "1"
}

purchaseOrder

Returns: PurchaseOrder

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
purchaseOrder(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

purchaseOrders

Returns: [PurchaseOrder]

Arguments

ArgumentTypeDescription
locationIds[ID]List of location IDs
orderedSinceDateOrdered since
Example Query
query(
$locationIds: [ID],
$orderedSince: Date
) {
purchaseOrders(
locationIds: $locationIds,
orderedSince: $orderedSince
) {
id
# Add other fields you need
}
}
Variables
{
"locationIds": "1",
"orderedSince": {}
}

refundedOrderItems

Returns: [OrderItem]

Arguments

ArgumentTypeDescription
endDateTimeEnding point for the range
locationIds[ID]List of location IDs
providerIdIDID of the provider
providerIds[ID]List of provider IDs
startDateTimeStarting point for the range
Example Query
query(
$end: DateTime,
$locationIds: [ID],
$providerId: ID,
$providerIds: [ID],
$start: DateTime
) {
refundedOrderItems(
end: $end,
locationIds: $locationIds,
providerId: $providerId,
providerIds: $providerIds,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"end": {},
"locationIds": "1",
"providerId": "1",
"providerIds": "1",
"start": {}
}

returnedOrderItems

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
endDateTimeEnding point for the range
locationIds[ID]List of location IDs
orderFlagIds[ID]List of orderflag IDs
providerIdIDID of the provider
providerIds[ID]List of provider IDs
startDateTimeStarting point for the range
Example Query
query(
$alertIds: [ID],
$end: DateTime,
$locationIds: [ID],
$orderFlagIds: [ID],
$providerId: ID,
$providerIds: [ID],
$start: DateTime
) {
returnedOrderItems(
alertIds: $alertIds,
end: $end,
locationIds: $locationIds,
orderFlagIds: $orderFlagIds,
providerId: $providerId,
providerIds: $providerIds,
start: $start
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"end": {},
"locationIds": "1",
"orderFlagIds": "1",
"providerId": "1",
"providerIds": "1",
"start": {}
}

searchCoupons

Returns: [Coupon]

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
termStringTerm
Example Query
query(
$limit: Int,
$term: String
) {
searchCoupons(
limit: $limit,
term: $term
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"term": "example"
}

searchInventoryBuckets

Returns: [InventoryBucket]

Arguments

ArgumentTypeDescription
namerequiredString!Name of the resource
Example Query
query($name: String!) {
searchInventoryBuckets(name: $name) {
id
# Add other fields you need
}
}
Variables
{
"name": "example"
}

searchPackages

Returns: [ProductPackage]

Arguments

ArgumentTypeDescription
queryrequiredString!Search query text
Example Query
query($query: String!) {
searchPackages(query: $query) {
id
# Add other fields you need
}
}
Variables
{
"query": "example"
}

searchProductCategories

Returns: [ProductCategory]

Arguments

ArgumentTypeDescription
namerequiredString!Name of the resource
Example Query
query($name: String!) {
searchProductCategories(name: $name) {
id
# Add other fields you need
}
}
Variables
{
"name": "example"
}

searchProductTypes

Returns: [ProductType]

Arguments

ArgumentTypeDescription
namerequiredString!Name of the resource
Example Query
query($name: String!) {
searchProductTypes(name: $name) {
id
# Add other fields you need
}
}
Variables
{
"name": "example"
}

searchProductables

Returns: [Orderable]

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
locationIdIDID of the location
patientIdIDID of the patient
searchPackagesBooleanSearch packages
termrequiredString!Search products by name using this search term
typeFlagsProductTypeFlagsType flags
Example Query
query(
$limit: Int,
$locationId: ID,
$patientId: ID,
$searchPackages: Boolean,
$term: String!,
$typeFlags: ProductTypeFlags
) {
searchProductables(
limit: $limit,
locationId: $locationId,
patientId: $patientId,
searchPackages: $searchPackages,
term: $term,
typeFlags: $typeFlags
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"locationId": "1",
"patientId": "1",
"searchPackages": true,
"term": "example",
"typeFlags": {}
}

searchProducts

Returns: [Product]

Arguments

ArgumentTypeDescription
limitIntLimit the number of results returned to the top LIMIT matches (defaults to 10)
locationIdIDID of the location
termrequiredString!Search for products by name by specifying the search term
typeFlagsProductTypeFlagsType flags
Example Query
query(
$limit: Int,
$locationId: ID,
$term: String!,
$typeFlags: ProductTypeFlags
) {
searchProducts(
limit: $limit,
locationId: $locationId,
term: $term,
typeFlags: $typeFlags
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"locationId": "1",
"term": "example",
"typeFlags": {}
}

searchVendors

Returns: [Vendor]

Arguments

ArgumentTypeDescription
termrequiredString!Term
Example Query
query($term: String!) {
searchVendors(term: $term) {
id
# Add other fields you need
}
}
Variables
{
"term": "example"
}

stripeConnectionToken

Returns: String

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
Example Query
query($locationId: ID!) {
stripeConnectionToken(locationId: $locationId) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1"
}

stripePublishableKey

Returns: String

Arguments

ArgumentTypeDescription
locationIdIDID of the location
Example Query
query($locationId: ID) {
stripePublishableKey(locationId: $locationId) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1"
}

vendor

Returns: Vendor

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
vendor(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

vendors

Returns: [Vendor]
Example Query
query {
vendors {
id
# Add other fields you need
}
}