Square: Inventory schemas
44 Square schemas with complete fields and constraints.
← Inventory operations · All schemas
Batch Change Inventory — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
changes | JSON | Optional | |
changes (anyOf 1) | array | Alternative | The 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)[] | Model | Each item | Expand Batch Change Inventory — request body — body changes array item |
changes (anyOf 2) | null | Alternative | |
idempotency_key | string | Required within parent | A 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_counts | JSON | Optional | |
ignore_unchanged_counts (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative |
Referenced models: Batch Change Inventory — request body — body changes array item
Batch Change Inventory — request body — body changes array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a single physical count, inventory, adjustment, or transfer that is part of the history of inventory changes for a particular [CatalogObject](entity:CatalogObject) instance. |
adjustment | JSON | Optional | |
adjustment (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
measurement_unit | Model | Optional | Expand 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_id | string | Optional | The ID of the [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change. Read only: true |
physical_count | JSON | Optional | |
physical_count (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_id | string | Optional | The 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_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The Square-generated ID of the [CatalogObject](entity:CatalogObject) being tracked. Maximum length: 100 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_object_type | JSON | Optional | |
catalog_object_type (anyOf 1) | string | Alternative | The [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) | null | Alternative | |
created_at | string | Optional | An RFC 3339-formatted timestamp that indicates when the physical count is received. Maximum length: 34 Read only: true |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Employee](entity:Employee) responsible for the physical count. Maximum length: 100 |
employee_id (anyOf 2) | null | Alternative | |
id | string | Optional | A unique Square-generated ID for the [InventoryPhysicalCount](entity:InventoryPhysicalCount). Maximum length: 100 |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Location](entity:Location) where the related quantity of items is being tracked. Maximum length: 100 |
location_id (anyOf 2) | null | Alternative | |
occurred_at | JSON | Optional | |
occurred_at (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | An optional ID provided by the application to tie the [InventoryPhysicalCount](entity:InventoryPhysicalCount) to an external system. Maximum length: 255 |
reference_id (anyOf 2) | null | Alternative | |
source | Model | Optional | Expand Update Inventory Adjustment — request body — body adjustment source Information about the application with which the physical count is submitted. Read only: true |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Team Member](entity:TeamMember) responsible for the physical count. Maximum length: 100 |
team_member_id (anyOf 2) | null | Alternative |
Referenced models: Update Inventory Adjustment — request body — body adjustment source
Batch Change Inventory — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
changes | array | Optional | Changes created for the request. |
changes[] | Model | Each item | Expand Batch Change Inventory — response body — changes item |
counts | array | Optional | The current counts for all objects referenced in the request. |
counts[] | Model | Each item | Expand Batch Change Inventory — response body — counts item |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a single physical count, inventory, adjustment, or transfer that is part of the history of inventory changes for a particular [CatalogObject](entity:CatalogObject) instance. |
adjustment | JSON | Optional | |
adjustment (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
measurement_unit | Model | Optional | Expand 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_id | string | Optional | The ID of the [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change. Read only: true |
physical_count | JSON | Optional | |
physical_count (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the unit used to measure a `CatalogItemVariation` and specifies the precision for decimal quantities. |
measurement_unit | JSON | Optional | |
measurement_unit (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
precision | JSON | Optional | |
precision (anyOf 1) | JSON | Alternative | |
precision (anyOf 1) (anyOf 1) | integer | Alternative | An 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
precision (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_unit | JSON | Optional | |
area_unit (anyOf 1) | string | Alternative | Unit 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) | null | Alternative | |
custom_unit | JSON | Optional | |
custom_unit (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
generic_unit | JSON | Optional | |
generic_unit (anyOf 1) | string | Alternative | Reserved 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) | null | Alternative | |
length_unit | JSON | Optional | |
length_unit (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
time_unit | JSON | Optional | |
time_unit (anyOf 1) | string | Alternative | Unit 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) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Describes 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) | null | Alternative | |
volume_unit | JSON | Optional | |
volume_unit (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
weight_unit | JSON | Optional | |
weight_unit (anyOf 1) | string | Alternative | Unit 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The information needed to define a custom unit, provided by the seller. |
abbreviation | string | Required within parent | The abbreviation of the custom unit, such as "bsh" (bushel). This appears in the cart for the Point of Sale app, and in reports. |
name | string | Required within parent | The name of the custom unit, for example "bushel". |
Batch Change Inventory — response body — counts item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_at | string | Optional | An 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_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The Square-generated ID of the [CatalogObject](entity:CatalogObject) being tracked. Maximum length: 100 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_object_type | JSON | Optional | |
catalog_object_type (anyOf 1) | string | Alternative | The [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) | null | Alternative | |
is_estimated | boolean | Optional | Whether 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_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Location](entity:Location) where the related quantity of items is being tracked. Maximum length: 100 |
location_id (anyOf 2) | null | Alternative | |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative |
Batch Retrieve Inventory Changes — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
catalog_object_ids | JSON | Optional | |
catalog_object_ids (anyOf 1) | array | Alternative | The filter to return results by `CatalogObject` ID. The filter is only applicable when set. The default value is null. |
catalog_object_ids (anyOf 1)[] | string | Each item | |
catalog_object_ids (anyOf 2) | null | Alternative | |
cursor | JSON | Optional | |
cursor (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
limit | JSON | Optional | |
limit (anyOf 1) | integer | Alternative | The number of [records](entity:InventoryChange) to return. Maximum: 1000 Minimum: 1 |
limit (anyOf 2) | null | Alternative | |
location_ids | JSON | Optional | |
location_ids (anyOf 1) | array | Alternative | The filter to return results by `Location` ID. The filter is only applicable when set. The default value is null. |
location_ids (anyOf 1)[] | string | Each item | |
location_ids (anyOf 2) | null | Alternative | |
reason_ids | JSON | Optional | |
reason_ids (anyOf 1) | array | Alternative | The 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)[] | Model | Each item | Expand Delete Inventory Adjustment Reason — request body — body reason id |
reason_ids (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
states | JSON | Optional | |
states (anyOf 1) | array | Alternative | The filter to return `ADJUSTMENT` query results by `InventoryState`. This filter is only applied when set. The default value is null. |
states (anyOf 1)[] | string | Each item | Indicates 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) | null | Alternative | |
types | JSON | Optional | |
types (anyOf 1) | array | Alternative | The filter to return results by `InventoryChangeType` values other than `TRANSFER`. The default value is `[PHYSICAL_COUNT, ADJUSTMENT]`. |
types (anyOf 1)[] | string | Each item | Indicates how the inventory change was applied to a tracked product quantity. One of: PHYSICAL_COUNT, ADJUSTMENT |
types (anyOf 2) | null | Alternative | |
updated_after | JSON | Optional | |
updated_after (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
updated_before | JSON | Optional | |
updated_before (anyOf 1) | string | Alternative | The 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
field | JSON | Optional | |
field (anyOf 1) | string | Alternative | The field to sort inventory changes by. See [Field](#type-field) for possible values One of: OCCURRED_AT |
field (anyOf 2) | null | Alternative | |
order | JSON | Optional | |
order (anyOf 1) | string | Alternative | The 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) | null | Alternative |
Batch Retrieve Inventory Changes — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
changes | array | Optional | The current calculated inventory changes for the requested objects and locations. |
changes[] | Model | Each item | Expand Batch Change Inventory — response body — changes item |
cursor | string | Optional | The 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. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
catalog_object_ids | JSON | Optional | |
catalog_object_ids (anyOf 1) | array | Alternative | The filter to return results by `CatalogObject` ID. The filter is applicable only when set. The default is null. |
catalog_object_ids (anyOf 1)[] | string | Each item | |
catalog_object_ids (anyOf 2) | null | Alternative | |
cursor | JSON | Optional | |
cursor (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
limit | JSON | Optional | |
limit (anyOf 1) | integer | Alternative | The number of [records](entity:InventoryCount) to return. Maximum: 1000 Minimum: 1 |
limit (anyOf 2) | null | Alternative | |
location_ids | JSON | Optional | |
location_ids (anyOf 1) | array | Alternative | The filter to return results by `Location` ID. This filter is applicable only when set. The default is null. |
location_ids (anyOf 1)[] | string | Each item | |
location_ids (anyOf 2) | null | Alternative | |
states | JSON | Optional | |
states (anyOf 1) | array | Alternative | The 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)[] | string | Each item | Indicates 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) | null | Alternative | |
updated_after | JSON | Optional | |
updated_after (anyOf 1) | string | Alternative | The 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) | null | Alternative |
Batch Retrieve Inventory Counts — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
counts | array | Optional | The current calculated inventory counts for the requested objects and locations. |
counts[] | Model | Each item | Expand Batch Change Inventory — response body — counts item |
cursor | string | Optional | The 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. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an input to a call to [CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason). |
adjustment_reason | Model | Required within parent | Expand Create Inventory Adjustment Reason — request body — body adjustment reason The custom inventory adjustment reason to create. Only custom adjustment reasons can be created. |
idempotency_key | string | Required within parent | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an inventory adjustment reason. |
created_at | string | Optional | An 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 |
direction | JSON | Optional | |
direction (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
id | Model | Required within parent | Expand Delete Inventory Adjustment Reason — request body — body reason id The identifier for this inventory adjustment reason. |
is_deleted | JSON | Optional | |
is_deleted (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
updated_at | string | Optional | An 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason). |
adjustment_reason | Model | Optional | Expand Create Inventory Adjustment Reason — response body — adjustment reason The successfully created inventory adjustment reason. |
errors | array | Optional | Errors encountered when the request fails. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an inventory adjustment reason. |
created_at | string | Optional | An 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 |
direction | JSON | Optional | |
direction (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
id | Model | Required within parent | Expand Create Inventory Adjustment Reason — response body — adjustment reason id The identifier for this inventory adjustment reason. |
is_deleted | JSON | Optional | |
is_deleted (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
updated_at | string | Optional | An 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Identifies a standard or custom inventory adjustment reason. |
custom_reason_id | JSON | Optional | |
custom_reason_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
type | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an input to a call to [DeleteInventoryAdjustmentReason](api-endpoint:Inventory-DeleteInventoryAdjustmentReason). |
reason_id | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Identifies a standard or custom inventory adjustment reason. |
custom_reason_id | JSON | Optional | |
custom_reason_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
type | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [DeleteInventoryAdjustmentReason](api-endpoint:Inventory-DeleteInventoryAdjustmentReason). |
adjustment_reason | Model | Optional | Expand Create Inventory Adjustment Reason — response body — adjustment reason The successfully soft-deleted inventory adjustment reason. |
errors | array | Optional | Errors encountered when the request fails. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [ListInventoryAdjustmentReasons](api-endpoint:Inventory-ListInventoryAdjustmentReasons). |
adjustment_reasons | array | Optional | The standard, system-generated, and custom inventory adjustment reasons available to the seller. |
adjustment_reasons[] | Model | Each item | Expand Create Inventory Adjustment Reason — response body — adjustment reason |
errors | array | Optional | Errors encountered when the request fails. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an input to a call to [RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason). |
reason_id | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason). |
adjustment_reason | Model | Optional | Expand Create Inventory Adjustment Reason — response body — adjustment reason The successfully restored inventory adjustment reason. |
errors | array | Optional | Errors encountered when the request fails. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an input to a call to [RetrieveInventoryAdjustmentReason](api-endpoint:Inventory-RetrieveInventoryAdjustmentReason). |
reason_id | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [RetrieveInventoryAdjustmentReason](api-endpoint:Inventory-RetrieveInventoryAdjustmentReason). |
adjustment_reason | Model | Optional | Expand 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`. |
errors | array | Optional | Errors encountered when the request fails. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
adjustment | Model | Optional | Expand Update Inventory Adjustment — response body — adjustment The requested [InventoryAdjustment](entity:InventoryAdjustment). |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
changes | array | Optional | The set of inventory changes for the requested object and locations. |
changes[] | Model | Each item | Expand Batch Change Inventory — response body — changes item |
cursor | string | Optional | The 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. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
counts | array | Optional | The current calculated inventory counts for the requested object and locations. |
counts[] | Model | Each item | Expand Batch Change Inventory — response body — counts item |
cursor | string | Optional | The 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. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
count | Model | Optional | Expand Retrieve Inventory Physical Count — response body — count The requested [InventoryPhysicalCount](entity:InventoryPhysicalCount). |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_id | string | Optional | The 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_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The Square-generated ID of the [CatalogObject](entity:CatalogObject) being tracked. Maximum length: 100 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_object_type | JSON | Optional | |
catalog_object_type (anyOf 1) | string | Alternative | The [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) | null | Alternative | |
created_at | string | Optional | An RFC 3339-formatted timestamp that indicates when the physical count is received. Maximum length: 34 Read only: true |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Employee](entity:Employee) responsible for the physical count. Maximum length: 100 |
employee_id (anyOf 2) | null | Alternative | |
id | string | Optional | A unique Square-generated ID for the [InventoryPhysicalCount](entity:InventoryPhysicalCount). Maximum length: 100 |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Location](entity:Location) where the related quantity of items is being tracked. Maximum length: 100 |
location_id (anyOf 2) | null | Alternative | |
occurred_at | JSON | Optional | |
occurred_at (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | An optional ID provided by the application to tie the [InventoryPhysicalCount](entity:InventoryPhysicalCount) to an external system. Maximum length: 255 |
reference_id (anyOf 2) | null | Alternative | |
source | Model | Optional | Expand Retrieve Inventory Physical Count — response body — count source Information about the application with which the physical count is submitted. Read only: true |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Team Member](entity:TeamMember) responsible for the physical count. Maximum length: 100 |
team_member_id (anyOf 2) | null | Alternative |
Referenced models: Retrieve Inventory Physical Count — response body — count source
Retrieve Inventory Physical Count — response body — count source
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents information about the application used to generate a change. |
application_id | JSON | Optional | |
application_id (anyOf 1) | string | Alternative | __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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | __Read only__ The display name of the application (for example, `"Custom Application"` or `"Square POS 4.74 for Android"`). |
name (anyOf 2) | null | Alternative | |
product | JSON | Optional | |
product (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative |
Update Inventory Adjustment Reason — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an input to a call to [UpdateInventoryAdjustmentReason](api-endpoint:Inventory-UpdateInventoryAdjustmentReason). |
adjustment_reason | Model | Required within parent | Expand 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_id | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [UpdateInventoryAdjustmentReason](api-endpoint:Inventory-UpdateInventoryAdjustmentReason). |
adjustment_reason | Model | Optional | Expand Create Inventory Adjustment Reason — response body — adjustment reason The successfully updated inventory adjustment reason. |
errors | array | Optional | Errors encountered when the request fails. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
adjustment | Model | Required within parent | Expand 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_key | string | Required within parent | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a change in state or quantity of product inventory at a particular time and location. |
adjustment_group | Model | Optional | Expand 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_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The Square-generated ID of the [CatalogObject](entity:CatalogObject) being tracked. Maximum length: 100 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_object_type | JSON | Optional | |
catalog_object_type (anyOf 1) | string | Alternative | The [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) | null | Alternative | |
cost_money | JSON | Optional | |
cost_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
created_at | string | Optional | An RFC 3339-formatted timestamp that indicates when the inventory adjustment is received. Maximum length: 34 Read only: true |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Employee](entity:Employee) responsible for the inventory adjustment. Maximum length: 100 |
employee_id (anyOf 2) | null | Alternative | |
from_location_id | JSON | Optional | |
from_location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
from_state | JSON | Optional | |
from_state (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
goods_receipt_id | string | Optional | The 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 |
id | string | Optional | A unique ID generated by Square for the `InventoryAdjustment`. Maximum length: 100 |
occurred_at | JSON | Optional | |
occurred_at (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
physical_count_id | string | Optional | The 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_id | string | Optional | The 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 |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
reason_id | JSON | Optional | |
reason_id (anyOf 1) | Model | Alternative | Expand Delete Inventory Adjustment Reason — request body — body reason id Identifies the reason for this inventory adjustment. |
reason_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | An optional ID provided by the application to tie the `InventoryAdjustment` to an external system. Maximum length: 255 |
reference_id (anyOf 2) | null | Alternative | |
refund_id | string | Optional | The 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 |
source | Model | Optional | Expand Update Inventory Adjustment — request body — body adjustment source Information about the application that caused the inventory adjustment. Read only: true |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Team Member](entity:TeamMember) responsible for the inventory adjustment. Maximum length: 100 |
team_member_id (anyOf 2) | null | Alternative | |
to_location_id | JSON | Optional | |
to_location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
to_state | JSON | Optional | |
to_state (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
total_price_money | Model | Optional | Expand 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_id | string | Optional | The 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_id | JSON | Optional | |
vendor_id (anyOf 1) | string | Alternative | The 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
from_state | string | Optional | Indicates 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 |
id | string | Optional | A unique ID generated by Square for the `InventoryAdjustmentGroup`. Maximum length: 100 Read only: true |
root_adjustment_id | string | Optional | The inventory adjustment of the composed variation. Maximum length: 100 Read only: true |
to_state | string | Optional | Indicates 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents information about the application used to generate a change. |
application_id | JSON | Optional | |
application_id (anyOf 1) | string | Alternative | __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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | __Read only__ The display name of the application (for example, `"Custom Application"` or `"Square POS 4.74 for Android"`). |
name (anyOf 2) | null | Alternative | |
product | JSON | Optional | |
product (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative |
Update Inventory Adjustment — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
adjustment | Model | Optional | Expand Update Inventory Adjustment — response body — adjustment The newly updated adjustment. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a change in state or quantity of product inventory at a particular time and location. |
adjustment_group | Model | Optional | Expand 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_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The Square-generated ID of the [CatalogObject](entity:CatalogObject) being tracked. Maximum length: 100 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_object_type | JSON | Optional | |
catalog_object_type (anyOf 1) | string | Alternative | The [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) | null | Alternative | |
cost_money | JSON | Optional | |
cost_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
created_at | string | Optional | An RFC 3339-formatted timestamp that indicates when the inventory adjustment is received. Maximum length: 34 Read only: true |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Employee](entity:Employee) responsible for the inventory adjustment. Maximum length: 100 |
employee_id (anyOf 2) | null | Alternative | |
from_location_id | JSON | Optional | |
from_location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
from_state | JSON | Optional | |
from_state (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
goods_receipt_id | string | Optional | The 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 |
id | string | Optional | A unique ID generated by Square for the `InventoryAdjustment`. Maximum length: 100 |
occurred_at | JSON | Optional | |
occurred_at (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
physical_count_id | string | Optional | The 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_id | string | Optional | The 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 |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
reason_id | JSON | Optional | |
reason_id (anyOf 1) | Model | Alternative | Expand Create Inventory Adjustment Reason — response body — adjustment reason id Identifies the reason for this inventory adjustment. |
reason_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | An optional ID provided by the application to tie the `InventoryAdjustment` to an external system. Maximum length: 255 |
reference_id (anyOf 2) | null | Alternative | |
refund_id | string | Optional | The 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 |
source | Model | Optional | Expand Retrieve Inventory Physical Count — response body — count source Information about the application that caused the inventory adjustment. Read only: true |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The Square-generated ID of the [Team Member](entity:TeamMember) responsible for the inventory adjustment. Maximum length: 100 |
team_member_id (anyOf 2) | null | Alternative | |
to_location_id | JSON | Optional | |
to_location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
to_state | JSON | Optional | |
to_state (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
total_price_money | Model | Optional | Expand 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_id | string | Optional | The 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_id | JSON | Optional | |
vendor_id (anyOf 1) | string | Alternative | The 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
from_state | string | Optional | Indicates 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 |
id | string | Optional | A unique ID generated by Square for the `InventoryAdjustmentGroup`. Maximum length: 100 Read only: true |
root_adjustment_id | string | Optional | The inventory adjustment of the composed variation. Maximum length: 100 Read only: true |
to_state | string | Optional | Indicates 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 |