NewBilling Queries

These queries allow you to interact with newbilling data.

coupon

Returns: Coupon

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
coupon(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

coupons

Returns: [Coupon]

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
deletedBooleanInclude deleted records in results
locationIdIDID of the location
patientIdIDID of the patient
Example Query
query(
$clientId: ID,
$deleted: Boolean,
$locationId: ID,
$patientId: ID
) {
coupons(
clientId: $clientId,
deleted: $deleted,
locationId: $locationId,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"deleted": true,
"locationId": "1",
"patientId": "1"
}

detailedCreditsCount

Returns: Int

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientTagIds[ID]List of client tag IDs to filter by
endDateDateEnd of date range
locationIds[ID]List of location IDs
patientTagIds[ID]List of patienttag IDs
providerIds[ID]List of provider IDs
startDateDateStart of date range
Example Query
query(
$alertIds: [ID],
$clientTagIds: [ID],
$endDate: Date,
$locationIds: [ID],
$patientTagIds: [ID],
$providerIds: [ID],
$startDate: Date
) {
detailedCreditsCount(
alertIds: $alertIds,
clientTagIds: $clientTagIds,
endDate: $endDate,
locationIds: $locationIds,
patientTagIds: $patientTagIds,
providerIds: $providerIds,
startDate: $startDate
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientTagIds": "1",
"endDate": {},
"locationIds": "1",
"patientTagIds": "1",
"providerIds": "1",
"startDate": {}
}

detailedCreditsReport

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
alertIds[ID]List of alert IDs
beforeStringCursor for backward pagination
clientTagIds[ID]List of client tag IDs to filter by
endDateDateEnd of date range
firstIntFirst
lastIntLast
locationIds[ID]List of location IDs
patientTagIds[ID]List of patienttag IDs
providerIds[ID]List of provider IDs
startDateDateStart of date range
Example Query
query(
$alertIds: [ID],
$clientTagIds: [ID],
$endDate: Date,
$first: Int,
$locationIds: [ID],
$patientTagIds: [ID],
$providerIds: [ID],
$startDate: Date
) {
detailedCreditsReport(
alertIds: $alertIds,
clientTagIds: $clientTagIds,
endDate: $endDate,
first: $first,
locationIds: $locationIds,
patientTagIds: $patientTagIds,
providerIds: $providerIds,
startDate: $startDate
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"alertIds": "1",
"clientTagIds": "1",
"endDate": {},
"first": 1,
"locationIds": "1",
"patientTagIds": "1",
"providerIds": "1",
"startDate": {}
}

detailedSalesRevenueCount

Returns: Int

Arguments

ArgumentTypeDescription
alertIds[ID]List of alert IDs
clientTagIds[ID]List of client tag IDs to filter by
endDaterequiredDate!End of date range
locationIds[ID]List of location IDs
patientTagIds[ID]List of patienttag IDs
providerIds[ID]List of provider IDs
startDaterequiredDate!Start of date range
Example Query
query(
$alertIds: [ID],
$clientTagIds: [ID],
$endDate: Date!,
$locationIds: [ID],
$patientTagIds: [ID],
$providerIds: [ID],
$startDate: Date!
) {
detailedSalesRevenueCount(
alertIds: $alertIds,
clientTagIds: $clientTagIds,
endDate: $endDate,
locationIds: $locationIds,
patientTagIds: $patientTagIds,
providerIds: $providerIds,
startDate: $startDate
) {
id
# Add other fields you need
}
}
Variables
{
"alertIds": "1",
"clientTagIds": "1",
"endDate": {},
"locationIds": "1",
"patientTagIds": "1",
"providerIds": "1",
"startDate": {}
}

detailedSalesRevenueReport

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
alertIds[ID]List of alert IDs
beforeStringCursor for backward pagination
clientTagIds[ID]List of client tag IDs to filter by
endDaterequiredDate!End of date range
firstIntFirst
lastIntLast
locationIds[ID]List of location IDs
patientTagIds[ID]List of patienttag IDs
providerIds[ID]List of provider IDs
startDaterequiredDate!Start of date range
Example Query
query(
$alertIds: [ID],
$clientTagIds: [ID],
$endDate: Date!,
$first: Int,
$locationIds: [ID],
$patientTagIds: [ID],
$providerIds: [ID],
$startDate: Date!
) {
detailedSalesRevenueReport(
alertIds: $alertIds,
clientTagIds: $clientTagIds,
endDate: $endDate,
first: $first,
locationIds: $locationIds,
patientTagIds: $patientTagIds,
providerIds: $providerIds,
startDate: $startDate
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"alertIds": "1",
"clientTagIds": "1",
"endDate": {},
"first": 1,
"locationIds": "1",
"patientTagIds": "1",
"providerIds": "1",
"startDate": {}
}

estimate

Returns: Estimate

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
estimate(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

estimateItems

Returns: [EstimateItem]

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
offsetIntNumber of results to skip for pagination
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$limit: Int,
$offset: Int,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
estimateItems(
limit: $limit,
offset: $offset,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"offset": 1,
"updatedAtEnd": {},
"updatedAtStart": {}
}

orderFlag

Returns: OrderFlag

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
orderFlag(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

orderFlags

Returns: [OrderFlag!]!

Arguments

ArgumentTypeDescription
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
orderFlags(
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"updatedAtEnd": {},
"updatedAtStart": {}
}

payment

Returns: Payment

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
payment(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

productPackage

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
productPackage(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

productPackages

Returns: [ProductPackage]

Arguments

ArgumentTypeDescription
locationIdIDID of the location
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$locationId: ID,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
productPackages(
locationId: $locationId,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

reconciliationNotes

Arguments

ArgumentTypeDescription
endDaterequiredDate!End of date range
locationIdIDID of the location
startDaterequiredDate!Start of date range
Example Query
query(
$endDate: Date!,
$locationId: ID,
$startDate: Date!
) {
reconciliationNotes(
endDate: $endDate,
locationId: $locationId,
startDate: $startDate
) {
id
# Add other fields you need
}
}
Variables
{
"endDate": {},
"locationId": "1",
"startDate": {}
}

revenueCenter

Returns: RevenueCenter

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
revenueCenter(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

revenueCenterBudgets

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
revenueCenterIdrequiredID!ID of the revenuecenter
yearrequiredInt!Year
Example Query
query(
$locationId: ID!,
$revenueCenterId: ID!,
$year: Int!
) {
revenueCenterBudgets(
locationId: $locationId,
revenueCenterId: $revenueCenterId,
year: $year
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"revenueCenterId": "1",
"year": 1
}

revenueCenters

Returns: [RevenueCenter!]!

Arguments

ArgumentTypeDescription
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
revenueCenters(
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"updatedAtEnd": {},
"updatedAtStart": {}
}

voidablePaymentMethods

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