Inventory Queries

These queries allow you to interact with inventory data.

clientConsent

Returns: ClientConsent

Arguments

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

diagnostic

Returns: Diagnostic

Arguments

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

fulfillmentSource

Arguments

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

fulfillmentSources

Returns: [FulfillmentSource!]!

Arguments

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

inventoryAdjustment

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
lotNumberrequiredString!Lot number
productIdIDID of the product
Example Query
query(
$locationId: ID!,
$lotNumber: String!,
$productId: ID
) {
inventoryAdjustment(
locationId: $locationId,
lotNumber: $lotNumber,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"lotNumber": "example",
"productId": "1"
}

inventoryAdjustments

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
locationIdrequiredID!ID of the location
offsetIntNumber of results to skip for pagination
productIdIDID of the product
Example Query
query(
$limit: Int,
$locationId: ID!,
$offset: Int,
$productId: ID
) {
inventoryAdjustments(
limit: $limit,
locationId: $locationId,
offset: $offset,
productId: $productId
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"locationId": "1",
"offset": 1,
"productId": "1"
}

productCategories

Returns: [ProductCategory!]!

Arguments

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

productCategory

Arguments

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

productHistory

Returns: [InventoryLog]

Arguments

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

productType

Returns: ProductType

Arguments

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

productTypes

Returns: [ProductType!]!

Arguments

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

stockLocation

Returns: StockLocation

Arguments

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

stockLocations

Returns: [StockLocation]

Arguments

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

stockTransfer

Returns: StockTransfer

Arguments

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

stockTransfers

Returns: [StockTransfer]

Arguments

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