githubEdit

squareInventoryItem

Inventory Item Type

Represents an inventory item in the system.

Fields

Field
Type
Description

id

ID!

Unique identifier of the inventory item

tenantID

UUID!

Tenant identifier

createdAt

Time!

Creation timestamp

createdBy

UUID!

User identifier who created the item

updatedAt

Time

Last update timestamp

updatedBy

UUID!

User identifier who last updated the item

deletedAt

Time

Deletion timestamp

deletedBy

UUID!

User identifier who deleted the item

dataTypeID

UUID

Data type identifier

dataTypeSlug

String

Data type slug

data

Map

Custom data associated with the item (replaces deprecated inventoryJSONData)

sku

String!

Stock keeping unit - unique identifier for the item

itemmovementitems

[ItemMovementItem!]

Movement items associated with this item

itemtransactions

[Transaction!]

Transactions associated with this item

itemstocks

[Stock!]

Stock records associated with this item

itemset

[InventoryItemSet!]

Item sets this item belongs to

Interfaces

  • Node

  • WithCustomData - Provides the data field for storing custom JSON attributes

Migration Note

BREAKING CHANGE: The inventoryJSONData field has been removed. Use the data field instead.

If you were previously using inventoryJSONData, update your queries and mutations to use data. All data previously stored in inventoryJSONData has been automatically migrated to the data field.

See the InventoryItem Data Field Migration Guide for detailed migration instructions.

Usage Example

Last updated

Was this helpful?