Skip to content

Square: Inventory schemas

44 Square schemas with complete fields and constraints.

← Inventory operations · All schemas

Batch Change Inventory — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
changesJSONOptional
changes (anyOf 1)arrayAlternativeThe set of physical counts and inventory adjustments to be made.
Changes are applied based on the client-supplied timestamp and may be sent
out of order.
changes (anyOf 1)[]ModelEach itemExpand Batch Change Inventory — request body — body changes array item
changes (anyOf 2)nullAlternative
idempotency_keystringRequired within parentA client-supplied, universally unique identifier (UUID) for the
request.

See [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) in the
[API Development 101](https://developer.squareup.com/docs/buildbasics) section for more
information.
Maximum length: 128
Minimum length: 1
ignore_unchanged_countsJSONOptional
ignore_unchanged_counts (anyOf 1)booleanAlternativeIndicates whether the current physical count should be ignored if
the quantity is unchanged since the last physical count. Default: `true`.
ignore_unchanged_counts (anyOf 2)nullAlternative

Referenced models: Batch Change Inventory — request body — body changes array item

Batch Change Inventory — request body — body changes array item

FieldTypePresenceDescription and constraints
$objectRootRepresents a single physical count, inventory, adjustment, or transfer
that is part of the history of inventory changes for a particular
[CatalogObject](entity:CatalogObject) instance.
adjustmentJSONOptional
adjustment (anyOf 1)ModelAlternativeExpand Update Inventory Adjustment — request body — body adjustment
Contains details about the inventory adjustment when `type` is
`ADJUSTMENT`, and is unset for all other change types.
adjustment (anyOf 2)nullAlternative
measurement_unitModelOptionalExpand Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision
The [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change.
Read only: true
measurement_unit_idstringOptionalThe ID of the [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change.
Read only: true
physical_countJSONOptional
physical_count (anyOf 1)ModelAlternativeExpand Batch Change Inventory — request body — body changes array item physical count adjustment id, catalog object id, catalog object type, created at, employee id, id, location id, occurred at, quantity, reference id, source, state, team member id
Contains details about the physical count when `type` is
`PHYSICAL_COUNT`, and is unset for all other change types.
physical_count (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeIndicates how the inventory change was applied to a tracked product quantity.
Indicates how the inventory change is applied. See
[InventoryChangeType](entity:InventoryChangeType) for all possible values.
See [InventoryChangeType](#type-inventorychangetype) for possible values
One of: PHYSICAL_COUNT, ADJUSTMENT
type (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision, Update Inventory Adjustment — request body — body adjustment, Batch Change Inventory — request body — body changes array item physical count adjustment id, catalog object id, catalog object type, created at, employee id, id, location id, occurred at, quantity, reference id, source, state, team member id

Batch Change Inventory — request body — body changes array item physical count adjustment id, catalog object id, catalog object type, created at, employee id, id, location id, occurred at, quantity, reference id, source, state, team member id

FieldTypePresenceDescription and constraints
$objectRootRepresents the quantity of an item variation that is physically present
at a specific location, verified by a seller or a seller's employee. For example,
a physical count might come from an employee counting the item variations on
hand or from syncing with an external system.
adjustment_idstringOptionalThe Square-generated ID of the InventoryAdjustment that was generated by this physical count in order to
adjust the current stock count to reflect the re-counted quantity.
This field may be empty if the merchant does not have an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.
Read only: true
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe Square-generated ID of the
[CatalogObject](entity:CatalogObject) being tracked.
Maximum length: 100
catalog_object_id (anyOf 2)nullAlternative
catalog_object_typeJSONOptional
catalog_object_type (anyOf 1)stringAlternativeThe [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked.

The Inventory API supports setting and reading the `"catalog_object_type": "ITEM_VARIATION"` field value.
In addition, it can also read the `"catalog_object_type": "ITEM"` field value that is set by the Square Restaurants app.
Maximum length: 14
catalog_object_type (anyOf 2)nullAlternative
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the physical count is received.
Maximum length: 34
Read only: true
employee_idJSONOptional
employee_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Employee](entity:Employee) responsible for the
physical count.
Maximum length: 100
employee_id (anyOf 2)nullAlternative
idstringOptionalA unique Square-generated ID for the
[InventoryPhysicalCount](entity:InventoryPhysicalCount).
Maximum length: 100
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Location](entity:Location) where the related
quantity of items is being tracked.
Maximum length: 100
location_id (anyOf 2)nullAlternative
occurred_atJSONOptional
occurred_at (anyOf 1)stringAlternativeA client-generated RFC 3339-formatted timestamp that indicates when
the physical count was examined. For physical count updates, the `occurred_at`
timestamp cannot be older than 24 hours or in the future relative to the
time of the request.
Maximum length: 34
occurred_at (anyOf 2)nullAlternative
quantityJSONOptional
quantity (anyOf 1)stringAlternativeThe number of items affected by the physical count as a decimal string.
The number can support up to 5 digits after the decimal point.
Maximum length: 26
quantity (anyOf 2)nullAlternative
reference_idJSONOptional
reference_id (anyOf 1)stringAlternativeAn optional ID provided by the application to tie the
[InventoryPhysicalCount](entity:InventoryPhysicalCount) to an external
system.
Maximum length: 255
reference_id (anyOf 2)nullAlternative
sourceModelOptionalExpand Update Inventory Adjustment — request body — body adjustment source
Information about the application with which the
physical count is submitted.
Read only: true
stateJSONOptional
state (anyOf 1)stringAlternativeIndicates the state of a tracked item quantity in the lifecycle of goods.
The current [inventory state](entity:InventoryState) for the related
quantity of items.
See [InventoryState](#type-inventorystate) for possible values
One of: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
state (anyOf 2)nullAlternative
team_member_idJSONOptional
team_member_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Team Member](entity:TeamMember) responsible for the
physical count.
Maximum length: 100
team_member_id (anyOf 2)nullAlternative

Referenced models: Update Inventory Adjustment — request body — body adjustment source

Batch Change Inventory — response body

FieldTypePresenceDescription and constraints
$objectRoot
changesarrayOptionalChanges created for the request.
changes[]ModelEach itemExpand Batch Change Inventory — response body — changes item
countsarrayOptionalThe current counts for all objects referenced in the request.
counts[]ModelEach itemExpand Batch Change Inventory — response body — counts item
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Batch Change Inventory — response body — changes item, Batch Change Inventory — response body — counts item

Batch Change Inventory — response body — changes item

FieldTypePresenceDescription and constraints
$objectRootRepresents a single physical count, inventory, adjustment, or transfer
that is part of the history of inventory changes for a particular
[CatalogObject](entity:CatalogObject) instance.
adjustmentJSONOptional
adjustment (anyOf 1)ModelAlternativeExpand Update Inventory Adjustment — response body — adjustment
Contains details about the inventory adjustment when `type` is
`ADJUSTMENT`, and is unset for all other change types.
adjustment (anyOf 2)nullAlternative
measurement_unitModelOptionalExpand Batch Change Inventory — response body — changes item measurement unit
The [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change.
Read only: true
measurement_unit_idstringOptionalThe ID of the [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change.
Read only: true
physical_countJSONOptional
physical_count (anyOf 1)ModelAlternativeExpand Retrieve Inventory Physical Count — response body — count
Contains details about the physical count when `type` is
`PHYSICAL_COUNT`, and is unset for all other change types.
physical_count (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeIndicates how the inventory change was applied to a tracked product quantity.
Indicates how the inventory change is applied. See
[InventoryChangeType](entity:InventoryChangeType) for all possible values.
See [InventoryChangeType](#type-inventorychangetype) for possible values
Known values: PHYSICAL_COUNT, ADJUSTMENT
type (anyOf 2)nullAlternative

Referenced models: Batch Change Inventory — response body — changes item measurement unit, Update Inventory Adjustment — response body — adjustment, Retrieve Inventory Physical Count — response body — count

Batch Change Inventory — response body — changes item measurement unit

FieldTypePresenceDescription and constraints
$objectRootRepresents the unit used to measure a `CatalogItemVariation` and
specifies the precision for decimal quantities.
measurement_unitJSONOptional
measurement_unit (anyOf 1)ModelAlternativeExpand Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit
Indicates the unit used to measure the quantity of a catalog item variation.
measurement_unit (anyOf 2)nullAlternative
precisionJSONOptional
precision (anyOf 1)JSONAlternative
precision (anyOf 1) (anyOf 1)integerAlternativeAn integer between 0 and 5 that represents the maximum number of
positions allowed after the decimal in quantities measured with this unit.
For example:

- if the precision is 0, the quantity can be 1, 2, 3, etc.
- if the precision is 1, the quantity can be 0.1, 0.2, etc.
- if the precision is 2, the quantity can be 0.01, 0.12, etc.

Default: 3
precision (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
precision (anyOf 2)nullAlternative

Referenced models: Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit

Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit

FieldTypePresenceDescription and constraints
$objectRootRepresents a unit of measurement to use with a quantity, such as ounces
or inches. Exactly one of the following fields are required: `custom_unit`,
`area_unit`, `length_unit`, `volume_unit`, and `weight_unit`.
area_unitJSONOptional
area_unit (anyOf 1)stringAlternativeUnit of area used to measure a quantity.
Represents a standard area unit.
See [MeasurementUnitArea](#type-measurementunitarea) for possible values
Known values: IMPERIAL_ACRE, IMPERIAL_SQUARE_INCH, IMPERIAL_SQUARE_FOOT, IMPERIAL_SQUARE_YARD, IMPERIAL_SQUARE_MILE, METRIC_SQUARE_CENTIMETER, METRIC_SQUARE_METER, METRIC_SQUARE_KILOMETER
area_unit (anyOf 2)nullAlternative
custom_unitJSONOptional
custom_unit (anyOf 1)ModelAlternativeExpand Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit custom unit abbreviation, name
A custom unit of measurement defined by the seller using the Point of Sale
app or ad-hoc as an order line item.
custom_unit (anyOf 2)nullAlternative
generic_unitJSONOptional
generic_unit (anyOf 1)stringAlternativeReserved for API integrations that lack the ability to specify a real measurement unit
See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values
Known values: UNIT
generic_unit (anyOf 2)nullAlternative
length_unitJSONOptional
length_unit (anyOf 1)stringAlternativeThe unit of length used to measure a quantity.
Represents a standard length unit.
See [MeasurementUnitLength](#type-measurementunitlength) for possible values
Known values: IMPERIAL_INCH, IMPERIAL_FOOT, IMPERIAL_YARD, IMPERIAL_MILE, METRIC_MILLIMETER, METRIC_CENTIMETER, METRIC_METER, METRIC_KILOMETER
length_unit (anyOf 2)nullAlternative
time_unitJSONOptional
time_unit (anyOf 1)stringAlternativeUnit of time used to measure a quantity (a duration).
Represents a standard unit of time.
See [MeasurementUnitTime](#type-measurementunittime) for possible values
Known values: GENERIC_MILLISECOND, GENERIC_SECOND, GENERIC_MINUTE, GENERIC_HOUR, GENERIC_DAY
time_unit (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeDescribes the type of this unit and indicates which field contains the unit information. This is an ‘open’ enum.
Represents the type of the measurement unit.
See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values
Known values: TYPE_CUSTOM, TYPE_AREA, TYPE_LENGTH, TYPE_VOLUME, TYPE_WEIGHT, TYPE_GENERIC
type (anyOf 2)nullAlternative
volume_unitJSONOptional
volume_unit (anyOf 1)stringAlternativeThe unit of volume used to measure a quantity.
Represents a standard volume unit.
See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values
Known values: GENERIC_FLUID_OUNCE, GENERIC_SHOT, GENERIC_CUP, GENERIC_PINT, GENERIC_QUART, GENERIC_GALLON, IMPERIAL_CUBIC_INCH, IMPERIAL_CUBIC_FOOT, IMPERIAL_CUBIC_YARD, METRIC_MILLILITER, METRIC_LITER
volume_unit (anyOf 2)nullAlternative
weight_unitJSONOptional
weight_unit (anyOf 1)stringAlternativeUnit of weight used to measure a quantity.
Represents a standard unit of weight or mass.
See [MeasurementUnitWeight](#type-measurementunitweight) for possible values
Known values: IMPERIAL_WEIGHT_OUNCE, IMPERIAL_POUND, IMPERIAL_STONE, METRIC_MILLIGRAM, METRIC_GRAM, METRIC_KILOGRAM
weight_unit (anyOf 2)nullAlternative

Referenced models: Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit custom unit abbreviation, name

Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit custom unit abbreviation, name

FieldTypePresenceDescription and constraints
$objectRootThe information needed to define a custom unit, provided by the seller.
abbreviationstringRequired within parentThe abbreviation of the custom unit, such as "bsh" (bushel). This appears
in the cart for the Point of Sale app, and in reports.
namestringRequired within parentThe name of the custom unit, for example "bushel".

Batch Change Inventory — response body — counts item

FieldTypePresenceDescription and constraints
$objectRootRepresents Square-estimated quantity of items in a particular state at a
particular seller location based on the known history of physical counts and
inventory adjustments. The absence of an inventory count indicates that the
catalog object hasn't interacted with the given inventory state at the given location.
calculated_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the most recent physical count or adjustment affecting
the estimated count is received.
Maximum length: 34
Read only: true
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe Square-generated ID of the
[CatalogObject](entity:CatalogObject) being tracked.
Maximum length: 100
catalog_object_id (anyOf 2)nullAlternative
catalog_object_typeJSONOptional
catalog_object_type (anyOf 1)stringAlternativeThe [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked.

The Inventory API supports setting and reading the `"catalog_object_type": "ITEM_VARIATION"` field value.
In addition, it can also read the `"catalog_object_type": "ITEM"` field value that is set by the Square Restaurants app.
Maximum length: 14
catalog_object_type (anyOf 2)nullAlternative
is_estimatedbooleanOptionalWhether the inventory count is for composed variation (TRUE) or not (FALSE). If true, the inventory count will not be present in the response of
any of these endpoints: [BatchChangeInventory](api-endpoint:Inventory-BatchChangeInventory),
[BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges),
[BatchRetrieveInventoryCounts](api-endpoint:Inventory-BatchRetrieveInventoryCounts), and
[RetrieveInventoryChanges](api-endpoint:Inventory-RetrieveInventoryChanges).
Read only: true
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Location](entity:Location) where the related
quantity of items is being tracked.
Maximum length: 100
location_id (anyOf 2)nullAlternative
quantityJSONOptional
quantity (anyOf 1)stringAlternativeThe number of items affected by the estimated count as a decimal string.
Can support up to 5 digits after the decimal point.
Maximum length: 26
quantity (anyOf 2)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativeIndicates the state of a tracked item quantity in the lifecycle of goods.
The current [inventory state](entity:InventoryState) for the related
quantity of items.
See [InventoryState](#type-inventorystate) for possible values
Known values: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
state (anyOf 2)nullAlternative

Batch Retrieve Inventory Changes — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
catalog_object_idsJSONOptional
catalog_object_ids (anyOf 1)arrayAlternativeThe filter to return results by `CatalogObject` ID.
The filter is only applicable when set. The default value is null.
catalog_object_ids (anyOf 1)[]stringEach item
catalog_object_ids (anyOf 2)nullAlternative
cursorJSONOptional
cursor (anyOf 1)stringAlternativeA pagination cursor returned by a previous call to this endpoint.
Provide this to retrieve the next set of results for the original query.

See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
cursor (anyOf 2)nullAlternative
limitJSONOptional
limit (anyOf 1)integerAlternativeThe number of [records](entity:InventoryChange) to return.
Maximum: 1000
Minimum: 1
limit (anyOf 2)nullAlternative
location_idsJSONOptional
location_ids (anyOf 1)arrayAlternativeThe filter to return results by `Location` ID.
The filter is only applicable when set. The default value is null.
location_ids (anyOf 1)[]stringEach item
location_ids (anyOf 2)nullAlternative
reason_idsJSONOptional
reason_ids (anyOf 1)arrayAlternativeThe filter to return `ADJUSTMENT` query results by inventory
adjustment reason. This filter is only applied when set. The request cannot
include both `reason_ids` and `states`.
reason_ids (anyOf 1)[]ModelEach itemExpand Delete Inventory Adjustment Reason — request body — body reason id
reason_ids (anyOf 2)nullAlternative
sortJSONOptional
sort (anyOf 1)ModelAlternativeExpand Batch Retrieve Inventory Changes — request body — body sort field, order
Specification of how returned inventory changes should be ordered.

Currently, inventory changes can only be ordered by the occurred_at field.
The default sort order for occurred_at is ASC (changes are returned oldest-first by default).
sort (anyOf 2)nullAlternative
statesJSONOptional
states (anyOf 1)arrayAlternativeThe filter to return `ADJUSTMENT` query results by
`InventoryState`. This filter is only applied when set.
The default value is null.
states (anyOf 1)[]stringEach itemIndicates the state of a tracked item quantity in the lifecycle of goods.
One of: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
states (anyOf 2)nullAlternative
typesJSONOptional
types (anyOf 1)arrayAlternativeThe filter to return results by `InventoryChangeType` values other than `TRANSFER`.
The default value is `[PHYSICAL_COUNT, ADJUSTMENT]`.
types (anyOf 1)[]stringEach itemIndicates how the inventory change was applied to a tracked product quantity.
One of: PHYSICAL_COUNT, ADJUSTMENT
types (anyOf 2)nullAlternative
updated_afterJSONOptional
updated_after (anyOf 1)stringAlternativeThe filter to return results with their `calculated_at` value
after the given time as specified in an RFC 3339 timestamp.
The default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).
updated_after (anyOf 2)nullAlternative
updated_beforeJSONOptional
updated_before (anyOf 1)stringAlternativeThe filter to return results with their `created_at` or `calculated_at` value
strictly before the given time as specified in an RFC 3339 timestamp.
The default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).
updated_before (anyOf 2)nullAlternative

Referenced models: Batch Retrieve Inventory Changes — request body — body sort field, order, Delete Inventory Adjustment Reason — request body — body reason id

Batch Retrieve Inventory Changes — request body — body sort field, order

FieldTypePresenceDescription and constraints
$objectRoot
fieldJSONOptional
field (anyOf 1)stringAlternativeThe field to sort inventory changes by.
See [Field](#type-field) for possible values
One of: OCCURRED_AT
field (anyOf 2)nullAlternative
orderJSONOptional
order (anyOf 1)stringAlternativeThe order (e.g., chronological or alphabetical) in which results from a request are returned.
The order to sort inventory changes by.
See [SortOrder](#type-sortorder) for possible values
One of: DESC, ASC
order (anyOf 2)nullAlternative

Batch Retrieve Inventory Changes — response body

FieldTypePresenceDescription and constraints
$objectRoot
changesarrayOptionalThe current calculated inventory changes for the requested objects
and locations.
changes[]ModelEach itemExpand Batch Change Inventory — response body — changes item
cursorstringOptionalThe pagination cursor to be used in a subsequent request. If unset,
this is the final response.
See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Batch Change Inventory — response body — changes item

Batch Retrieve Inventory Counts — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
catalog_object_idsJSONOptional
catalog_object_ids (anyOf 1)arrayAlternativeThe filter to return results by `CatalogObject` ID.
The filter is applicable only when set. The default is null.
catalog_object_ids (anyOf 1)[]stringEach item
catalog_object_ids (anyOf 2)nullAlternative
cursorJSONOptional
cursor (anyOf 1)stringAlternativeA pagination cursor returned by a previous call to this endpoint.
Provide this to retrieve the next set of results for the original query.

See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
cursor (anyOf 2)nullAlternative
limitJSONOptional
limit (anyOf 1)integerAlternativeThe number of [records](entity:InventoryCount) to return.
Maximum: 1000
Minimum: 1
limit (anyOf 2)nullAlternative
location_idsJSONOptional
location_ids (anyOf 1)arrayAlternativeThe filter to return results by `Location` ID.
This filter is applicable only when set. The default is null.
location_ids (anyOf 1)[]stringEach item
location_ids (anyOf 2)nullAlternative
statesJSONOptional
states (anyOf 1)arrayAlternativeThe filter to return results by `InventoryState`. The filter is only applicable when set.
Ignored are untracked states of `NONE`, `SOLD`, and `UNLINKED_RETURN`.
The default is null.
states (anyOf 1)[]stringEach itemIndicates the state of a tracked item quantity in the lifecycle of goods.
One of: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
states (anyOf 2)nullAlternative
updated_afterJSONOptional
updated_after (anyOf 1)stringAlternativeThe filter to return results with their `calculated_at` value
after the given time as specified in an RFC 3339 timestamp.
The default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).
updated_after (anyOf 2)nullAlternative

Batch Retrieve Inventory Counts — response body

FieldTypePresenceDescription and constraints
$objectRoot
countsarrayOptionalThe current calculated inventory counts for the requested objects
and locations.
counts[]ModelEach itemExpand Batch Change Inventory — response body — counts item
cursorstringOptionalThe pagination cursor to be used in a subsequent request. If unset,
this is the final response.

See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Batch Change Inventory — response body — counts item

Create Inventory Adjustment Reason — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason).
adjustment_reasonModelRequired within parentExpand Create Inventory Adjustment Reason — request body — body adjustment reason
The custom inventory adjustment reason to create. Only custom
adjustment reasons can be created.
idempotency_keystringRequired within parentA client-supplied, universally unique identifier to make this
[CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason)
request idempotent.
Maximum length: 128
Minimum length: 1

Referenced models: Create Inventory Adjustment Reason — request body — body adjustment reason

Create Inventory Adjustment Reason — request body — body adjustment reason

FieldTypePresenceDescription and constraints
$objectRootRepresents an inventory adjustment reason.
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the custom
adjustment reason was created. This field is empty for standard
adjustment reasons.
Maximum length: 34
Read only: true
directionJSONOptional
direction (anyOf 1)stringAlternativeIndicates whether this inventory adjustment reason increases or
decreases inventory. This field is set for custom reasons and for standard
seller-selectable reasons. It is empty for system-generated inventory
events.
See [Direction](#type-direction) for possible values
One of: INCREASE, DECREASE
direction (anyOf 2)nullAlternative
idModelRequired within parentExpand Delete Inventory Adjustment Reason — request body — body reason id
The identifier for this inventory adjustment reason.
is_deletedJSONOptional
is_deleted (anyOf 1)booleanAlternativeIndicates whether this custom inventory adjustment reason has been
deleted. Deleted custom reasons can still be retrieved by ID, but are
omitted from list responses unless deleted reasons are explicitly included.
To restore a deleted custom reason, call
[RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason).
This field is always `false` for standard and system-generated adjustment
reasons.
is_deleted (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe seller-facing name for a custom inventory adjustment reason. This
field is empty for standard and system-generated adjustment reasons.
Maximum length: 50
name (anyOf 2)nullAlternative
updated_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the custom
adjustment reason was last updated. This field is empty for standard
adjustment reasons.
Maximum length: 34
Read only: true

Referenced models: Delete Inventory Adjustment Reason — request body — body reason id

Create Inventory Adjustment Reason — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason).
adjustment_reasonModelOptionalExpand Create Inventory Adjustment Reason — response body — adjustment reason
The successfully created inventory adjustment reason.
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Create Inventory Adjustment Reason — response body — adjustment reason

Create Inventory Adjustment Reason — response body — adjustment reason

FieldTypePresenceDescription and constraints
$objectRootRepresents an inventory adjustment reason.
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the custom
adjustment reason was created. This field is empty for standard
adjustment reasons.
Maximum length: 34
Read only: true
directionJSONOptional
direction (anyOf 1)stringAlternativeIndicates whether this inventory adjustment reason increases or
decreases inventory. This field is set for custom reasons and for standard
seller-selectable reasons. It is empty for system-generated inventory
events.
See [Direction](#type-direction) for possible values
Known values: INCREASE, DECREASE
direction (anyOf 2)nullAlternative
idModelRequired within parentExpand Create Inventory Adjustment Reason — response body — adjustment reason id
The identifier for this inventory adjustment reason.
is_deletedJSONOptional
is_deleted (anyOf 1)booleanAlternativeIndicates whether this custom inventory adjustment reason has been
deleted. Deleted custom reasons can still be retrieved by ID, but are
omitted from list responses unless deleted reasons are explicitly included.
To restore a deleted custom reason, call
[RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason).
This field is always `false` for standard and system-generated adjustment
reasons.
is_deleted (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe seller-facing name for a custom inventory adjustment reason. This
field is empty for standard and system-generated adjustment reasons.
Maximum length: 50
name (anyOf 2)nullAlternative
updated_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the custom
adjustment reason was last updated. This field is empty for standard
adjustment reasons.
Maximum length: 34
Read only: true

Referenced models: Create Inventory Adjustment Reason — response body — adjustment reason id

Create Inventory Adjustment Reason — response body — adjustment reason id

FieldTypePresenceDescription and constraints
$objectRootIdentifies a standard or custom inventory adjustment reason.
custom_reason_idJSONOptional
custom_reason_id (anyOf 1)stringAlternativeThe Square-generated ID of the custom adjustment reason. This field
is only set when `type` is `CUSTOM`.
Maximum length: 100
custom_reason_id (anyOf 2)nullAlternative
typeModelRequired within parentExpand Create Inventory Adjustment Reason — response body — adjustment reason id type
The adjustment reason type.
See [Type](#type-type) for possible values

Referenced models: Create Inventory Adjustment Reason — response body — adjustment reason id type

Create Inventory Adjustment Reason — response body — adjustment reason id type

FieldTypePresenceDescription and constraints
$stringRootThe type of inventory adjustment reason.

Custom reasons use `CUSTOM` and include a `custom_reason_id`. Standard
seller-selectable reasons use `RECEIVED`, `DAMAGED`, `THEFT`, `LOST`,
`RETURNED`, `SPOILAGE_WASTE`, `SAMPLES_PROMOTIONAL`, `INTERNAL_USE`,
`VENDOR_RETURN`, or `PRODUCTION_WASTE`.

The writable standard reasons with direction `INCREASE` are `RECEIVED`
and `RETURNED`. The writable standard reasons with direction `DECREASE`
are `DAMAGED`, `THEFT`, `LOST`, `SPOILAGE_WASTE`,
`SAMPLES_PROMOTIONAL`, `INTERNAL_USE`, `VENDOR_RETURN`, and
`PRODUCTION_WASTE`.

The `SALE`, `RECOUNT`, `TRANSFER`, `IN_TRANSIT`, and `CANCELED_SALE`
values identify system-generated inventory events. These values can be
returned by Square, but cannot be used when writing inventory adjustments.
Known values: RECEIVED, DAMAGED, THEFT, LOST, RETURNED, SPOILAGE_WASTE, SAMPLES_PROMOTIONAL, INTERNAL_USE, VENDOR_RETURN, PRODUCTION_WASTE, SALE, RECOUNT, TRANSFER, IN_TRANSIT, CANCELED_SALE, CUSTOM

Delete Inventory Adjustment Reason — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [DeleteInventoryAdjustmentReason](api-endpoint:Inventory-DeleteInventoryAdjustmentReason).
reason_idModelRequired within parentExpand Delete Inventory Adjustment Reason — request body — body reason id
The identifier of the custom inventory adjustment reason to soft delete.

Referenced models: Delete Inventory Adjustment Reason — request body — body reason id

Delete Inventory Adjustment Reason — request body — body reason id

FieldTypePresenceDescription and constraints
$objectRootIdentifies a standard or custom inventory adjustment reason.
custom_reason_idJSONOptional
custom_reason_id (anyOf 1)stringAlternativeThe Square-generated ID of the custom adjustment reason. This field
is only set when `type` is `CUSTOM`.
Maximum length: 100
custom_reason_id (anyOf 2)nullAlternative
typeModelRequired within parentExpand Delete Inventory Adjustment Reason — request body — body reason id type
The adjustment reason type.
See [Type](#type-type) for possible values

Referenced models: Delete Inventory Adjustment Reason — request body — body reason id type

Delete Inventory Adjustment Reason — request body — body reason id type

FieldTypePresenceDescription and constraints
$stringRootThe type of inventory adjustment reason.

Custom reasons use `CUSTOM` and include a `custom_reason_id`. Standard
seller-selectable reasons use `RECEIVED`, `DAMAGED`, `THEFT`, `LOST`,
`RETURNED`, `SPOILAGE_WASTE`, `SAMPLES_PROMOTIONAL`, `INTERNAL_USE`,
`VENDOR_RETURN`, or `PRODUCTION_WASTE`.

The writable standard reasons with direction `INCREASE` are `RECEIVED`
and `RETURNED`. The writable standard reasons with direction `DECREASE`
are `DAMAGED`, `THEFT`, `LOST`, `SPOILAGE_WASTE`,
`SAMPLES_PROMOTIONAL`, `INTERNAL_USE`, `VENDOR_RETURN`, and
`PRODUCTION_WASTE`.

The `SALE`, `RECOUNT`, `TRANSFER`, `IN_TRANSIT`, and `CANCELED_SALE`
values identify system-generated inventory events. These values can be
returned by Square, but cannot be used when writing inventory adjustments.
One of: RECEIVED, DAMAGED, THEFT, LOST, RETURNED, SPOILAGE_WASTE, SAMPLES_PROMOTIONAL, INTERNAL_USE, VENDOR_RETURN, PRODUCTION_WASTE, SALE, RECOUNT, TRANSFER, IN_TRANSIT, CANCELED_SALE, CUSTOM

Delete Inventory Adjustment Reason — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [DeleteInventoryAdjustmentReason](api-endpoint:Inventory-DeleteInventoryAdjustmentReason).
adjustment_reasonModelOptionalExpand Create Inventory Adjustment Reason — response body — adjustment reason
The successfully soft-deleted inventory adjustment reason.
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Create Inventory Adjustment Reason — response body — adjustment reason

List Inventory Adjustment Reasons — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [ListInventoryAdjustmentReasons](api-endpoint:Inventory-ListInventoryAdjustmentReasons).
adjustment_reasonsarrayOptionalThe standard, system-generated, and custom inventory adjustment
reasons available to the seller.
adjustment_reasons[]ModelEach itemExpand Create Inventory Adjustment Reason — response body — adjustment reason
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Create Inventory Adjustment Reason — response body — adjustment reason

Restore Inventory Adjustment Reason — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason).
reason_idModelRequired within parentExpand Delete Inventory Adjustment Reason — request body — body reason id
The identifier of the soft-deleted custom inventory adjustment reason
to restore.

Referenced models: Delete Inventory Adjustment Reason — request body — body reason id

Restore Inventory Adjustment Reason — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason).
adjustment_reasonModelOptionalExpand Create Inventory Adjustment Reason — response body — adjustment reason
The successfully restored inventory adjustment reason.
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Create Inventory Adjustment Reason — response body — adjustment reason

Retrieve Inventory Adjustment Reason — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [RetrieveInventoryAdjustmentReason](api-endpoint:Inventory-RetrieveInventoryAdjustmentReason).
reason_idModelRequired within parentExpand Delete Inventory Adjustment Reason — request body — body reason id
The identifier of the inventory adjustment reason to retrieve.

Referenced models: Delete Inventory Adjustment Reason — request body — body reason id

Retrieve Inventory Adjustment Reason — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [RetrieveInventoryAdjustmentReason](api-endpoint:Inventory-RetrieveInventoryAdjustmentReason).
adjustment_reasonModelOptionalExpand Create Inventory Adjustment Reason — response body — adjustment reason
The successfully retrieved inventory adjustment reason. Deleted custom
reasons can be retrieved by ID and have `is_deleted` set to `true`.
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Create Inventory Adjustment Reason — response body — adjustment reason

Retrieve Inventory Adjustment — response body

FieldTypePresenceDescription and constraints
$objectRoot
adjustmentModelOptionalExpand Update Inventory Adjustment — response body — adjustment
The requested [InventoryAdjustment](entity:InventoryAdjustment).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Update Inventory Adjustment — response body — adjustment

Retrieve Inventory Changes — response body

FieldTypePresenceDescription and constraints
$objectRoot
changesarrayOptionalThe set of inventory changes for the requested object and locations.
changes[]ModelEach itemExpand Batch Change Inventory — response body — changes item
cursorstringOptionalThe pagination cursor to be used in a subsequent request. If unset,
this is the final response.

See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Batch Change Inventory — response body — changes item

Retrieve Inventory Count — response body

FieldTypePresenceDescription and constraints
$objectRoot
countsarrayOptionalThe current calculated inventory counts for the requested object and
locations.
counts[]ModelEach itemExpand Batch Change Inventory — response body — counts item
cursorstringOptionalThe pagination cursor to be used in a subsequent request. If unset,
this is the final response.

See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Batch Change Inventory — response body — counts item

Retrieve Inventory Physical Count — response body

FieldTypePresenceDescription and constraints
$objectRoot
countModelOptionalExpand Retrieve Inventory Physical Count — response body — count
The requested [InventoryPhysicalCount](entity:InventoryPhysicalCount).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Retrieve Inventory Physical Count — response body — count

Retrieve Inventory Physical Count — response body — count

FieldTypePresenceDescription and constraints
$objectRootRepresents the quantity of an item variation that is physically present
at a specific location, verified by a seller or a seller's employee. For example,
a physical count might come from an employee counting the item variations on
hand or from syncing with an external system.
adjustment_idstringOptionalThe Square-generated ID of the InventoryAdjustment that was generated by this physical count in order to
adjust the current stock count to reflect the re-counted quantity.
This field may be empty if the merchant does not have an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.
Read only: true
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe Square-generated ID of the
[CatalogObject](entity:CatalogObject) being tracked.
Maximum length: 100
catalog_object_id (anyOf 2)nullAlternative
catalog_object_typeJSONOptional
catalog_object_type (anyOf 1)stringAlternativeThe [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked.

The Inventory API supports setting and reading the `"catalog_object_type": "ITEM_VARIATION"` field value.
In addition, it can also read the `"catalog_object_type": "ITEM"` field value that is set by the Square Restaurants app.
Maximum length: 14
catalog_object_type (anyOf 2)nullAlternative
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the physical count is received.
Maximum length: 34
Read only: true
employee_idJSONOptional
employee_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Employee](entity:Employee) responsible for the
physical count.
Maximum length: 100
employee_id (anyOf 2)nullAlternative
idstringOptionalA unique Square-generated ID for the
[InventoryPhysicalCount](entity:InventoryPhysicalCount).
Maximum length: 100
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Location](entity:Location) where the related
quantity of items is being tracked.
Maximum length: 100
location_id (anyOf 2)nullAlternative
occurred_atJSONOptional
occurred_at (anyOf 1)stringAlternativeA client-generated RFC 3339-formatted timestamp that indicates when
the physical count was examined. For physical count updates, the `occurred_at`
timestamp cannot be older than 24 hours or in the future relative to the
time of the request.
Maximum length: 34
occurred_at (anyOf 2)nullAlternative
quantityJSONOptional
quantity (anyOf 1)stringAlternativeThe number of items affected by the physical count as a decimal string.
The number can support up to 5 digits after the decimal point.
Maximum length: 26
quantity (anyOf 2)nullAlternative
reference_idJSONOptional
reference_id (anyOf 1)stringAlternativeAn optional ID provided by the application to tie the
[InventoryPhysicalCount](entity:InventoryPhysicalCount) to an external
system.
Maximum length: 255
reference_id (anyOf 2)nullAlternative
sourceModelOptionalExpand Retrieve Inventory Physical Count — response body — count source
Information about the application with which the
physical count is submitted.
Read only: true
stateJSONOptional
state (anyOf 1)stringAlternativeIndicates the state of a tracked item quantity in the lifecycle of goods.
The current [inventory state](entity:InventoryState) for the related
quantity of items.
See [InventoryState](#type-inventorystate) for possible values
Known values: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
state (anyOf 2)nullAlternative
team_member_idJSONOptional
team_member_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Team Member](entity:TeamMember) responsible for the
physical count.
Maximum length: 100
team_member_id (anyOf 2)nullAlternative

Referenced models: Retrieve Inventory Physical Count — response body — count source

Retrieve Inventory Physical Count — response body — count source

FieldTypePresenceDescription and constraints
$objectRootRepresents information about the application used to generate a change.
application_idJSONOptional
application_id (anyOf 1)stringAlternative__Read only__ The Square-assigned ID of the application. This field is used only if the
[product](entity:Product) type is `EXTERNAL_API`.
application_id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternative__Read only__ The display name of the application
(for example, `"Custom Application"` or `"Square POS 4.74 for Android"`).
name (anyOf 2)nullAlternative
productJSONOptional
product (anyOf 1)stringAlternativeIndicates the Square product used to generate a change.
__Read only__ The [product](entity:Product) type of the application.
See [Product](#type-product) for possible values
Known values: SQUARE_POS, EXTERNAL_API, BILLING, APPOINTMENTS, INVOICES, ONLINE_STORE, PAYROLL, DASHBOARD, ITEM_LIBRARY_IMPORT, OTHER
product (anyOf 2)nullAlternative

Update Inventory Adjustment Reason — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [UpdateInventoryAdjustmentReason](api-endpoint:Inventory-UpdateInventoryAdjustmentReason).
adjustment_reasonModelRequired within parentExpand Create Inventory Adjustment Reason — request body — body adjustment reason
The requested custom inventory adjustment reason update. Only the
`name` field can be updated. Deleted custom reasons cannot be updated. To
restore a deleted custom reason, call
[RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason).
reason_idModelRequired within parentExpand Delete Inventory Adjustment Reason — request body — body reason id
The identifier of the custom inventory adjustment reason to update.

Referenced models: Create Inventory Adjustment Reason — request body — body adjustment reason, Delete Inventory Adjustment Reason — request body — body reason id

Update Inventory Adjustment Reason — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [UpdateInventoryAdjustmentReason](api-endpoint:Inventory-UpdateInventoryAdjustmentReason).
adjustment_reasonModelOptionalExpand Create Inventory Adjustment Reason — response body — adjustment reason
The successfully updated inventory adjustment reason.
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Create Inventory Adjustment Reason — response body — adjustment reason

Update Inventory Adjustment — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
adjustmentModelRequired within parentExpand Update Inventory Adjustment — request body — body adjustment
Represents the updates being written to a past/existing inventory adjustment.
This works using sparse updates, meaning that any fields omitted from the inputted InventoryAdjustment
will retain their values.

Only updates to the quantity, cost_money, vendor_id, and reason_id fields of an InventoryAdjustment can be made here.
Note that the quantity field must be provided, but it can be identical to the current quantity if there are no desired quantity changes.
cost_money and vendor_id can only be written to adjustments that add stock to the system (from_state of NONE or UNLINKED_RETURN) and to untracked sale adjustments.
reason_id can be changed to any reason that is valid for the adjustment's state transition. The reason of a system-generated adjustment (for example, SALE or RECOUNT) cannot be changed.
Adjustments generated by Square from other records cannot be updated. This includes inferred adjustments created by physical counts, transfer-like cross-location adjustments, and component adjustments.
Adjustments linked to purchase orders cannot be updated. Adjustments linked to sales can only have cost_money and vendor_id updated, and only for untracked sales.
Restock adjustments linked to an itemized return can have their quantity updated, up to the quantity remaining on the return.
Adjustments older than one year cannot be updated.
idempotency_keystringRequired within parentA client-supplied, universally unique identifier (UUID) for the
request.

See [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) in the
[Build Basics](https://developer.squareup.com/docs/buildbasics) section for more
information.
Maximum length: 128
Minimum length: 1

Referenced models: Update Inventory Adjustment — request body — body adjustment

Update Inventory Adjustment — request body — body adjustment

FieldTypePresenceDescription and constraints
$objectRootRepresents a change in state or quantity of product inventory at a
particular time and location.
adjustment_groupModelOptionalExpand Update Inventory Adjustment — request body — body adjustment adjustment group
An adjustment group bundling the related adjustments of item variations through stock conversions in a single inventory event.
Read only: true
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe Square-generated ID of the
[CatalogObject](entity:CatalogObject) being tracked.
Maximum length: 100
catalog_object_id (anyOf 2)nullAlternative
catalog_object_typeJSONOptional
catalog_object_type (anyOf 1)stringAlternativeThe [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked.

The Inventory API supports setting and reading the `"catalog_object_type": "ITEM_VARIATION"` field value.
In addition, it can also read the `"catalog_object_type": "ITEM"` field value that is set by the Square Restaurants app.
Maximum length: 14
catalog_object_type (anyOf 2)nullAlternative
cost_moneyJSONOptional
cost_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The total amount paid by the merchant to the supplying vendor for these units of the product.
This field is only applicable for stock receive adjustments that introduce stock into the system (from_state is NONE or UNLINKED_RETURN).
May be empty.
This field will only accept writes if the merchant has an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.
cost_money (anyOf 2)nullAlternative
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the inventory adjustment is received.
Maximum length: 34
Read only: true
employee_idJSONOptional
employee_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Employee](entity:Employee) responsible for the
inventory adjustment.
Maximum length: 100
employee_id (anyOf 2)nullAlternative
from_location_idJSONOptional
from_location_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Location](entity:Location) where the related
quantity of items is being tracked before the adjustment.
Maximum length: 100
from_location_id (anyOf 2)nullAlternative
from_stateJSONOptional
from_state (anyOf 1)stringAlternativeIndicates the state of a tracked item quantity in the lifecycle of goods.
The [inventory state](entity:InventoryState) of the related quantity
of items before the adjustment.
See [InventoryState](#type-inventorystate) for possible values
One of: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
from_state (anyOf 2)nullAlternative
goods_receipt_idstringOptionalThe Square-generated ID of the goods receipt that caused the
adjustment. Only relevant for state transitions from the Square for Retail
app.
Maximum length: 100
Read only: true
idstringOptionalA unique ID generated by Square for the
`InventoryAdjustment`.
Maximum length: 100
occurred_atJSONOptional
occurred_at (anyOf 1)stringAlternativeA client-generated RFC 3339-formatted timestamp that indicates when
the inventory adjustment took place. For inventory adjustment updates, the `occurred_at`
timestamp cannot be older than 24 hours or in the future relative to the
time of the request.
Maximum length: 34
occurred_at (anyOf 2)nullAlternative
physical_count_idstringOptionalThe Square-generated ID of the InventoryPhysicalCount (recount) that generated this adjustment, if applicable.
The quantity of an adjustment generated by a physical count cannot be edited.
Read only: true
purchase_order_idstringOptionalThe Square-generated ID of the purchase order that caused the
adjustment. Only relevant for state transitions from the Square for Retail
app.
Maximum length: 100
Read only: true
quantityJSONOptional
quantity (anyOf 1)stringAlternativeThe number of items affected by the adjustment as a decimal string.
Can support up to 5 digits after the decimal point.
Maximum length: 26
quantity (anyOf 2)nullAlternative
reason_idJSONOptional
reason_id (anyOf 1)ModelAlternativeExpand Delete Inventory Adjustment Reason — request body — body reason id
Identifies the reason for this inventory adjustment.
reason_id (anyOf 2)nullAlternative
reference_idJSONOptional
reference_id (anyOf 1)stringAlternativeAn optional ID provided by the application to tie the
`InventoryAdjustment` to an external
system.
Maximum length: 255
reference_id (anyOf 2)nullAlternative
refund_idstringOptionalThe Square-generated ID of the [Refund](entity:Refund) that
caused the adjustment. Only relevant for refund-related state
transitions.
Maximum length: 255
Read only: true
sourceModelOptionalExpand Update Inventory Adjustment — request body — body adjustment source
Information about the application that caused the
inventory adjustment.
Read only: true
team_member_idJSONOptional
team_member_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Team Member](entity:TeamMember) responsible for the
inventory adjustment.
Maximum length: 100
team_member_id (anyOf 2)nullAlternative
to_location_idJSONOptional
to_location_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Location](entity:Location) where the related
quantity of items is being tracked after the adjustment.
Maximum length: 100
to_location_id (anyOf 2)nullAlternative
to_stateJSONOptional
to_state (anyOf 1)stringAlternativeIndicates the state of a tracked item quantity in the lifecycle of goods.
The [inventory state](entity:InventoryState) of the related quantity
of items after the adjustment.
See [InventoryState](#type-inventorystate) for possible values
One of: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
to_state (anyOf 2)nullAlternative
total_price_moneyModelOptionalExpand Create Payment — request body — body tip money
The total price paid for goods associated with the
adjustment. Present if and only if `to_state` is `SOLD`. Always
non-negative.
Read only: true
transaction_idstringOptionalThe Square-generated ID of the [Transaction](entity:Transaction) that
caused the adjustment. Only relevant for payment-related state
transitions.
Maximum length: 255
Read only: true
vendor_idJSONOptional
vendor_id (anyOf 1)stringAlternativeThe Square-generated ID of the Vendor from which the merchant purchased this product.
This field is only applicable for stock receive adjustments that introduce stock into the system (from_state is NONE or UNLINKED_RETURN).
This field will only accept writes if the merchant has an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.
Maximum length: 100
vendor_id (anyOf 2)nullAlternative

Referenced models: Update Inventory Adjustment — request body — body adjustment adjustment group, Delete Inventory Adjustment Reason — request body — body reason id, Create Payment — request body — body tip money, Update Inventory Adjustment — request body — body adjustment source

Update Inventory Adjustment — request body — body adjustment adjustment group

FieldTypePresenceDescription and constraints
$objectRoot
from_statestringOptionalIndicates the state of a tracked item quantity in the lifecycle of goods.
Representative `from_state` for adjustments within the group. For example, for a group adjustment from `IN_STOCK` to `SOLD`,
there can be two component adjustments in the group: one from `IN_STOCK`to `COMPOSED` and the other one from `COMPOSED` to `SOLD`.
Here, the representative `from_state` for the `InventoryAdjustmentGroup` is `IN_STOCK`.
See [InventoryState](#type-inventorystate) for possible values
One of: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
Read only: true
idstringOptionalA unique ID generated by Square for the
`InventoryAdjustmentGroup`.
Maximum length: 100
Read only: true
root_adjustment_idstringOptionalThe inventory adjustment of the composed variation.
Maximum length: 100
Read only: true
to_statestringOptionalIndicates the state of a tracked item quantity in the lifecycle of goods.
Representative `to_state` for adjustments within group. For example, for a group adjustment from `IN_STOCK` to `SOLD`,
the two component adjustments in the group can be from `IN_STOCK` to `COMPOSED` and from `COMPOSED` to `SOLD`.
Here, the representative `to_state` of the `InventoryAdjustmentGroup` is `SOLD`.
See [InventoryState](#type-inventorystate) for possible values
One of: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
Read only: true

Update Inventory Adjustment — request body — body adjustment source

FieldTypePresenceDescription and constraints
$objectRootRepresents information about the application used to generate a change.
application_idJSONOptional
application_id (anyOf 1)stringAlternative__Read only__ The Square-assigned ID of the application. This field is used only if the
[product](entity:Product) type is `EXTERNAL_API`.
application_id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternative__Read only__ The display name of the application
(for example, `"Custom Application"` or `"Square POS 4.74 for Android"`).
name (anyOf 2)nullAlternative
productJSONOptional
product (anyOf 1)stringAlternativeIndicates the Square product used to generate a change.
__Read only__ The [product](entity:Product) type of the application.
See [Product](#type-product) for possible values
One of: SQUARE_POS, EXTERNAL_API, BILLING, APPOINTMENTS, INVOICES, ONLINE_STORE, PAYROLL, DASHBOARD, ITEM_LIBRARY_IMPORT, OTHER
product (anyOf 2)nullAlternative

Update Inventory Adjustment — response body

FieldTypePresenceDescription and constraints
$objectRoot
adjustmentModelOptionalExpand Update Inventory Adjustment — response body — adjustment
The newly updated adjustment.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Update Inventory Adjustment — response body — adjustment

Update Inventory Adjustment — response body — adjustment

FieldTypePresenceDescription and constraints
$objectRootRepresents a change in state or quantity of product inventory at a
particular time and location.
adjustment_groupModelOptionalExpand Update Inventory Adjustment — response body — adjustment adjustment group
An adjustment group bundling the related adjustments of item variations through stock conversions in a single inventory event.
Read only: true
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe Square-generated ID of the
[CatalogObject](entity:CatalogObject) being tracked.
Maximum length: 100
catalog_object_id (anyOf 2)nullAlternative
catalog_object_typeJSONOptional
catalog_object_type (anyOf 1)stringAlternativeThe [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked.

The Inventory API supports setting and reading the `"catalog_object_type": "ITEM_VARIATION"` field value.
In addition, it can also read the `"catalog_object_type": "ITEM"` field value that is set by the Square Restaurants app.
Maximum length: 14
catalog_object_type (anyOf 2)nullAlternative
cost_moneyJSONOptional
cost_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The total amount paid by the merchant to the supplying vendor for these units of the product.
This field is only applicable for stock receive adjustments that introduce stock into the system (from_state is NONE or UNLINKED_RETURN).
May be empty.
This field will only accept writes if the merchant has an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.
cost_money (anyOf 2)nullAlternative
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the inventory adjustment is received.
Maximum length: 34
Read only: true
employee_idJSONOptional
employee_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Employee](entity:Employee) responsible for the
inventory adjustment.
Maximum length: 100
employee_id (anyOf 2)nullAlternative
from_location_idJSONOptional
from_location_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Location](entity:Location) where the related
quantity of items is being tracked before the adjustment.
Maximum length: 100
from_location_id (anyOf 2)nullAlternative
from_stateJSONOptional
from_state (anyOf 1)stringAlternativeIndicates the state of a tracked item quantity in the lifecycle of goods.
The [inventory state](entity:InventoryState) of the related quantity
of items before the adjustment.
See [InventoryState](#type-inventorystate) for possible values
Known values: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
from_state (anyOf 2)nullAlternative
goods_receipt_idstringOptionalThe Square-generated ID of the goods receipt that caused the
adjustment. Only relevant for state transitions from the Square for Retail
app.
Maximum length: 100
Read only: true
idstringOptionalA unique ID generated by Square for the
`InventoryAdjustment`.
Maximum length: 100
occurred_atJSONOptional
occurred_at (anyOf 1)stringAlternativeA client-generated RFC 3339-formatted timestamp that indicates when
the inventory adjustment took place. For inventory adjustment updates, the `occurred_at`
timestamp cannot be older than 24 hours or in the future relative to the
time of the request.
Maximum length: 34
occurred_at (anyOf 2)nullAlternative
physical_count_idstringOptionalThe Square-generated ID of the InventoryPhysicalCount (recount) that generated this adjustment, if applicable.
The quantity of an adjustment generated by a physical count cannot be edited.
Read only: true
purchase_order_idstringOptionalThe Square-generated ID of the purchase order that caused the
adjustment. Only relevant for state transitions from the Square for Retail
app.
Maximum length: 100
Read only: true
quantityJSONOptional
quantity (anyOf 1)stringAlternativeThe number of items affected by the adjustment as a decimal string.
Can support up to 5 digits after the decimal point.
Maximum length: 26
quantity (anyOf 2)nullAlternative
reason_idJSONOptional
reason_id (anyOf 1)ModelAlternativeExpand Create Inventory Adjustment Reason — response body — adjustment reason id
Identifies the reason for this inventory adjustment.
reason_id (anyOf 2)nullAlternative
reference_idJSONOptional
reference_id (anyOf 1)stringAlternativeAn optional ID provided by the application to tie the
`InventoryAdjustment` to an external
system.
Maximum length: 255
reference_id (anyOf 2)nullAlternative
refund_idstringOptionalThe Square-generated ID of the [Refund](entity:Refund) that
caused the adjustment. Only relevant for refund-related state
transitions.
Maximum length: 255
Read only: true
sourceModelOptionalExpand Retrieve Inventory Physical Count — response body — count source
Information about the application that caused the
inventory adjustment.
Read only: true
team_member_idJSONOptional
team_member_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Team Member](entity:TeamMember) responsible for the
inventory adjustment.
Maximum length: 100
team_member_id (anyOf 2)nullAlternative
to_location_idJSONOptional
to_location_id (anyOf 1)stringAlternativeThe Square-generated ID of the [Location](entity:Location) where the related
quantity of items is being tracked after the adjustment.
Maximum length: 100
to_location_id (anyOf 2)nullAlternative
to_stateJSONOptional
to_state (anyOf 1)stringAlternativeIndicates the state of a tracked item quantity in the lifecycle of goods.
The [inventory state](entity:InventoryState) of the related quantity
of items after the adjustment.
See [InventoryState](#type-inventorystate) for possible values
Known values: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
to_state (anyOf 2)nullAlternative
total_price_moneyModelOptionalExpand Pay Order — response body — order total money
The total price paid for goods associated with the
adjustment. Present if and only if `to_state` is `SOLD`. Always
non-negative.
Read only: true
transaction_idstringOptionalThe Square-generated ID of the [Transaction](entity:Transaction) that
caused the adjustment. Only relevant for payment-related state
transitions.
Maximum length: 255
Read only: true
vendor_idJSONOptional
vendor_id (anyOf 1)stringAlternativeThe Square-generated ID of the Vendor from which the merchant purchased this product.
This field is only applicable for stock receive adjustments that introduce stock into the system (from_state is NONE or UNLINKED_RETURN).
This field will only accept writes if the merchant has an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.
Maximum length: 100
vendor_id (anyOf 2)nullAlternative

Referenced models: Update Inventory Adjustment — response body — adjustment adjustment group, Create Inventory Adjustment Reason — response body — adjustment reason id, Pay Order — response body — order total money, Retrieve Inventory Physical Count — response body — count source

Update Inventory Adjustment — response body — adjustment adjustment group

FieldTypePresenceDescription and constraints
$objectRoot
from_statestringOptionalIndicates the state of a tracked item quantity in the lifecycle of goods.
Representative `from_state` for adjustments within the group. For example, for a group adjustment from `IN_STOCK` to `SOLD`,
there can be two component adjustments in the group: one from `IN_STOCK`to `COMPOSED` and the other one from `COMPOSED` to `SOLD`.
Here, the representative `from_state` for the `InventoryAdjustmentGroup` is `IN_STOCK`.
See [InventoryState](#type-inventorystate) for possible values
Known values: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
Read only: true
idstringOptionalA unique ID generated by Square for the
`InventoryAdjustmentGroup`.
Maximum length: 100
Read only: true
root_adjustment_idstringOptionalThe inventory adjustment of the composed variation.
Maximum length: 100
Read only: true
to_statestringOptionalIndicates the state of a tracked item quantity in the lifecycle of goods.
Representative `to_state` for adjustments within group. For example, for a group adjustment from `IN_STOCK` to `SOLD`,
the two component adjustments in the group can be from `IN_STOCK` to `COMPOSED` and from `COMPOSED` to `SOLD`.
Here, the representative `to_state` of the `InventoryAdjustmentGroup` is `SOLD`.
See [InventoryState](#type-inventorystate) for possible values
Known values: CUSTOM, IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, RESERVED_FOR_SALE, SOLD_ONLINE, ORDERED_FROM_VENDOR, RECEIVED_FROM_VENDOR, IN_TRANSIT_TO, NONE, WASTE, UNLINKED_RETURN, COMPOSED, DECOMPOSED, SUPPORTED_BY_NEWER_VERSION, IN_TRANSIT, UNTRACKED
Read only: true

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.