Billing Mutations

These mutations allow you to interact with billing data.

addCreditMemo

Returns: CreditMemo

Arguments

ArgumentTypeDescription
clientIdrequiredID!ID of the client (pet owner)
inputrequiredCreditMemoInput!Input
Example Query
mutation(
$clientId: ID!,
$input: CreditMemoInput!
) {
addCreditMemo(
clientId: $clientId,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"input": {}
}

addLinkedProduct

Returns: Product

Arguments

ArgumentTypeDescription
linkedProductIdrequiredID!ID of the linkedproduct
productIdrequiredID!ID of the product
Example Query
mutation(
$linkedProductId: ID!,
$productId: ID!
) {
addLinkedProduct(
linkedProductId: $linkedProductId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"linkedProductId": "1",
"productId": "1"
}

addOrderItem

Returns: [OrderItem]

Arguments

ArgumentTypeDescription
departmentIdIDID of the department
encounterIdIDID of the clinical encounter
inputOrderItemInputInput data for order item operation
orderIdrequiredID!ID of the order
productIdIDID of the product
Example Query
mutation(
$departmentId: ID,
$encounterId: ID,
$input: OrderItemInput,
$orderId: ID!,
$productId: ID
) {
addOrderItem(
departmentId: $departmentId,
encounterId: $encounterId,
input: $input,
orderId: $orderId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"departmentId": "1",
"encounterId": "1",
"input": {},
"orderId": "1",
"productId": "1"
}

addOrderItemToEncounter

Returns: OrderItem

Arguments

ArgumentTypeDescription
encounterIdIDID of the clinical encounter
productIdIDID of the product
quantityDecimalQuantity
Example Query
mutation(
$encounterId: ID,
$productId: ID,
$quantity: Decimal
) {
addOrderItemToEncounter(
encounterId: $encounterId,
productId: $productId,
quantity: $quantity
) {
id
# Add other fields you need
}
}
Variables
{
"encounterId": "1",
"productId": "1",
"quantity": {}
}

addPackageToEncounter

Returns: Encounter

Arguments

ArgumentTypeDescription
encounterIdrequiredID!ID of the clinical encounter
packageIdrequiredID!ID of the package
selectedItemIds[ID]List of selecteditem IDs
Example Query
mutation(
$encounterId: ID!,
$packageId: ID!,
$selectedItemIds: [ID]
) {
addPackageToEncounter(
encounterId: $encounterId,
packageId: $packageId,
selectedItemIds: $selectedItemIds
) {
id
# Add other fields you need
}
}
Variables
{
"encounterId": "1",
"packageId": "1",
"selectedItemIds": "1"
}

addPackageToEstimate

Returns: Estimate

Arguments

ArgumentTypeDescription
estimateIdrequiredID!ID of the estimate
packageIdrequiredID!ID of the package
patientIdIDID of the patient
selectedItemIds[ID]List of selecteditem IDs
Example Query
mutation(
$estimateId: ID!,
$packageId: ID!,
$patientId: ID,
$selectedItemIds: [ID]
) {
addPackageToEstimate(
estimateId: $estimateId,
packageId: $packageId,
patientId: $patientId,
selectedItemIds: $selectedItemIds
) {
id
# Add other fields you need
}
}
Variables
{
"estimateId": "1",
"packageId": "1",
"patientId": "1",
"selectedItemIds": "1"
}

addPackageToOrder

Returns: Order

Arguments

ArgumentTypeDescription
orderIdrequiredID!ID of the order
packageIdrequiredID!ID of the package
patientIdIDID of the patient
selectedItemIds[ID]List of selecteditem IDs
Example Query
mutation(
$orderId: ID!,
$packageId: ID!,
$patientId: ID,
$selectedItemIds: [ID]
) {
addPackageToOrder(
orderId: $orderId,
packageId: $packageId,
patientId: $patientId,
selectedItemIds: $selectedItemIds
) {
id
# Add other fields you need
}
}
Variables
{
"orderId": "1",
"packageId": "1",
"patientId": "1",
"selectedItemIds": "1"
}

addPurchaseOrderItem

Arguments

ArgumentTypeDescription
orderIdrequiredID!ID of the order
productIdrequiredID!ID of the product
Example Query
mutation(
$orderId: ID!,
$productId: ID!
) {
addPurchaseOrderItem(
orderId: $orderId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"orderId": "1",
"productId": "1"
}

addToWishlist

Returns: WishlistItem

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
productIdrequiredID!ID of the product
Example Query
mutation(
$locationId: ID!,
$productId: ID!
) {
addToWishlist(
locationId: $locationId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"productId": "1"
}

applyAccountCredit

Returns: Order

Arguments

ArgumentTypeDescription
orderIdrequiredID!ID of the order
Example Query
mutation($orderId: ID!) {
applyAccountCredit(orderId: $orderId) {
id
# Add other fields you need
}
}
Variables
{
"orderId": "1"
}

billingHistory

Returns: String

Arguments

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

billingStatement

Returns: String

Arguments

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

convertEstimateToOrder

Returns: Estimate

Arguments

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

createDiscountReason

Arguments

ArgumentTypeDescription
inputrequiredDiscountReasonInput!Input
Example Query
mutation($input: DiscountReasonInput!) {
createDiscountReason(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createOrder

Returns: Order

Arguments

ArgumentTypeDescription
inputrequiredOrderInput!Input
Example Query
mutation($input: OrderInput!) {
createOrder(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createProduct

Returns: Product
Example Query
mutation {
createProduct {
id
# Add other fields you need
}
}

createProductManufacturer

Arguments

ArgumentTypeDescription
inputrequiredProductManufacturerInput!Input
Example Query
mutation($input: ProductManufacturerInput!) {
createProductManufacturer(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createPurchaseOrder

Returns: PurchaseOrder

Arguments

ArgumentTypeDescription
inputPurchaseOrderInputInput data for purchase order operation
Example Query
mutation($input: PurchaseOrderInput) {
createPurchaseOrder(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createStripePaymentIntent

Returns: String

Arguments

ArgumentTypeDescription
amountrequiredDecimal!Monetary amount
locationIdrequiredID!ID of the location
Example Query
mutation(
$amount: Decimal!,
$locationId: ID!
) {
createStripePaymentIntent(
amount: $amount,
locationId: $locationId
) {
id
# Add other fields you need
}
}
Variables
{
"amount": {},
"locationId": "1"
}

creditMemoPdf

Returns: String

Arguments

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

deleteLinkedProduct

Returns: Product

Arguments

ArgumentTypeDescription
linkedProductIdrequiredID!ID of the linkedproduct
productIdrequiredID!ID of the product
Example Query
mutation(
$linkedProductId: ID!,
$productId: ID!
) {
deleteLinkedProduct(
linkedProductId: $linkedProductId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"linkedProductId": "1",
"productId": "1"
}

deleteOrder

Returns: Order

Arguments

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

deleteProduct

Returns: Product

Arguments

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

deleteProductManufacturer

Arguments

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

deletePurchaseOrder

Returns: PurchaseOrder

Arguments

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

deletePurchaseOrderItem

Arguments

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

deleteWishlistItem

Returns: WishlistItem

Arguments

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

disableDiscountReason

Arguments

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

emailBillingStatements

Returns: Boolean

Either zips & emails all billing statements at the given location to the list of provided emails, or if no emails are provided, emails each client their billing statement if they have one.

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
emails[String]List of email addresses
endDateDateEnd of date range
locationIdrequiredID!ID of the location
startDateDateStart of date range
Example Query
mutation(
$clientId: ID,
$emails: [String],
$endDate: Date,
$locationId: ID!,
$startDate: Date
) {
emailBillingStatements(
clientId: $clientId,
emails: $emails,
endDate: $endDate,
locationId: $locationId,
startDate: $startDate
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"emails": "example",
"endDate": {},
"locationId": "1",
"startDate": {}
}

emailClientBillingStatement

Returns: String

Arguments

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

emailClientPaymentReceipt

Returns: String

Arguments

ArgumentTypeDescription
paymentIdrequiredID!ID of the payment
Example Query
mutation($paymentId: ID!) {
emailClientPaymentReceipt(paymentId: $paymentId) {
id
# Add other fields you need
}
}
Variables
{
"paymentId": "1"
}

emailCreditMemoToClient

Returns: [EmailStatus]

Arguments

ArgumentTypeDescription
creditMemoIdrequiredID!ID of the credit memo
Example Query
mutation($creditMemoId: ID!) {
emailCreditMemoToClient(creditMemoId: $creditMemoId) {
id
# Add other fields you need
}
}
Variables
{
"creditMemoId": "1"
}

emailEstimateToClient

Returns: [EmailStatus]

Arguments

ArgumentTypeDescription
estimateIdrequiredID!ID of the estimate
Example Query
mutation($estimateId: ID!) {
emailEstimateToClient(estimateId: $estimateId) {
id
# Add other fields you need
}
}
Variables
{
"estimateId": "1"
}

emailFilteredProducts

Returns: String

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
locationIdrequiredID!ID of the location
nameStringName of the resource
onlyBelowThresholdIDOnly below threshold
onlyEnabledAtIDOnly enabled at
onlyTrackInventoryBooleanOnly track inventory
partialProductIdStringID of the partialproduct
recipientsrequired[String]!Recipients
skuStringSku
sortBySortProductOptionsSort by
typeIds[ID]List of type IDs
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
mutation(
$categoryIds: [ID],
$code: String,
$diagnosticCode: String,
$diagnosticCodeOrgLabType: OrgLabType,
$excludeChildren: Boolean,
$hasDiagnosticCode: Boolean,
$ids: [ID],
$isControlledDrug: Boolean,
$isNonCompensated: Boolean,
$locationId: ID!,
$name: String,
$onlyBelowThreshold: ID,
$onlyEnabledAt: ID,
$onlyTrackInventory: Boolean,
$partialProductId: String,
$recipients: [String]!,
$sku: String,
$sortBy: SortProductOptions,
$typeIds: [ID],
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
emailFilteredProducts(
categoryIds: $categoryIds,
code: $code,
diagnosticCode: $diagnosticCode,
diagnosticCodeOrgLabType: $diagnosticCodeOrgLabType,
excludeChildren: $excludeChildren,
hasDiagnosticCode: $hasDiagnosticCode,
ids: $ids,
isControlledDrug: $isControlledDrug,
isNonCompensated: $isNonCompensated,
locationId: $locationId,
name: $name,
onlyBelowThreshold: $onlyBelowThreshold,
onlyEnabledAt: $onlyEnabledAt,
onlyTrackInventory: $onlyTrackInventory,
partialProductId: $partialProductId,
recipients: $recipients,
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,
"locationId": "1",
"name": "example",
"onlyBelowThreshold": "1",
"onlyEnabledAt": "1",
"onlyTrackInventory": true,
"partialProductId": "example",
"recipients": {},
"sku": "example",
"sortBy": {},
"typeIds": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

emailInventoryCsv

Returns: String

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
recipientsrequired[String]!Recipients
Example Query
mutation(
$locationId: ID!,
$recipients: [String]!
) {
emailInventoryCsv(
locationId: $locationId,
recipients: $recipients
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"recipients": {}
}

emailInvoiceToClient

Returns: [EmailStatus]

Arguments

ArgumentTypeDescription
coownerClientIdIDID of the co-owner client
invoiceIdrequiredID!ID of the invoice
Example Query
mutation(
$coownerClientId: ID,
$invoiceId: ID!
) {
emailInvoiceToClient(
coownerClientId: $coownerClientId,
invoiceId: $invoiceId
) {
id
# Add other fields you need
}
}
Variables
{
"coownerClientId": "1",
"invoiceId": "1"
}

emailProductsCsv

Returns: String

Arguments

ArgumentTypeDescription
locationIds[ID]List of location IDs
recipientsrequired[String]!Recipients
Example Query
mutation(
$locationIds: [ID],
$recipients: [String]!
) {
emailProductsCsv(
locationIds: $locationIds,
recipients: $recipients
) {
id
# Add other fields you need
}
}
Variables
{
"locationIds": "1",
"recipients": {}
}

endOfDayReport

Returns: String

Arguments

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

generateInvoice

Returns: Order

Arguments

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

groupOrderItemsByPatient

Returns: Order

Arguments

ArgumentTypeDescription
orderIdrequiredID!ID of the order
Example Query
mutation($orderId: ID!) {
groupOrderItemsByPatient(orderId: $orderId) {
id
# Add other fields you need
}
}
Variables
{
"orderId": "1"
}

invoiceBarcodesPdf

Returns: String

Arguments

ArgumentTypeDescription
orderIdrequiredID!ID of the order
Example Query
mutation($orderId: ID!) {
invoiceBarcodesPdf(orderId: $orderId) {
id
# Add other fields you need
}
}
Variables
{
"orderId": "1"
}

issueCreditDiscount

Returns: String

Arguments

ArgumentTypeDescription
discountAmountrequiredDecimal!Amount of discount to apply
discountTyperequiredDiscountType!Type of discount (percentage or fixed amount)
noteStringNote
orderIdrequiredID!ID of the order
Example Query
mutation(
$discountAmount: Decimal!,
$discountType: DiscountType!,
$note: String,
$orderId: ID!
) {
issueCreditDiscount(
discountAmount: $discountAmount,
discountType: $discountType,
note: $note,
orderId: $orderId
) {
id
# Add other fields you need
}
}
Variables
{
"discountAmount": {},
"discountType": {},
"note": "example",
"orderId": "1"
}

markOrderUncollectible

Returns: Order

Arguments

ArgumentTypeDescription
orderIdrequiredID!ID of the order
Example Query
mutation($orderId: ID!) {
markOrderUncollectible(orderId: $orderId) {
id
# Add other fields you need
}
}
Variables
{
"orderId": "1"
}

newVendor

Returns: Vendor

Arguments

ArgumentTypeDescription
inputrequiredVendorInput!Input
Example Query
mutation($input: VendorInput!) {
newVendor(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

orderWishlist

Returns: Location

Arguments

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

paymentReceiptPdf

Returns: String

Arguments

ArgumentTypeDescription
paymentIdrequiredID!ID of the payment
Example Query
mutation($paymentId: ID!) {
paymentReceiptPdf(paymentId: $paymentId) {
id
# Add other fields you need
}
}
Variables
{
"paymentId": "1"
}

refundOrderItem

Returns: OrderItem

Arguments

ArgumentTypeDescription
creditBooleanCredit
idrequiredID!Unique identifier
notRenderedBooleanNot rendered
returnedBooleanReturned
Example Query
mutation(
$credit: Boolean,
$id: ID!,
$notRendered: Boolean,
$returned: Boolean
) {
refundOrderItem(
credit: $credit,
id: $id,
notRendered: $notRendered,
returned: $returned
) {
id
# Add other fields you need
}
}
Variables
{
"credit": true,
"id": "1",
"notRendered": true,
"returned": true
}

reopenOrder

Returns: Order

Arguments

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

reorderEstimateItems

Returns: Estimate

Arguments

ArgumentTypeDescription
fromIdrequiredID!ID of the from
toIdrequiredID!ID of the to
Example Query
mutation(
$fromId: ID!,
$toId: ID!
) {
reorderEstimateItems(
fromId: $fromId,
toId: $toId
) {
id
# Add other fields you need
}
}
Variables
{
"fromId": "1",
"toId": "1"
}

reorderOrderItems

Returns: Order

Arguments

ArgumentTypeDescription
fromIdrequiredID!ID of the from
toIdrequiredID!ID of the to
Example Query
mutation(
$fromId: ID!,
$toId: ID!
) {
reorderOrderItems(
fromId: $fromId,
toId: $toId
) {
id
# Add other fields you need
}
}
Variables
{
"fromId": "1",
"toId": "1"
}

returnOrderItem

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
quantityDecimalQuantity
returnedToStockBooleanReturned to stock
Example Query
mutation(
$id: ID!,
$quantity: Decimal,
$returnedToStock: Boolean
) {
returnOrderItem(
id: $id,
quantity: $quantity,
returnedToStock: $returnedToStock
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"quantity": {},
"returnedToStock": true
}

saveEstimate

Returns: Estimate

Arguments

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

sendPaymentRequest

Returns: String

Arguments

ArgumentTypeDescription
amountDecimalMonetary amount
clientIdrequiredID!ID of the client (pet owner)
donationDecimalDonation amount or flag
locationIdIDID of the location
mediumConversationMediumMedium
methodPaymentMethodMethod
orderIdIDID of the order
orderTypeStringOrder type
tipDecimalTip
Example Query
mutation(
$amount: Decimal,
$clientId: ID!,
$donation: Decimal,
$locationId: ID,
$medium: ConversationMedium,
$method: PaymentMethod,
$orderId: ID,
$orderType: String,
$tip: Decimal
) {
sendPaymentRequest(
amount: $amount,
clientId: $clientId,
donation: $donation,
locationId: $locationId,
medium: $medium,
method: $method,
orderId: $orderId,
orderType: $orderType,
tip: $tip
) {
id
# Add other fields you need
}
}
Variables
{
"amount": {},
"clientId": "1",
"donation": {},
"locationId": "1",
"medium": {},
"method": {},
"orderId": "1",
"orderType": "example",
"tip": {}
}

updateDiscountReason

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredDiscountReasonInput!Input
Example Query
mutation(
$id: ID!,
$input: DiscountReasonInput!
) {
updateDiscountReason(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateOrder

Returns: Order

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredOrderInput!Input
Example Query
mutation(
$id: ID!,
$input: OrderInput!
) {
updateOrder(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateOrderItem

Returns: OrderItem

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredOrderItemInput!Input
Example Query
mutation(
$id: ID!,
$input: OrderItemInput!
) {
updateOrderItem(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateProductManufacturer

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredProductManufacturerInput!Input
Example Query
mutation(
$id: ID!,
$input: ProductManufacturerInput!
) {
updateProductManufacturer(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateProductProductCategory

Returns: Product

Arguments

ArgumentTypeDescription
productCategoryIdrequiredID!ID of the productcategory
productIdrequiredID!ID of the product
Example Query
mutation(
$productCategoryId: ID!,
$productId: ID!
) {
updateProductProductCategory(
productCategoryId: $productCategoryId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"productCategoryId": "1",
"productId": "1"
}

updatePurchaseOrder

Returns: PurchaseOrder

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredPurchaseOrderInput!Input
Example Query
mutation(
$id: ID!,
$input: PurchaseOrderInput!
) {
updatePurchaseOrder(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updatePurchaseOrderItem

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredPurchaseOrderItemInput!Input
Example Query
mutation(
$id: ID!,
$input: PurchaseOrderItemInput!
) {
updatePurchaseOrderItem(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateVendor

Returns: Vendor

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredVendorInput!Input
Example Query
mutation(
$id: ID!,
$input: VendorInput!
) {
updateVendor(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateWishlistItem

Returns: WishlistItem

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredWishlistItemInput!Input
Example Query
mutation(
$id: ID!,
$input: WishlistItemInput!
) {
updateWishlistItem(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

uploadMassProducts

Returns: String

Arguments

ArgumentTypeDescription
filerequiredUpload!File
Example Query
mutation($file: Upload!) {
uploadMassProducts(file: $file) {
id
# Add other fields you need
}
}
Variables
{
"file": {}
}

upsertLowStockThreshold

Arguments

ArgumentTypeDescription
inputrequiredLowStockThresholdInput!Input
Example Query
mutation($input: LowStockThresholdInput!) {
upsertLowStockThreshold(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

upsertPackageLocationMarkup

Arguments

ArgumentTypeDescription
locationIdIDID of the location
locationTagIdIDID of the locationtag
markupPercentDecimalMarkup percent
packageIdrequiredID!ID of the package
Example Query
mutation(
$locationId: ID,
$locationTagId: ID,
$markupPercent: Decimal,
$packageId: ID!
) {
upsertPackageLocationMarkup(
locationId: $locationId,
locationTagId: $locationTagId,
markupPercent: $markupPercent,
packageId: $packageId
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"locationTagId": "1",
"markupPercent": {},
"packageId": "1"
}

upsertProductLocationMarkup

Arguments

ArgumentTypeDescription
locationIdIDID of the location
locationTagIdIDID of the locationtag
markupPercentDecimalMarkup percent
productIdrequiredID!ID of the product
Example Query
mutation(
$locationId: ID,
$locationTagId: ID,
$markupPercent: Decimal,
$productId: ID!
) {
upsertProductLocationMarkup(
locationId: $locationId,
locationTagId: $locationTagId,
markupPercent: $markupPercent,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"locationTagId": "1",
"markupPercent": {},
"productId": "1"
}

upsertProductTypeLocationMarkup

Returns: Location

Arguments

ArgumentTypeDescription
locationIdIDID of the location
locationTagIdIDID of the locationtag
markupPercentDecimalMarkup percent
productTypeIdrequiredID!ID of the producttype
Example Query
mutation(
$locationId: ID,
$locationTagId: ID,
$markupPercent: Decimal,
$productTypeId: ID!
) {
upsertProductTypeLocationMarkup(
locationId: $locationId,
locationTagId: $locationTagId,
markupPercent: $markupPercent,
productTypeId: $productTypeId
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"locationTagId": "1",
"markupPercent": {},
"productTypeId": "1"
}