Inventory Mutations

These mutations allow you to interact with inventory data.

addStockTransferItem

Arguments

ArgumentTypeDescription
productIdrequiredID!ID of the product
transferIdrequiredID!ID of the transfer
Example Query
mutation(
$productId: ID!,
$transferId: ID!
) {
addStockTransferItem(
productId: $productId,
transferId: $transferId
) {
id
# Add other fields you need
}
}
Variables
{
"productId": "1",
"transferId": "1"
}

createDiagnostic

Returns: Diagnostic!

Arguments

ArgumentTypeDescription
inputDiagnosticInputInput data for diagnostic operation
Example Query
mutation($input: DiagnosticInput) {
createDiagnostic(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createFulfillmentSource

Arguments

ArgumentTypeDescription
inputFulfillmentSourceInputInput data for fulfillment source operation
Example Query
mutation($input: FulfillmentSourceInput) {
createFulfillmentSource(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createInventoryAdjustment

Arguments

ArgumentTypeDescription
inputInventoryAdjustmentInputInput data for inventory adjustment operation
Example Query
mutation($input: InventoryAdjustmentInput) {
createInventoryAdjustment(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createProductCategory

Arguments

ArgumentTypeDescription
inputProductCategoryInputInput data for product category operation
Example Query
mutation($input: ProductCategoryInput) {
createProductCategory(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createProductType

Returns: ProductType!

Arguments

ArgumentTypeDescription
inputProductTypeInputInput data for product type operation
Example Query
mutation($input: ProductTypeInput) {
createProductType(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createStockLocation

Returns: StockLocation

Arguments

ArgumentTypeDescription
inputStockLocationInputInput data for stock location operation
Example Query
mutation($input: StockLocationInput) {
createStockLocation(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createStockTransfer

Returns: StockTransfer

Arguments

ArgumentTypeDescription
inputStockTransferInputInput data for stock transfer operation
Example Query
mutation($input: StockTransferInput) {
createStockTransfer(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

deleteDiagnostic

Returns: Diagnostic!

Arguments

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

deleteFulfillmentSource

Arguments

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

deleteProductCategory

Arguments

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

deleteProductType

Returns: ProductType!

Arguments

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

deleteStockTransfer

Returns: StockTransfer

Arguments

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

deleteStockTransferItem

Arguments

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

generateInventoryReport

Returns: String

Arguments

ArgumentTypeDescription
emailStringEmail address
locationIdIDID of the location
Example Query
mutation(
$email: String,
$locationId: ID
) {
generateInventoryReport(
email: $email,
locationId: $locationId
) {
id
# Add other fields you need
}
}
Variables
{
"email": "example",
"locationId": "1"
}

generateUsageSummaryReport

Returns: String

Arguments

ArgumentTypeDescription
emailStringEmail address
insertedAtEndNaiveDateTimeInserted at end
insertedAtStartNaiveDateTimeInserted at start
locationIdIDID of the location
Example Query
mutation(
$email: String,
$insertedAtEnd: NaiveDateTime,
$insertedAtStart: NaiveDateTime,
$locationId: ID
) {
generateUsageSummaryReport(
email: $email,
insertedAtEnd: $insertedAtEnd,
insertedAtStart: $insertedAtStart,
locationId: $locationId
) {
id
# Add other fields you need
}
}
Variables
{
"email": "example",
"insertedAtEnd": {},
"insertedAtStart": {},
"locationId": "1"
}

reassignProductType

Returns: ProductType

Arguments

ArgumentTypeDescription
newProductTypeIdIDID of the newproducttype
productTypeIdIDID of the producttype
Example Query
mutation(
$newProductTypeId: ID,
$productTypeId: ID
) {
reassignProductType(
newProductTypeId: $newProductTypeId,
productTypeId: $productTypeId
) {
id
# Add other fields you need
}
}
Variables
{
"newProductTypeId": "1",
"productTypeId": "1"
}

switchStockTransfer

Returns: StockTransfer

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
isReturnrequiredBoolean!Is return
Example Query
mutation(
$id: ID!,
$isReturn: Boolean!
) {
switchStockTransfer(
id: $id,
isReturn: $isReturn
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"isReturn": true
}

undoWastageAdjustment

Arguments

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

updateDiagnostic

Returns: Diagnostic

Arguments

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

updateFulfillmentSource

Arguments

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

updateProductCategory

Arguments

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

updateProductCubexEnabled

Returns: Product

Controls whether a product is synced to Cubex at the specified location. Requires the Cubex Sync feature to be enabled.

Arguments

ArgumentTypeDescription
enablerequiredBoolean!Enable or activate the feature
locationIdrequiredID!ID of the location
productIdrequiredID!ID of the product
Example Query
mutation(
$enable: Boolean!,
$locationId: ID!,
$productId: ID!
) {
updateProductCubexEnabled(
enable: $enable,
locationId: $locationId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"enable": true,
"locationId": "1",
"productId": "1"
}

updateProductEnabled

Returns: Product

Arguments

ArgumentTypeDescription
enablerequiredBoolean!Enable or activate the feature
locationIdrequiredID!ID of the location
productIdrequiredID!ID of the product
Example Query
mutation(
$enable: Boolean!,
$locationId: ID!,
$productId: ID!
) {
updateProductEnabled(
enable: $enable,
locationId: $locationId,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"enable": true,
"locationId": "1",
"productId": "1"
}

updateProductType

Returns: ProductType

Arguments

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

updateQuantityStockTransferItem

Arguments

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

updateStockLocation

Returns: StockLocation

Arguments

ArgumentTypeDescription
inputStockLocationUpdateInput
Example Query
mutation($input: StockLocationUpdate) {
updateStockLocation(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

updateStockTransfer

Returns: StockTransfer

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputStockTransferInputInput data for stock transfer operation
Example Query
mutation(
$id: ID!,
$input: StockTransferInput
) {
updateStockTransfer(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateStockTransferItem

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputStockTransferItemInputInput data for stock transfer item operation
Example Query
mutation(
$id: ID!,
$input: StockTransferItemInput
) {
updateStockTransferItem(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

uploadMassInventory

Arguments

ArgumentTypeDescription
filerequiredUpload!File
locationIdrequiredID!ID of the location
Example Query
mutation(
$file: Upload!,
$locationId: ID!
) {
uploadMassInventory(
file: $file,
locationId: $locationId
) {
id
# Add other fields you need
}
}
Variables
{
"file": {},
"locationId": "1"
}