Square: Catalog schemas (part 1)
39 Square schemas with complete fields and constraints.
← Catalog operations · All schemas
Batch Delete Catalog Objects — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
object_ids | array | Required within parent | The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a CatalogItem will delete its CatalogItemVariation. |
object_ids[] | string | Each item |
Batch Delete Catalog Objects — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
deleted_at | string | Optional | The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., "2016-09-04T23:59:33.123Z". |
deleted_object_ids | array | Optional | The IDs of all CatalogObjects deleted by this request. |
deleted_object_ids[] | string | Each 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 Retrieve Catalog Objects — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The specific version of the catalog objects to be included in the response. This allows you to retrieve historical versions of objects. The specified version value is matched against the [CatalogObject](entity:CatalogObject)s' `version` attribute. If not included, results will be from the current version of the catalog. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
include_category_path_to_root | JSON | Optional | |
include_category_path_to_root (anyOf 1) | boolean | Alternative | Specifies whether or not to include the `path_to_root` list for each returned category instance. The `path_to_root` list consists of `CategoryPathToRootNode` objects and specifies the path that starts with the immediate parent category of the returned category and ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned in the response payload. |
include_category_path_to_root (anyOf 2) | null | Alternative | |
include_deleted_objects | JSON | Optional | |
include_deleted_objects (anyOf 1) | boolean | Alternative | Indicates whether to include (`true`) or not (`false`) in the response deleted objects, namely, those with the `is_deleted` attribute set to `true`. |
include_deleted_objects (anyOf 2) | null | Alternative | |
include_options | JSON | Optional | |
include_options (anyOf 1) | Model | Alternative | Expand Search Catalog Items — request body — body include options Options to include related resources in the response. |
include_options (anyOf 2) | null | Alternative | |
include_related_objects | JSON | Optional | |
include_related_objects (anyOf 1) | boolean | Alternative | If `true`, the response will include additional objects that are related to the requested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field of the response. These objects are put in the `related_objects` field. Setting this to `true` is helpful when the objects are needed for immediate display to a user. This process only goes one level deep. Objects referenced by the related objects will not be included. For example, if the `objects` field of the response contains a CatalogItem, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. Default value: `false` |
include_related_objects (anyOf 2) | null | Alternative | |
object_ids | array | Required within parent | The IDs of the CatalogObjects to be retrieved. |
object_ids[] | string | Each item |
Referenced models: Search Catalog Items — request body — body include options
Batch Retrieve Catalog Objects — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
included_resources | Model | Optional | Expand Search Catalog Items — response body — included resources A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field and specifically requested. |
objects | array | Optional | A list of [CatalogObject](entity:CatalogObject)s returned. |
objects[] | Model | Each item | Expand Create Catalog Image — response body — image |
related_objects | array | Optional | A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field. |
related_objects[] | Model | Each item | Expand Create Catalog Image — response body — image |
Referenced models: Create Catalog Image — response body — image, Get Shift — response body — errors item, Search Catalog Items — response body — included resources
Batch Upsert Catalog Objects — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
batches | array | Required within parent | A batch of CatalogObjects to be inserted/updated atomically. The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error in one batch will not affect other batches within the same request. For each object, its `updated_at` field is ignored and replaced with a current [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), and its `is_deleted` field must not be set to `true`. To modify an existing object, supply its ID. To create a new object, use an ID starting with `#`. These IDs may be used to create relationships between an object and attributes of other objects that reference it. For example, you can create a CatalogItem with ID `#ABC` and a CatalogItemVariation with its `item_id` attribute set to `#ABC` in order to associate the CatalogItemVariation with its parent CatalogItem. Any `#`-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs. Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will be inserted or updated. |
batches[] | Model | Each item | Expand Batch Upsert Catalog Objects — request body — body batches item |
idempotency_key | string | Required within parent | A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you're unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information. Maximum length: 128 Minimum length: 1 |
Referenced models: Batch Upsert Catalog Objects — request body — body batches item
Batch Upsert Catalog Objects — request body — body batches item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A batch of catalog objects. |
objects | array | Required within parent | A list of CatalogObjects belonging to this batch. |
objects[] | Model | Each item | Expand Upsert Catalog Object — request body — body object |
Referenced models: Upsert Catalog Object — request body — body object
Batch Upsert Catalog Objects — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
id_mappings | array | Optional | The mapping between client and server IDs for this upsert. |
id_mappings[] | Model | Each item | Expand Upsert Catalog Object — response body — id mappings item |
objects | array | Optional | The created successfully created CatalogObjects. |
objects[] | Model | Each item | Expand Create Catalog Image — response body — image |
updated_at | string | Optional | The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., "2016-09-04T23:59:33.123Z". |
Referenced models: Upsert Catalog Object — response body — id mappings item, Create Catalog Image — response body — image, Get Shift — response body — errors item
Catalog Info — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
limits | Model | Optional | Expand Catalog Info — response body — limits Limits that apply to this API. |
standard_unit_description_group | Model | Optional | Expand Catalog Info — response body — standard unit description group Names and abbreviations for standard units. |
Referenced models: Catalog Info — response body — limits, Get Shift — response body — errors item, Catalog Info — response body — standard unit description group
Catalog Info — response body — limits
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
batch_delete_max_object_ids | JSON | Optional | |
batch_delete_max_object_ids (anyOf 1) | JSON | Alternative | |
batch_delete_max_object_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of object IDs that may be included in a single `/v2/catalog/batch-delete` request. |
batch_delete_max_object_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_delete_max_object_ids (anyOf 2) | null | Alternative | |
batch_retrieve_max_object_ids | JSON | Optional | |
batch_retrieve_max_object_ids (anyOf 1) | JSON | Alternative | |
batch_retrieve_max_object_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of object IDs that may appear in a `/v2/catalog/batch-retrieve` request. |
batch_retrieve_max_object_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_retrieve_max_object_ids (anyOf 2) | null | Alternative | |
batch_upsert_max_objects_per_batch | JSON | Optional | |
batch_upsert_max_objects_per_batch (anyOf 1) | JSON | Alternative | |
batch_upsert_max_objects_per_batch (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of objects that may appear within a single batch in a `/v2/catalog/batch-upsert` request. |
batch_upsert_max_objects_per_batch (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_upsert_max_objects_per_batch (anyOf 2) | null | Alternative | |
batch_upsert_max_total_objects | JSON | Optional | |
batch_upsert_max_total_objects (anyOf 1) | JSON | Alternative | |
batch_upsert_max_total_objects (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of objects that may appear across all batches in a `/v2/catalog/batch-upsert` request. |
batch_upsert_max_total_objects (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_upsert_max_total_objects (anyOf 2) | null | Alternative | |
search_max_page_limit | JSON | Optional | |
search_max_page_limit (anyOf 1) | JSON | Alternative | |
search_max_page_limit (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of results that may be returned in a page of a `/v2/catalog/search` response. |
search_max_page_limit (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
search_max_page_limit (anyOf 2) | null | Alternative | |
update_item_modifier_lists_max_item_ids | JSON | Optional | |
update_item_modifier_lists_max_item_ids (anyOf 1) | JSON | Alternative | |
update_item_modifier_lists_max_item_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-modifier-lists` request. |
update_item_modifier_lists_max_item_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_modifier_lists_max_item_ids (anyOf 2) | null | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_disable | JSON | Optional | |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 1) | JSON | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of modifier list IDs to be disabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 2) | null | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_enable | JSON | Optional | |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 1) | JSON | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of modifier list IDs to be enabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 2) | null | Alternative | |
update_item_taxes_max_item_ids | JSON | Optional | |
update_item_taxes_max_item_ids (anyOf 1) | JSON | Alternative | |
update_item_taxes_max_item_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-taxes` request. |
update_item_taxes_max_item_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_taxes_max_item_ids (anyOf 2) | null | Alternative | |
update_item_taxes_max_taxes_to_disable | JSON | Optional | |
update_item_taxes_max_taxes_to_disable (anyOf 1) | JSON | Alternative | |
update_item_taxes_max_taxes_to_disable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of tax IDs to be disabled that may be included in a single `/v2/catalog/update-item-taxes` request. |
update_item_taxes_max_taxes_to_disable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_taxes_max_taxes_to_disable (anyOf 2) | null | Alternative | |
update_item_taxes_max_taxes_to_enable | JSON | Optional | |
update_item_taxes_max_taxes_to_enable (anyOf 1) | JSON | Alternative | |
update_item_taxes_max_taxes_to_enable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of tax IDs to be enabled that may be included in a single `/v2/catalog/update-item-taxes` request. |
update_item_taxes_max_taxes_to_enable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_taxes_max_taxes_to_enable (anyOf 2) | null | Alternative |
Catalog Info — response body — standard unit description group
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Group of standard measurement units. |
language_code | JSON | Optional | |
language_code (anyOf 1) | string | Alternative | IETF language tag. |
language_code (anyOf 2) | null | Alternative | |
standard_unit_descriptions | JSON | Optional | |
standard_unit_descriptions (anyOf 1) | array | Alternative | List of standard (non-custom) measurement units in this description group. |
standard_unit_descriptions (anyOf 1)[] | Model | Each item | Expand Catalog Info — response body — standard unit description group standard unit descriptions array item |
standard_unit_descriptions (anyOf 2) | null | Alternative |
Referenced models: Catalog Info — response body — standard unit description group standard unit descriptions array item
Catalog Info — response body — standard unit description group standard unit descriptions array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains the name and abbreviation for standard measurement unit. |
abbreviation | JSON | Optional | |
abbreviation (anyOf 1) | string | Alternative | UI display abbreviation for the measurement unit. For example, 'lb'. |
abbreviation (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | UI display name of the measurement unit. For example, 'Pound'. |
name (anyOf 2) | null | Alternative | |
unit | JSON | Optional | |
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 Identifies the measurement unit being described. |
unit (anyOf 2) | null | Alternative |
Create Catalog Image — request body — body request
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
idempotency_key | string | Required within parent | A unique string that identifies this CreateCatalogImage request. Keys can be any valid string but must be unique for every CreateCatalogImage request. See [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information. Maximum length: 128 Minimum length: 1 |
image | Model | Required within parent | Expand Upsert Catalog Object — request body — body object The new `CatalogObject` of the `IMAGE` type, namely, a `CatalogImage` object, to encapsulate the specified image file. |
is_primary | boolean | Optional | If this is set to `true`, the image created will be the primary, or first image of the object referenced by `object_id`. If the `CatalogObject` already has a primary `CatalogImage`, setting this field to `true` will replace the primary image. If this is set to `false` and you use the Square API version 2021-12-15 or later, the image id will be appended to the list of `image_ids` on the object. With Square API version 2021-12-15 or later, the default value is `false`. Otherwise, the effective default value is `true`. |
object_id | string | Optional | Unique ID of the `CatalogObject` to attach this `CatalogImage` object to. Leave this field empty to create unattached images, for example if you are building an integration where an image can be attached to catalog items at a later time. |
Referenced models: Upsert Catalog Object — request body — body object
Create Catalog Image — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
image | Model | Optional | Expand Create Catalog Image — response body — image The newly created `CatalogImage` including a Square-generated URL for the encapsulated image file. |
Referenced models: Create Catalog Image — response body — image, Get Shift — response body — errors item
Create Catalog Image — response body — image
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The wrapper object for the catalog entries of a given object type. Depending on the `type` attribute value, a `CatalogObject` instance assumes a type-specific data to yield the corresponding type of catalog object. For example, if `type=ITEM`, the `CatalogObject` instance must have the ITEM-specific data set on the `item_data` attribute. The resulting `CatalogObject` instance is also a `CatalogItem` instance. In general, if `type=<OBJECT_TYPE>`, the `CatalogObject` instance must have the `<OBJECT_TYPE>`-specific data set on the `<object_type>_data` attribute. The resulting `CatalogObject` instance is also a `Catalog<ObjectType>` instance. For a more detailed discussion of the Catalog data model, please see the [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide. |
absent_at_location_ids | JSON | Optional | |
absent_at_location_ids (anyOf 1) | array | Alternative | Locations where the object is not present, used when `present_at_all_locations` is true. When `present_at_all_locations` is false, this field is ignored since the object is already absent everywhere except those in `present_at_location_ids`. Can include deactivated locations. Empty strings are rejected. |
absent_at_location_ids (anyOf 1)[] | string | Each item | |
absent_at_location_ids (anyOf 2) | null | Alternative | |
availability_period_data | JSON | Optional | |
availability_period_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image availability period data Represents a time period of availability Structured data for a `CatalogAvailabilityPeriod`, set for CatalogObjects of type `AVAILABILITY_PERIOD`. |
availability_period_data (anyOf 2) | null | Alternative | |
catalog_v1_ids | JSON | Optional | |
catalog_v1_ids (anyOf 1) | array | Alternative | The Connect v1 IDs for this object at each location where it is present, where they differ from the object's Connect V2 ID. The field will only be present for objects that have been created or modified by legacy APIs. |
catalog_v1_ids (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image catalog v1 ids array item |
catalog_v1_ids (anyOf 2) | null | Alternative | |
category_data | JSON | Optional | |
category_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category Structured data for a `CatalogCategory`, set for CatalogObjects of type `CATEGORY`. |
category_data (anyOf 2) | null | Alternative | |
custom_attribute_definition_data | JSON | Optional | |
custom_attribute_definition_data (anyOf 1) | Model | Alternative | Expand CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION Structured data for a `CatalogCustomAttributeDefinition`, set for CatalogObjects of type `CUSTOM_ATTRIBUTE_DEFINITION`. |
custom_attribute_definition_data (anyOf 2) | null | Alternative | |
custom_attribute_values | JSON | Optional | |
custom_attribute_values (anyOf 1) | object | Alternative | A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) object defined by the application making the request. If the `CatalogCustomAttributeDefinition` object is defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"` if the application making the request is different from the application defining the custom attribute definition. Otherwise, the key used in the map is simply `"cocoa_brand"`. Application-defined custom attributes are set at a global (location-independent) level. Custom attribute values are intended to store additional information about a catalog object or associations with an entity in another system. Do not use custom attributes to store any sensitive information (personally identifiable information, card details, etc.). Additional keys: see wildcard field |
custom_attribute_values (anyOf 1).* | Model | Additional keys | Expand Create Catalog Image — response body — image custom attribute values object value |
custom_attribute_values (anyOf 2) | null | Alternative | |
discount_data | JSON | Optional | |
discount_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image discount data A discount applicable to items Structured data for a `CatalogDiscount`, set for CatalogObjects of type `DISCOUNT`. |
discount_data (anyOf 2) | null | Alternative | |
id | string | Required within parent | An identifier to reference this object in the catalog. When a new `CatalogObject` is inserted, the client should set the id to a temporary identifier starting with a "`#`" character. Other objects being inserted or updated within the same request may use this identifier to refer to the new object. When the server receives the new object, it will supply a unique identifier that replaces the temporary identifier for all future references. Minimum length: 1 |
image_data | JSON | Optional | |
image_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image image data caption, name, photo studio order id, url Structured data for a `CatalogImage`, set for CatalogObjects of type `IMAGE`. |
image_data (anyOf 2) | null | Alternative | |
is_deleted | JSON | Optional | |
is_deleted (anyOf 1) | boolean | Alternative | If `true`, the object has been deleted from the database. Must be `false` for new objects being inserted. When deleted, the `updated_at` field will equal the deletion time. |
is_deleted (anyOf 2) | null | Alternative | |
item_data | JSON | Optional | |
item_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations Structured data for a `CatalogItem`, set for CatalogObjects of type `ITEM`. |
item_data (anyOf 2) | null | Alternative | |
item_option_data | JSON | Optional | |
item_option_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image item option data A group of variations for a `Catalog Item` Structured data for a `CatalogItemOption`, set for CatalogObjects of type `ITEM_OPTION`. |
item_option_data (anyOf 2) | null | Alternative | |
item_option_value_data | JSON | Optional | |
item_option_value_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image item option value data An enumerated value that can link a Structured data for a `CatalogItemOptionValue`, set for CatalogObjects of type `ITEM_OPTION_VAL`. |
item_option_value_data (anyOf 2) | null | Alternative | |
item_variation_data | JSON | Optional | |
item_variation_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information Structured data for a `CatalogItemVariation`, set for CatalogObjects of type `ITEM_VARIATION`. |
item_variation_data (anyOf 2) | null | Alternative | |
measurement_unit_data | JSON | Optional | |
measurement_unit_data (anyOf 1) | Model | Alternative | Expand Batch Change Inventory — response body — changes item measurement unit Structured data for a `CatalogMeasurementUnit`, set for CatalogObjects of type `MEASUREMENT_UNIT`. |
measurement_unit_data (anyOf 2) | null | Alternative | |
modifier_data | JSON | Optional | |
modifier_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image modifier data child modifier list ids, hidden online, image id, kitchen color, kitchen name, location overrides, modifier list id, name, on by default, ordinal, price money Structured data for a `CatalogModifier`, set for CatalogObjects of type `MODIFIER`. |
modifier_data (anyOf 2) | null | Alternative | |
modifier_list_data | JSON | Optional | |
modifier_list_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image modifier list data allow quantities, hidden from customer, image ids, internal name, is conversational, max length, max selected modifiers, min selected modifiers, modifier type, modifiers, name, ordinal, selection type, text required Structured data for a `CatalogModifierList`, set for CatalogObjects of type `MODIFIER_LIST`. |
modifier_list_data (anyOf 2) | null | Alternative | |
present_at_all_locations | JSON | Optional | |
present_at_all_locations (anyOf 1) | boolean | Alternative | Controls whether this object is present at all locations, including future locations. Most object types have independent location control, including `TAX`, `DISCOUNT`, and `MODIFIER_LIST`. `ITEM` and `ITEM_VARIATION` have separate settings, but a variation can only be enabled at locations where its parent item is enabled. Disabling a variation everywhere is valid even when the parent item is enabled at specific locations. `MODIFIER` objects nested within a `MODIFIER_LIST` inherit location settings from their parent. Some object types, including `CATEGORY`, `IMAGE`, and `CUSTOM_ATTRIBUTE_DEFINITION`, must always be globally enabled and cannot use location-specific fields. The field operates in two modes. When true (the default), the object is available at all current and future locations except those in `absent_at_location_ids`. When false, the object is available only at locations in `present_at_location_ids`. The unused list in each mode is ignored. |
present_at_all_locations (anyOf 2) | null | Alternative | |
present_at_location_ids | JSON | Optional | |
present_at_location_ids (anyOf 1) | array | Alternative | Locations where the object is present, used when `present_at_all_locations` is false. When `present_at_all_locations` is true, this field is ignored since the object is already present everywhere. Can include deactivated locations. Empty strings are rejected. |
present_at_location_ids (anyOf 1)[] | string | Each item | |
present_at_location_ids (anyOf 2) | null | Alternative | |
pricing_rule_data | JSON | Optional | |
pricing_rule_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image pricing rule data apply products id, customer group ids any, discount id, exclude products id, exclude strategy, match products id, minimum order subtotal money, name, time period ids, valid from date, valid from local time, valid until date, valid until local time Structured data for a `CatalogPricingRule`, set for CatalogObjects of type `PRICING_RULE`. A `CatalogPricingRule` object often works with a `CatalogProductSet` object or a `CatalogTimePeriod` object. |
pricing_rule_data (anyOf 2) | null | Alternative | |
product_set_data | JSON | Optional | |
product_set_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image product set data all products, name, product ids all, product ids any, quantity exact, quantity max, quantity min Structured data for a `CatalogProductSet`, set for CatalogObjects of type `PRODUCT_SET`. |
product_set_data (anyOf 2) | null | Alternative | |
quick_amounts_settings_data | JSON | Optional | |
quick_amounts_settings_data (anyOf 1) | Model | Alternative | Expand CreateCatalogImage — response body — image / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO Structured data for a `CatalogQuickAmountsSettings`, set for CatalogObjects of type `QUICK_AMOUNTS_SETTINGS`. |
quick_amounts_settings_data (anyOf 2) | null | Alternative | |
subscription_plan_data | JSON | Optional | |
subscription_plan_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image subscription plan data all items, eligible category ids, eligible item ids, name, phases, subscription plan variations Structured data for a `CatalogSubscriptionPlan`, set for CatalogObjects of type `SUBSCRIPTION_PLAN`. |
subscription_plan_data (anyOf 2) | null | Alternative | |
subscription_plan_variation_data | JSON | Optional | |
subscription_plan_variation_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id Structured data for a `CatalogSubscriptionPlanVariation`, set for CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`. |
subscription_plan_variation_data (anyOf 2) | null | Alternative | |
tax_data | JSON | Optional | |
tax_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image tax data A tax applicable to an item Structured data for a `CatalogTax`, set for CatalogObjects of type `TAX`. |
tax_data (anyOf 2) | null | Alternative | |
time_period_data | JSON | Optional | |
time_period_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image time period data event Structured data for a `CatalogTimePeriod`, set for CatalogObjects of type `TIME_PERIOD`. |
time_period_data (anyOf 2) | null | Alternative | |
type | Model | Required within parent | Expand Create Catalog Image — response body — image type The type of this object. Each object type has expected properties expressed in a structured format within its corresponding `*_data` field below. See [CatalogObjectType](#type-catalogobjecttype) for possible values |
updated_at | string | Optional | Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"` would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The version of the object. When updating an object, the version supplied should match the version in the database. If it does not, the server attempts a three-way merge. If the client's changes and the concurrent changes don't overlap, the merge succeeds silently. A `VERSION_MISMATCH` error is only returned when both sides changed the same field to different values. Use the same API version (`Square-Version` header) for both reading and writing catalog objects. The server uses the API version on a write request to determine which missing fields the client intentionally cleared versus which fields the client simply could not see at that version. If a client reads an object at an older API version and writes it back at a newer version, fields that were introduced between those two versions will be absent from the request, and the server will interpret that absence as an intentional clear. Format: int64 |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Create Catalog Image — response body — image image data caption, name, photo studio order id, url, Create Catalog Image — response body — image time period data event, Create Catalog Image — response body — image catalog v1 ids array item, Create Catalog Image — response body — image availability period data Represents a time period of availability, Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category, CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION, Create Catalog Image — response body — image custom attribute values object value, Create Catalog Image — response body — image discount data A discount applicable to items, Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations, Create Catalog Image — response body — image item option data A group of variations for a `Catalog Item`, Create Catalog Image — response body — image item option value data An enumerated value that can link a, Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information, Batch Change Inventory — response body — changes item measurement unit, Create Catalog Image — response body — image modifier data child modifier list ids, hidden online, image id, kitchen color, kitchen name, location overrides, modifier list id, name, on by default, ordinal, price money, Create Catalog Image — response body — image modifier list data allow quantities, hidden from customer, image ids, internal name, is conversational, max length, max selected modifiers, min selected modifiers, modifier type, modifiers, name, ordinal, selection type, text required, Create Catalog Image — response body — image type, Create Catalog Image — response body — image pricing rule data apply products id, customer group ids any, discount id, exclude products id, exclude strategy, match products id, minimum order subtotal money, name, time period ids, valid from date, valid from local time, valid until date, valid until local time, Create Catalog Image — response body — image product set data all products, name, product ids all, product ids any, quantity exact, quantity max, quantity min, CreateCatalogImage — response body — image / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO, Create Catalog Image — response body — image subscription plan data all items, eligible category ids, eligible item ids, name, phases, subscription plan variations, Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id, Create Catalog Image — response body — image tax data A tax applicable to an item
Create Catalog Image — response body — image availability period data Represents a time period of availability
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a time period of availability. |
day_of_week | JSON | Optional | |
day_of_week (anyOf 1) | string | Alternative | Indicates the specific day of the week. The day of the week for this availability period. See [DayOfWeek](#type-dayofweek) for possible values Known values: SUN, MON, TUE, WED, THU, FRI, SAT |
day_of_week (anyOf 2) | null | Alternative | |
end_local_time | JSON | Optional | |
end_local_time (anyOf 1) | string | Alternative | The end time of an availability period, specified in local time using partial-time RFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
end_local_time (anyOf 2) | null | Alternative | |
start_local_time | JSON | Optional | |
start_local_time (anyOf 1) | string | Alternative | The start time of an availability period, specified in local time using partial-time RFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
start_local_time (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image catalog v1 ids array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A Square API V1 identifier of an item, including the object ID and its associated location ID. |
catalog_v1_id | JSON | Optional | |
catalog_v1_id (anyOf 1) | string | Alternative | The ID for an object used in the Square API V1, if the object ID differs from the Square API V2 object ID. |
catalog_v1_id (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the `Location` this Connect V1 ID is associated with. |
location_id (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A category to which a `CatalogItem` instance belongs. |
availability_period_ids | JSON | Optional | |
availability_period_ids (anyOf 1) | array | Alternative | The IDs of the `CatalogAvailabilityPeriod` objects associated with the category. |
availability_period_ids (anyOf 1)[] | string | Each item | |
availability_period_ids (anyOf 2) | null | Alternative | |
category_type | JSON | Optional | |
category_type (anyOf 1) | string | Alternative | Indicates the type of a category. The type of the category. See [CatalogCategoryType](#type-catalogcategorytype) for possible values Known values: REGULAR_CATEGORY, MENU_CATEGORY, KITCHEN_CATEGORY |
category_type (anyOf 2) | null | Alternative | |
channels | JSON | Optional | |
channels (anyOf 1) | array | Alternative | A list of IDs representing channels, such as a Square Online site, where the category can be made visible. |
channels (anyOf 1)[] | string | Each item | |
channels (anyOf 2) | null | Alternative | |
ecom_seo_data | JSON | Optional | |
ecom_seo_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store The SEO data for a seller's Square Online store. |
ecom_seo_data (anyOf 2) | null | Alternative | |
image_ids | JSON | Optional | |
image_ids (anyOf 1) | array | Alternative | The IDs of images associated with this `CatalogCategory` instance. Currently these images are not displayed by Square, but are free to be displayed in 3rd party applications. |
image_ids (anyOf 1)[] | string | Each item | |
image_ids (anyOf 2) | null | Alternative | |
is_top_level | JSON | Optional | |
is_top_level (anyOf 1) | boolean | Alternative | Indicates whether a category is a top level category, which does not have any parent_category. |
is_top_level (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The category name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
online_visibility | JSON | Optional | |
online_visibility (anyOf 1) | boolean | Alternative | Indicates whether the category is visible (`true`) or hidden (`false`) on all of the seller's Square Online sites. |
online_visibility (anyOf 2) | null | Alternative | |
parent_category | JSON | Optional | |
parent_category (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category parent category id, ordinal The parent category of this category instance. This includes the parent category ID and an ordinal value that determines the category's relative position among sibling categories with the same parent. |
parent_category (anyOf 2) | null | Alternative | |
path_to_root | JSON | Optional | |
path_to_root (anyOf 1) | array | Alternative | The path from the category to its root category. The first node of the path is the parent of the category and the last is the root category. The path is empty if the category is a root category. |
path_to_root (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category path to root array item |
path_to_root (anyOf 2) | null | Alternative | |
root_category | string | Optional | The top-level category in a category hierarchy. Read only: true |
Referenced models: Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store, Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category path to root array item, Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category parent category id, ordinal
Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | SEO data for for a seller's Square Online store. |
page_description | JSON | Optional | |
page_description (anyOf 1) | string | Alternative | The SEO description used for the Square Online store. |
page_description (anyOf 2) | null | Alternative | |
page_title | JSON | Optional | |
page_title (anyOf 1) | string | Alternative | The SEO title used for the Square Online store. |
page_title (anyOf 2) | null | Alternative | |
permalink | JSON | Optional | |
permalink (anyOf 1) | string | Alternative | The SEO permalink used for the Square Online store. |
permalink (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category parent category id, ordinal
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A category that can be assigned to an item or a parent category that can be assigned to another category. For example, a clothing category can be assigned to a t-shirt item or be made as the parent category to the pants category. |
id | string | Optional | The ID of the object's category. |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | The position of this object within the specified category. When an item is assigned to a category, the ordinal determines the item's position relative to other items in the same category. When used for a parent category reference, the ordinal determines the category's position among its sibling categories. Format: int64 |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ordinal (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category path to root array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A node in the path from a retrieved category to its root node. |
category_id | JSON | Optional | |
category_id (anyOf 1) | string | Alternative | The category's ID. |
category_id (anyOf 2) | null | Alternative | |
category_name | JSON | Optional | |
category_name (anyOf 1) | string | Alternative | The category's name. |
category_name (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image custom attribute values object value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An instance of a custom attribute. Custom attributes can be defined and added to `ITEM` and `ITEM_VARIATION` type catalog objects. [Read more about custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes). |
boolean_value | JSON | Optional | |
boolean_value (anyOf 1) | boolean | Alternative | A `true` or `false` value. Populated if `type` = `BOOLEAN`. |
boolean_value (anyOf 2) | null | Alternative | |
custom_attribute_definition_id | string | Optional | The id of the [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) this value belongs to. Read only: true |
key | string | Optional | If the associated `CatalogCustomAttributeDefinition` object is defined by another application, this key is prefixed by the defining application ID. For example, if the CatalogCustomAttributeDefinition has a key attribute of "cocoa_brand" and the defining application ID is "abcd1234", this key is "abcd1234:cocoa_brand" when the application making the request is different from the application defining the custom attribute definition. Otherwise, the key is simply "cocoa_brand". Read only: true |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the custom attribute. |
name (anyOf 2) | null | Alternative | |
number_value | JSON | Optional | |
number_value (anyOf 1) | string | Alternative | Populated if `type` = `NUMBER`. Contains a string representation of a decimal number, using a `.` as the decimal separator. |
number_value (anyOf 2) | null | Alternative | |
selection_uid_values | JSON | Optional | |
selection_uid_values (anyOf 1) | array | Alternative | One or more choices from `allowed_selections`. Populated if `type` = `SELECTION`. |
selection_uid_values (anyOf 1)[] | string | Each item | |
selection_uid_values (anyOf 2) | null | Alternative | |
string_value | JSON | Optional | |
string_value (anyOf 1) | string | Alternative | The string value of the custom attribute. Populated if `type` = `STRING`. |
string_value (anyOf 2) | null | Alternative | |
type | string | Optional | Defines the possible types for a custom attribute. A copy of type from the associated `CatalogCustomAttributeDefinition`. See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values Known values: STRING, BOOLEAN, NUMBER, SELECTION Read only: true |
Create Catalog Image — response body — image discount data A discount applicable to items
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A discount applicable to items. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`. Do not use this field for percentage-based or variable discounts. |
amount_money (anyOf 2) | null | Alternative | |
discount_type | JSON | Optional | |
discount_type (anyOf 1) | string | Alternative | How to apply a CatalogDiscount to a CatalogItem. Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for possible values Known values: FIXED_PERCENTAGE, FIXED_AMOUNT, VARIABLE_PERCENTAGE, VARIABLE_AMOUNT |
discount_type (anyOf 2) | null | Alternative | |
label_color | JSON | Optional | |
label_color (anyOf 1) | string | Alternative | The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code. |
label_color (anyOf 2) | null | Alternative | |
maximum_amount_money | JSON | Optional | |
maximum_amount_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money For a percentage discount, the maximum absolute value of the discount. For example, if a 50% discount has a `maximum_amount_money` of $20, a $100 purchase will yield a $20 discount, not a $50 discount. |
maximum_amount_money (anyOf 2) | null | Alternative | |
modify_tax_basis | JSON | Optional | |
modify_tax_basis (anyOf 1) | string | Alternative | Indicates whether this discount should reduce the price used to calculate tax. Most discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must be calculated based on an item's price, ignoring a particular discount. For example, in many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a customer pays but does not reduce the sale price used to calculate how much sales tax is due. In this case, the discount representing that manufacturer coupon should have `DO_NOT_MODIFY_TAX_BASIS` for this field. If you are unsure whether you need to use this field, consult your tax professional. See [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values Known values: MODIFY_TAX_BASIS, DO_NOT_MODIFY_TAX_BASIS |
modify_tax_basis (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The discount name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not use this field for amount-based or variable discounts. |
percentage (anyOf 2) | null | Alternative | |
pin_required | JSON | Optional | |
pin_required (anyOf 1) | boolean | Alternative | Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app. |
pin_required (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Catalog Image — response body — image image data caption, name, photo studio order id, url
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An image file to use in Square catalogs. It can be associated with `CatalogItem`, `CatalogItemVariation`, `CatalogCategory`, and `CatalogModifierList` objects. Only the images on items and item variations are exposed in Dashboard. Only the first image on an item is displayed in Square Point of Sale (SPOS). Images on items and variations are displayed through Square Online Store. Images on other object types are for use by 3rd party application developers. |
caption | JSON | Optional | |
caption (anyOf 1) | string | Alternative | A caption that describes what is shown in the image. Displayed in the Square Online Store. This is a searchable attribute for use in applicable query filters using the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects). |
caption (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The internal name to identify this image in calls to the Square API. This is a searchable attribute for use in applicable query filters using the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects). It is not unique and should not be shown in a buyer facing context. |
name (anyOf 2) | null | Alternative | |
photo_studio_order_id | JSON | Optional | |
photo_studio_order_id (anyOf 1) | string | Alternative | The immutable order ID for this image object created by the Photo Studio service in Square Online Store. |
photo_studio_order_id (anyOf 2) | null | Alternative | |
url | JSON | Optional | |
url (anyOf 1) | string | Alternative | The URL of this image, generated by Square after an image is uploaded using the [CreateCatalogImage](api-endpoint:Catalog-CreateCatalogImage) endpoint. To modify the image, use the UpdateCatalogImage endpoint. Do not change the URL field. |
url (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A [CatalogObject](entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog. |
abbreviation | JSON | Optional | |
abbreviation (anyOf 1) | string | Alternative | The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. This attribute is searchable, and its value length is of Unicode code points. Maximum length: 24 |
abbreviation (anyOf 2) | null | Alternative | |
buyer_facing_name | JSON | Optional | |
buyer_facing_name (anyOf 1) | string | Alternative | The override to a product name to display to users Maximum length: 512 |
buyer_facing_name (anyOf 2) | null | Alternative | |
categories | JSON | Optional | |
categories (anyOf 1) | array | Alternative | The list of categories to which this item belongs. Each entry includes the category ID and an ordinal value that determines the item's relative position within that category. |
categories (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category parent category id, ordinal |
categories (anyOf 2) | null | Alternative | |
category_id | JSON | Optional | |
category_id (anyOf 1) | string | Alternative | The ID of the item's category, if any. Deprecated since 2023-12-13. Use `CatalogItem.categories`, instead. |
category_id (anyOf 2) | null | Alternative | |
channels | JSON | Optional | |
channels (anyOf 1) | array | Alternative | A list of IDs representing channels, such as a Square Online site, where the item can be made visible or available. This field is read only and cannot be edited. |
channels (anyOf 1)[] | string | Each item | |
channels (anyOf 2) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The item's description. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Deprecated at 2022-07-20, this field is planned to retire in 6 months. You should migrate to use `description_html` to set the description of the [CatalogItem](entity:CatalogItem) instance. The `description` and `description_html` field values are kept in sync. If you try to set the both fields, the `description_html` text value overwrites the `description` value. Updates in one field are also reflected in the other, except for when you use an early version before Square API 2022-07-20 and `description_html` is set to blank, setting the `description` value to null does not nullify `description_html`. Maximum length: 4096 |
description (anyOf 2) | null | Alternative | |
description_html | JSON | Optional | |
description_html (anyOf 1) | string | Alternative | The item's description as expressed in valid HTML elements. The length of this field value, including those of HTML tags, is of Unicode points. With application query filters, the text values of the HTML elements and attributes are searchable. Invalid or unsupported HTML elements or attributes are ignored. Supported HTML elements include: - `a`: Link. Supports linking to website URLs, email address, and telephone numbers. - `b`, `strong`: Bold text - `br`: Line break - `code`: Computer code - `div`: Section - `h1-h6`: Headings - `i`, `em`: Italics - `li`: List element - `ol`: Numbered list - `p`: Paragraph - `ul`: Bullet list - `u`: Underline Supported HTML attributes include: - `align`: Alignment of the text content - `href`: Link destination - `rel`: Relationship between link's target and source - `target`: Place to open the linked document Maximum length: 65535 |
description_html (anyOf 2) | null | Alternative | |
description_plaintext | string | Optional | A server-generated plaintext version of the `description_html` field, without formatting tags. Maximum length: 65535 Read only: true |
ecom_image_uris | JSON | Optional | |
ecom_image_uris (anyOf 1) | array | Alternative | Deprecated. A comma-separated list of encoded URIs pointing to a set of published e-commerce images for the Item. |
ecom_image_uris (anyOf 1)[] | string | Each item | |
ecom_image_uris (anyOf 2) | null | Alternative | |
ecom_seo_data | JSON | Optional | |
ecom_seo_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store The SEO data for a seller's Square Online store. |
ecom_seo_data (anyOf 2) | null | Alternative | |
ecom_uri | JSON | Optional | |
ecom_uri (anyOf 1) | string | Alternative | Deprecated. A URI pointing to a published e-commerce product page for the Item. |
ecom_uri (anyOf 2) | null | Alternative | |
food_and_beverage_details | JSON | Optional | |
food_and_beverage_details (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations food and beverage details calorie count, dietary preferences, ingredients The food and beverage-specific details for the `FOOD_AND_BEV` item. |
food_and_beverage_details (anyOf 2) | null | Alternative | |
image_ids | JSON | Optional | |
image_ids (anyOf 1) | array | Alternative | The IDs of images associated with this `CatalogItem` instance. These images will be shown to customers in Square Online Store. The first image will show up as the icon for this item in POS. |
image_ids (anyOf 1)[] | string | Each item | |
image_ids (anyOf 2) | null | Alternative | |
is_alcoholic | JSON | Optional | |
is_alcoholic (anyOf 1) | boolean | Alternative | Indicates whether this item is alcoholic (`true`) or not (`false`). |
is_alcoholic (anyOf 2) | null | Alternative | |
is_archived | JSON | Optional | |
is_archived (anyOf 1) | boolean | Alternative | Indicates whether this item is archived (`true`) or not (`false`). |
is_archived (anyOf 2) | null | Alternative | |
is_taxable | JSON | Optional | |
is_taxable (anyOf 1) | boolean | Alternative | Indicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`. |
is_taxable (anyOf 2) | null | Alternative | |
item_options | JSON | Optional | |
item_options (anyOf 1) | array | Alternative | List of item options IDs for this item. Used to manage and group item variations in a specified order. Maximum: 6 item options. |
item_options (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations item options array item |
item_options (anyOf 2) | null | Alternative | |
kitchen_name | JSON | Optional | |
kitchen_name (anyOf 1) | string | Alternative | (Optional) Name that the restaurant wants to display to their kitchen workers instead of the customer-facing name. e.g., customer name might be "Big John's Mega Burger" and the kitchen name is "12oz beef burger" |
kitchen_name (anyOf 2) | null | Alternative | |
label_color | JSON | Optional | |
label_color (anyOf 1) | string | Alternative | The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. |
label_color (anyOf 2) | null | Alternative | |
modifier_list_info | JSON | Optional | |
modifier_list_info (anyOf 1) | array | Alternative | A set of `CatalogItemModifierListInfo` objects representing the modifier lists that apply to this item, along with the overrides and min and max limits that are specific to this item. Modifier lists may also be added to or deleted from an item using `UpdateItemModifierLists`. |
modifier_list_info (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations modifier list info A set of `Catalog Item Modifier List Info` objects item |
modifier_list_info (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The item's name. This is a searchable attribute for use in applicable query filters, its value must not be empty, and the length is of Unicode code points. Maximum length: 512 |
name (anyOf 2) | null | Alternative | |
product_type | JSON | Optional | |
product_type (anyOf 1) | string | Alternative | The type of a CatalogItem. Connect V2 only allows the creation of `REGULAR` or `APPOINTMENTS_SERVICE` items. The product type of the item. Once set, the `product_type` value cannot be modified. Items of the `LEGACY_SQUARE_ONLINE_SERVICE` and `LEGACY_SQUARE_ONLINE_MEMBERSHIP` product types can be updated but cannot be created using the API. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values Known values: REGULAR, GIFT_CARD, APPOINTMENTS_SERVICE, FOOD_AND_BEV, EVENT, DIGITAL, DONATION, LEGACY_SQUARE_ONLINE_SERVICE, LEGACY_SQUARE_ONLINE_MEMBERSHIP |
product_type (anyOf 2) | null | Alternative | |
reporting_category | JSON | Optional | |
reporting_category (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category parent category id, ordinal The item's reporting category. |
reporting_category (anyOf 2) | null | Alternative | |
skip_modifier_screen | JSON | Optional | |
skip_modifier_screen (anyOf 1) | boolean | Alternative | If `false`, the Square Point of Sale app will present the `CatalogItem`'s details screen immediately, allowing the merchant to choose `CatalogModifier`s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. |
skip_modifier_screen (anyOf 2) | null | Alternative | |
sort_name | JSON | Optional | |
sort_name (anyOf 1) | string | Alternative | A name to sort the item by. If this name is unspecified, namely, the `sort_name` field is absent, the regular `name` field is used for sorting. Its value must not be empty. It is currently supported for sellers of the Japanese locale only. |
sort_name (anyOf 2) | null | Alternative | |
tax_ids | JSON | Optional | |
tax_ids (anyOf 1) | array | Alternative | A set of IDs indicating the taxes enabled for this item. When updating an item, any taxes listed here will be added to the item. Taxes may also be added to or deleted from an item using `UpdateItemTaxes`. |
tax_ids (anyOf 1)[] | string | Each item | |
tax_ids (anyOf 2) | null | Alternative | |
variations | JSON | Optional | |
variations (anyOf 1) | array | Alternative | A list of [CatalogItemVariation](entity:CatalogItemVariation) objects for this item. An item must have at least one variation. |
variations (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image |
variations (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store, Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations item options array item, Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations food and beverage details calorie count, dietary preferences, ingredients, Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations modifier list info A set of `Catalog Item Modifier List Info` objects item, Create Catalog Image — response body — image, Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category parent category id, ordinal
Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations food and beverage details calorie count, dietary preferences, ingredients
Referenced models: Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations food and beverage details calorie count, dietary preferences, ingredients dietary preferences array item, Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations food and beverage details calorie count, dietary preferences, ingredients ingredients The ingredients for the `FOOD AND BEV` type item item
Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations food and beverage details calorie count, dietary preferences, ingredients dietary preferences array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Dietary preferences that can be assigned to an `FOOD_AND_BEV` item and its ingredients. |
custom_name | JSON | Optional | |
custom_name (anyOf 1) | string | Alternative | The name of a user-defined custom dietary preference. This should be null if it's a standard dietary preference. |
custom_name (anyOf 2) | null | Alternative | |
standard_name | JSON | Optional | |
standard_name (anyOf 1) | string | Alternative | Standard dietary preferences for food and beverage items that are recommended on item creation. The name of the dietary preference from a standard pre-defined list. This should be null if it's a custom dietary preference. See [StandardDietaryPreference](#type-standarddietarypreference) for possible values Known values: DAIRY_FREE, GLUTEN_FREE, HALAL, KOSHER, NUT_FREE, VEGAN, VEGETARIAN |
standard_name (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of dietary preference for the `FOOD_AND_BEV` type of items and integredients. The dietary preference type. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`. See [DietaryPreferenceType](#type-dietarypreferencetype) for possible values Known values: STANDARD, CUSTOM |
type (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations food and beverage details calorie count, dietary preferences, ingredients ingredients The ingredients for the `FOOD AND BEV` type item item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes the ingredient used in a `FOOD_AND_BEV` item. |
custom_name | JSON | Optional | |
custom_name (anyOf 1) | string | Alternative | The name of a custom user-defined ingredient. This should be null if it's a standard dietary preference. |
custom_name (anyOf 2) | null | Alternative | |
standard_name | JSON | Optional | |
standard_name (anyOf 1) | string | Alternative | Standard ingredients for food and beverage items that are recommended on item creation. The name of the ingredient from a standard pre-defined list. This should be null if it's a custom dietary preference. See [StandardIngredient](#type-standardingredient) for possible values Known values: CELERY, CRUSTACEANS, EGGS, FISH, GLUTEN, LUPIN, MILK, MOLLUSCS, MUSTARD, PEANUTS, SESAME, SOY, SULPHITES, TREE_NUTS |
standard_name (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of dietary preference for the `FOOD_AND_BEV` type of items and integredients. The dietary preference type of the ingredient. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`. See [DietaryPreferenceType](#type-dietarypreferencetype) for possible values Known values: STANDARD, CUSTOM |
type (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations item options array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An option that can be assigned to an item. For example, a t-shirt item may offer a color option or a size option. |
item_option_id | JSON | Optional | |
item_option_id (anyOf 1) | string | Alternative | The unique id of the item option, used to form the dimensions of the item option matrix in a specified order. |
item_option_id (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations modifier list info A set of `Catalog Item Modifier List Info` objects item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Controls how a modifier list is applied to a specific item. This object allows for item-specific customization of modifier list behavior and provides the ability to override global modifier list settings. |
allow_quantities | JSON | Optional | |
allow_quantities (anyOf 1) | string | Alternative | Item level overrides for bool attributes Controls whether multiple quantities of the same modifier can be selected for this item. - `YES` means that every modifier in the `CatalogModifierList` can have multiple quantities selected for this item. - `NO` means that each modifier in the `CatalogModifierList` can be selected only once for this item. - `NOT_SET` means that the `allow_quantities` setting on the `CatalogModifierList` is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values Known values: NO, YES, NOT_SET |
allow_quantities (anyOf 2) | null | Alternative | |
enabled | JSON | Optional | |
enabled (anyOf 1) | boolean | Alternative | If `true`, enable this `CatalogModifierList`. The default value is `true`. |
enabled (anyOf 2) | null | Alternative | |
hidden_from_customer_override | JSON | Optional | |
hidden_from_customer_override (anyOf 1) | string | Alternative | Item level overrides for bool attributes Controls whether all modifiers for this item are hidden from customer receipts. - `YES` means that all modifiers in the `CatalogModifierList` are hidden from customer receipts for this item. - `NO` means that all modifiers in the `CatalogModifierList` are visible on customer receipts for this item. - `NOT_SET` means that the `hidden_from_customer` setting on the `CatalogModifierList` is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values Known values: NO, YES, NOT_SET |
hidden_from_customer_override (anyOf 2) | null | Alternative | |
is_conversational | JSON | Optional | |
is_conversational (anyOf 1) | string | Alternative | Item level overrides for bool attributes Controls whether conversational mode is enabled for modifiers on this item. - `YES` means conversational mode is enabled for every modifier in the `CatalogModifierList`. - `NO` means that conversational mode is not enabled for any modifier in the `CatalogModifierList`. - `NOT_SET` means that conversational mode is not enabled for any modifier in the `CatalogModifierList`. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values Known values: NO, YES, NOT_SET |
is_conversational (anyOf 2) | null | Alternative | |
max_selected_modifiers | JSON | Optional | |
max_selected_modifiers (anyOf 1) | JSON | Alternative | |
max_selected_modifiers (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of modifiers that can be selected. Values: - 0: No maximum limit. - -1: Default value, the attribute was not set by the client. When `min_selected_modifiers` is also -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`. - >0: The maximum total modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled. - < -1: Invalid. Treated as no maximum limit. |
max_selected_modifiers (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
max_selected_modifiers (anyOf 2) | null | Alternative | |
min_selected_modifiers | JSON | Optional | |
min_selected_modifiers (anyOf 1) | JSON | Alternative | |
min_selected_modifiers (anyOf 1) (anyOf 1) | integer | Alternative | The minimum number of modifiers that must be selected from this modifier list. Values: - 0: No selection is required. - -1: Default value, the attribute was not set by the client. When `max_selected_modifiers` is also -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`. - >0: The required minimum modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled. - < -1: Invalid. Treated as no selection required. |
min_selected_modifiers (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
min_selected_modifiers (anyOf 2) | null | Alternative | |
modifier_list_id | string | Required within parent | The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`. Minimum length: 1 |
modifier_overrides | JSON | Optional | |
modifier_overrides (anyOf 1) | array | Alternative | A set of `CatalogModifierOverride` objects that override default modifier settings for this item. |
modifier_overrides (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations modifier list info A set of `Catalog Item Modifier List Info` objects item modifier overrides array item |
modifier_overrides (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied to a `CatalogItem` instance. |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ordinal (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations modifier list info A set of `Catalog Item Modifier List Info` objects item modifier overrides array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Options to control how to override the default behavior of the specified modifier. |
hidden_online_override | JSON | Optional | |
hidden_online_override (anyOf 1) | string | Alternative | Item level overrides for bool attributes If `YES`, this setting overrides the `hidden_online` setting on the `CatalogModifier` object, and the modifier is always hidden from online sales channels. If `NO`, the modifier is not hidden. It is always visible in online sales channels for this catalog item. `NOT_SET` means the `hidden_online` setting on the `CatalogModifier` object is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values Known values: NO, YES, NOT_SET |
hidden_online_override (anyOf 2) | null | Alternative | |
modifier_id | string | Required within parent | The ID of the `CatalogModifier` whose default behavior is being overridden. Minimum length: 1 |
on_by_default | JSON | Optional | |
on_by_default (anyOf 1) | boolean | Alternative | __Deprecated__: Use `on_by_default_override` instead. |
on_by_default (anyOf 2) | null | Alternative | |
on_by_default_override | JSON | Optional | |
on_by_default_override (anyOf 1) | string | Alternative | Item level overrides for bool attributes If `YES`, this setting overrides the `on_by_default` setting on the `CatalogModifier` object, and the modifier is always selected by default for the catalog item. If `NO`, the modifier is not selected by default for this catalog item. `NOT_SET` means the `on_by_default` setting on the `CatalogModifier` object is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values Known values: NO, YES, NOT_SET |
on_by_default_override (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item option data A group of variations for a `Catalog Item`
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A group of variations for a `CatalogItem`. |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The item option's human-readable description. Displayed in the Square Point of Sale app for the seller and in the Online Store or on receipts for the buyer. This is a searchable attribute for use in applicable query filters. |
description (anyOf 2) | null | Alternative | |
display_name | JSON | Optional | |
display_name (anyOf 1) | string | Alternative | The item option's display name for the customer. This is a searchable attribute for use in applicable query filters. |
display_name (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The item option's display name for the seller. Must be unique across all item options. This is a searchable attribute for use in applicable query filters. |
name (anyOf 2) | null | Alternative | |
show_colors | JSON | Optional | |
show_colors (anyOf 1) | boolean | Alternative | If true, display colors for entries in `values` when present. |
show_colors (anyOf 2) | null | Alternative | |
values | JSON | Optional | |
values (anyOf 1) | array | Alternative | A list of CatalogObjects containing the `CatalogItemOptionValue`s for this item. |
values (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image |
values (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image
Create Catalog Image — response body — image item option value data An enumerated value that can link a
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An enumerated value that can link a `CatalogItemVariation` to an item option as one of its item option values. |
color | JSON | Optional | |
color (anyOf 1) | string | Alternative | The HTML-supported hex color for the item option (e.g., "#ff8d4e85"). Only displayed if `show_colors` is enabled on the parent `ItemOption`. When left unset, `color` defaults to white ("#ffffff") when `show_colors` is enabled on the parent `ItemOption`. |
color (anyOf 2) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | A human-readable description for the option value. This is a searchable attribute for use in applicable query filters. |
description (anyOf 2) | null | Alternative | |
item_option_id | JSON | Optional | |
item_option_id (anyOf 1) | string | Alternative | Unique ID of the associated item option. |
item_option_id (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | Name of this item option value. This is a searchable attribute for use in applicable query filters. |
name (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | Determines where this option value appears in a list of option values. |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ordinal (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An item variation, representing a product for sale, in the Catalog object model. Each [item](entity:CatalogItem) must have at least one item variation and can have at most 250 item variations. An item variation can be sellable, stockable, or both if it has a unit of measure for its count for the sold number of the variation, the stocked number of the variation, or both. For example, when a variation representing wine is stocked and sold by the bottle, the variation is both stockable and sellable. But when a variation of the wine is sold by the glass, the sold units cannot be used as a measure of the stocked units. This by-the-glass variation is sellable, but not stockable. To accurately keep track of the wine's inventory count at any time, the sellable count must be converted to stockable count. Typically, the seller defines this unit conversion. For example, 1 bottle equals 5 glasses. The Square API exposes the `stockable_conversion` property on the variation to specify the conversion. Thus, when two glasses of the wine are sold, the sellable count decreases by 2, and the stockable count automatically decreases by 0.4 bottle according to the conversion. |
available_for_booking | JSON | Optional | |
available_for_booking (anyOf 1) | boolean | Alternative | If the `CatalogItem` that owns this item variation is of type `APPOINTMENTS_SERVICE`, a bool representing whether this service is available for booking. |
available_for_booking (anyOf 2) | null | Alternative | |
image_ids | JSON | Optional | |
image_ids (anyOf 1) | array | Alternative | The IDs of images associated with this `CatalogItemVariation` instance. These images will be shown to customers in Square Online Store. |
image_ids (anyOf 1)[] | string | Each item | |
image_ids (anyOf 2) | null | Alternative | |
inventory_alert_threshold | JSON | Optional | |
inventory_alert_threshold (anyOf 1) | JSON | Alternative | |
inventory_alert_threshold (anyOf 1) (anyOf 1) | integer | Alternative | If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. Deprecated because this field has never been global. Format: int64 |
inventory_alert_threshold (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
inventory_alert_threshold (anyOf 2) | null | Alternative | |
inventory_alert_type | JSON | Optional | |
inventory_alert_type (anyOf 1) | string | Alternative | Indicates whether Square should alert the merchant when the inventory quantity of a CatalogItemVariation is low. Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. Deprecated because this field has never been global. See [InventoryAlertType](#type-inventoryalerttype) for possible values Known values: NONE, LOW_QUANTITY |
inventory_alert_type (anyOf 2) | null | Alternative | |
item_id | JSON | Optional | |
item_id (anyOf 1) | string | Alternative | The ID of the `CatalogItem` associated with this item variation. |
item_id (anyOf 2) | null | Alternative | |
item_option_values | JSON | Optional | |
item_option_values (anyOf 1) | array | Alternative | List of item option values associated with this item variation. Listed in the same order as the item options of the parent item. |
item_option_values (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information item option values array item |
item_option_values (anyOf 2) | null | Alternative | |
kitchen_name | JSON | Optional | |
kitchen_name (anyOf 1) | string | Alternative | (Optional) Name that the restaurant wants to display to their kitchen workers instead of the customer-facing name. e.g., customer name might be "Mega-Jumbo Triplesized" and the kitchen name is "Large container" |
kitchen_name (anyOf 2) | null | Alternative | |
location_overrides | JSON | Optional | |
location_overrides (anyOf 1) | array | Alternative | Per-location price and inventory overrides. |
location_overrides (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information location overrides Per-location price and inventory overrides item |
location_overrides (anyOf 2) | null | Alternative | |
measurement_unit_id | JSON | Optional | |
measurement_unit_id (anyOf 1) | string | Alternative | ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity sold of this item variation. If left unset, the item will be sold in whole quantities. |
measurement_unit_id (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The item variation's name. This is a searchable attribute for use in applicable query filters. Its value has a maximum length of 255 Unicode code points. However, when the parent [item](entity:CatalogItem) uses [item options](entity:CatalogItemOption), this attribute is auto-generated, read-only, and can be longer than 255 Unicode code points. |
name (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | integer | Alternative | The order in which this item variation should be displayed. This value is read-only. On writes, the ordinal for each item variation within a parent `CatalogItem` is set according to the item variations's position. On reads, the value is not guaranteed to be sequential or unique. Read only: true |
ordinal (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The item variation's price, if fixed pricing is used. |
price_money (anyOf 2) | null | Alternative | |
pricing_type | JSON | Optional | |
pricing_type (anyOf 1) | string | Alternative | Indicates whether the price of a CatalogItemVariation should be entered manually at the time of sale. Indicates whether the item variation's price is fixed or determined at the time of sale. See [CatalogPricingType](#type-catalogpricingtype) for possible values Known values: FIXED_PRICING, VARIABLE_PRICING |
pricing_type (anyOf 2) | null | Alternative | |
sellable | JSON | Optional | |
sellable (anyOf 1) | boolean | Alternative | Whether this variation can be sold. The inventory count of a sellable variation indicates the number of units available for sale. When a variation is both stockable and sellable, its sellable inventory count can be smaller than or equal to its stockable count. |
sellable (anyOf 2) | null | Alternative | |
service_duration | JSON | Optional | |
service_duration (anyOf 1) | JSON | Alternative | |
service_duration (anyOf 1) (anyOf 1) | integer | Alternative | If the `CatalogItem` that owns this item variation is of type `APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For example, a 30 minute appointment would have the value `1800000`, which is equal to 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second). Format: int64 |
service_duration (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
service_duration (anyOf 2) | null | Alternative | |
sku | JSON | Optional | |
sku (anyOf 1) | string | Alternative | The item variation's SKU, if any. This is a searchable attribute for use in applicable query filters. |
sku (anyOf 2) | null | Alternative | |
stockable | JSON | Optional | |
stockable (anyOf 1) | boolean | Alternative | Whether stock is counted directly on this variation (TRUE) or only on its components (FALSE). When a variation is both stockable and sellable, the inventory count of a stockable variation keeps track of the number of units of this variation in stock and is not an indicator of the number of units of the variation that can be sold. |
stockable (anyOf 2) | null | Alternative | |
stockable_conversion | JSON | Optional | |
stockable_conversion (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information stockable conversion nonstockable quantity, stockable item variation id, stockable quantity The unit conversion rule, as prescribed by the [CatalogStockConversion](entity:CatalogStockConversion) type, that describes how this non-stockable (i.e., sellable/receivable) item variation is converted to/from the stockable item variation sharing the same parent item. With the stock conversion, you can accurately track inventory when an item variation is sold in one unit, but stocked in another unit. |
stockable_conversion (anyOf 2) | null | Alternative | |
team_member_ids | JSON | Optional | |
team_member_ids (anyOf 1) | array | Alternative | Tokens of employees that can perform the service represented by this variation. Only valid for variations of type `APPOINTMENTS_SERVICE`. |
team_member_ids (anyOf 1)[] | string | Each item | |
team_member_ids (anyOf 2) | null | Alternative | |
track_inventory | JSON | Optional | |
track_inventory (anyOf 1) | boolean | Alternative | If `true`, inventory tracking is active for the variation at all locations by default. This value can be overridden for specific locations using `ItemVariationLocationOverrides.track_inventory`. If unset at both levels, inventory tracking is disabled. |
track_inventory (anyOf 2) | null | Alternative | |
upc | JSON | Optional | |
upc (anyOf 1) | string | Alternative | The universal product code (UPC) of the item variation, if any. This is a searchable attribute for use in applicable query filters. The value of this attribute should be a number of 12-14 digits long. This restriction is enforced on the Square Seller Dashboard, Square Point of Sale or Retail Point of Sale apps, where this attribute shows in the GTIN field. If a non-compliant UPC value is assigned to this attribute using the API, the value is not editable on the Seller Dashboard, Square Point of Sale or Retail Point of Sale apps unless it is updated to fit the expected format. |
upc (anyOf 2) | null | Alternative | |
user_data | JSON | Optional | |
user_data (anyOf 1) | string | Alternative | Arbitrary user metadata to associate with the item variation. This attribute value length is of Unicode code points. Maximum length: 255 |
user_data (anyOf 2) | null | Alternative | |
vendor_information | JSON | Optional | |
vendor_information (anyOf 1) | array | Alternative | Details of the vendor this product is purchased from. This field can be set only if the seller has an active subscription to either Square for Retail Premium or Square for Restaurants Premium. |
vendor_information (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information vendor information array item |
vendor_information (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information item option values array item, Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information stockable conversion nonstockable quantity, stockable item variation id, stockable quantity, Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information vendor information array item, Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information location overrides Per-location price and inventory overrides item, Pay Order — response body — order total money
Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information item option values array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A `CatalogItemOptionValue` links an item variation to an item option as an item option value. For example, a t-shirt item may offer a color option and a size option. An item option value would represent each variation of t-shirt: For example, "Color:Red, Size:Small" or "Color:Blue, Size:Medium". |
item_option_id | JSON | Optional | |
item_option_id (anyOf 1) | string | Alternative | The unique id of an item option. |
item_option_id (anyOf 2) | null | Alternative | |
item_option_value_id | JSON | Optional | |
item_option_value_id (anyOf 1) | string | Alternative | The unique id of the selected value for the item option. |
item_option_value_id (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information location overrides Per-location price and inventory overrides item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Price and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`. |
inventory_alert_threshold | JSON | Optional | |
inventory_alert_threshold (anyOf 1) | JSON | Alternative | |
inventory_alert_threshold (anyOf 1) (anyOf 1) | integer | Alternative | If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. Format: int64 |
inventory_alert_threshold (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
inventory_alert_threshold (anyOf 2) | null | Alternative | |
inventory_alert_type | JSON | Optional | |
inventory_alert_type (anyOf 1) | string | Alternative | Indicates whether Square should alert the merchant when the inventory quantity of a CatalogItemVariation is low. Indicates whether the `CatalogItemVariation` displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values Known values: NONE, LOW_QUANTITY |
inventory_alert_type (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the `Location`. This can include locations that are deactivated. |
location_id (anyOf 2) | null | Alternative | |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The price of the `CatalogItemVariation` at the given `Location`, or blank for variable pricing. |
price_money (anyOf 2) | null | Alternative | |
pricing_type | JSON | Optional | |
pricing_type (anyOf 1) | string | Alternative | Indicates whether the price of a CatalogItemVariation should be entered manually at the time of sale. The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`. See [CatalogPricingType](#type-catalogpricingtype) for possible values Known values: FIXED_PRICING, VARIABLE_PRICING |
pricing_type (anyOf 2) | null | Alternative | |
sold_out | boolean | Optional | Indicates whether the overridden item variation is sold out at the specified location. When inventory tracking is enabled on the item variation either globally or at the specified location, the item variation is automatically marked as sold out when its inventory count reaches zero. The seller can manually set the item variation as sold out even when the inventory count is greater than zero. Attempts by an application to set this attribute are ignored. Regardless how the sold-out status is set, applications should treat its inventory count as zero when this attribute value is `true`. Read only: true |
sold_out_valid_until | string | Optional | The seller-assigned timestamp, of the RFC 3339 format, to indicate when this sold-out variation becomes available again at the specified location. Attempts by an application to set this attribute are ignored. When the current time is later than this attribute value, the affected item variation is no longer sold out. Read only: true |
track_inventory | JSON | Optional | |
track_inventory (anyOf 1) | boolean | Alternative | Indicates whether inventory tracking is active for the `CatalogItemVariation` at this `Location`. When set, this value explicitly overrides the global `track_inventory` setting. When unset, the location should use the global value. If both global and location-level values are unset, inventory tracking is disabled. |
track_inventory (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information stockable conversion nonstockable quantity, stockable item variation id, stockable quantity
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the rule of conversion between a stockable [CatalogItemVariation](entity:CatalogItemVariation) and a non-stockable sell-by or receive-by `CatalogItemVariation` that share the same underlying stock. |
nonstockable_quantity | string | Required within parent | The converted equivalent quantity of the non-stockable [CatalogItemVariation](entity:CatalogItemVariation) in its measurement unit. The `stockable_quantity` value and this `nonstockable_quantity` value together define the conversion ratio between stockable item variation and the non-stockable item variation. It accepts a decimal number in a string format that can take up to 10 digits before the decimal point and up to 5 digits after the decimal point. Maximum length: 16 Minimum length: 1 |
stockable_item_variation_id | string | Required within parent | References to the stockable [CatalogItemVariation](entity:CatalogItemVariation) for this stock conversion. Selling, receiving or recounting the non-stockable `CatalogItemVariation` defined with a stock conversion results in adjustments of this stockable `CatalogItemVariation`. This immutable field must reference a stockable `CatalogItemVariation` that shares the parent [CatalogItem](entity:CatalogItem) of the converted `CatalogItemVariation.` Minimum length: 1 |
stockable_quantity | string | Required within parent | The quantity of the stockable item variation (as identified by `stockable_item_variation_id`) equivalent to the non-stockable item variation quantity (as specified in `nonstockable_quantity`) as defined by this stock conversion. It accepts a decimal number in a string format that can take up to 10 digits before the decimal point and up to 5 digits after the decimal point. Maximum length: 16 Minimum length: 1 |
Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information vendor information array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Information about the vendor of an item variation. |
unit_cost_money | JSON | Optional | |
unit_cost_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The unit cost of the linked product, when purchased from the linked vendor. |
unit_cost_money (anyOf 2) | null | Alternative | |
vendor_code | JSON | Optional | |
vendor_code (anyOf 1) | string | Alternative | Unique identifier of this product in the specified vendor's' inventory system. When the product is added to a purchase order, the vendor code is pre-filled based on the selected vendor. |
vendor_code (anyOf 2) | null | Alternative | |
vendor_id | JSON | Optional | |
vendor_id (anyOf 1) | string | Alternative | ID of the [Vendor](entity:Vendor) linked to a default cost of this product. When the product is added to a purchase order, the default cost is pre-filled. This field is not validated. Clients should gracefully handle cases where the vendor_id does not match any existing vendor. |
vendor_id (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Catalog Image — response body — image modifier data child modifier list ids, hidden online, image id, kitchen color, kitchen name, location overrides, modifier list id, name, on by default, ordinal, price money
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A modifier that can be applied to items at the time of sale. For example, a cheese modifier for a burger, or a flavor modifier for a serving of ice cream. |
child_modifier_list_ids | JSON | Optional | |
child_modifier_list_ids (anyOf 1) | array | Alternative | Child `CatalogModifierList`s that this `CatalogModifier` nests for multi-step choices. When a customer or staff member selects this modifier, the relevant follow-up modifier list appears. For example, selecting "Hummus" reveals a secondary "Choose Hummus Flavor" set, and selecting a flavor could reveal a third-level portion size set. Each entry references a child modifier list. Each modifier can nest up to 15 child modifier lists, and supports up to 3 levels of nesting depth. The order in `child_modifier_list_ids` determines display order during checkout. |
child_modifier_list_ids (anyOf 1)[] | string | Each item | |
child_modifier_list_ids (anyOf 2) | null | Alternative | |
hidden_online | JSON | Optional | |
hidden_online (anyOf 1) | boolean | Alternative | When `true`, this modifier is hidden from online ordering channels. This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`. |
hidden_online (anyOf 2) | null | Alternative | |
image_id | JSON | Optional | |
image_id (anyOf 1) | string | Alternative | The ID of the image associated with this `CatalogModifier` instance. Currently this image is not displayed by Square, but is free to be displayed in 3rd party applications. |
image_id (anyOf 2) | null | Alternative | |
kitchen_color | JSON | Optional | |
kitchen_color (anyOf 1) | string | Alternative | The text color for a `CatalogModifier` on Kitchen Display System (KDS) tickets. The text color for this modifier on Kitchen Display System (KDS) tickets. Kitchen staff use the color to identify important modifiers quickly. See [CatalogModifierColor](#type-catalogmodifiercolor) for possible values Known values: BURGUNDY, TAUPE, BROWN, FOREST, TEAL, SKY, ORANGE, YELLOW, GREEN, BLUE, PURPLE, PINK, GOLD, BURGUNDY_DARK, RED_DARK, BROWN_DARK, FOREST_DARK, BLUE_BRIGHT, PURPLE_DARK, PINK_BRIGHT, ORANGE_DARK, SKY_DARK, PURPLE_MID |
kitchen_color (anyOf 2) | null | Alternative | |
kitchen_name | JSON | Optional | |
kitchen_name (anyOf 1) | string | Alternative | (Optional) Name that the restaurant wants to display to their kitchen workers instead of the customer-facing name. e.g., customer name might be "Double Baconize" and the kitchen name is "Add 2x bacon" |
kitchen_name (anyOf 2) | null | Alternative | |
location_overrides | JSON | Optional | |
location_overrides (anyOf 1) | array | Alternative | Location-specific price overrides. |
location_overrides (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image modifier data child modifier list ids, hidden online, image id, kitchen color, kitchen name, location overrides, modifier list id, name, on by default, ordinal, price money location overrides Location-specific price overrides item |
location_overrides (anyOf 2) | null | Alternative | |
modifier_list_id | JSON | Optional | |
modifier_list_id (anyOf 1) | string | Alternative | The ID of the `CatalogModifierList` associated with this modifier. |
modifier_list_id (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The modifier name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
on_by_default | JSON | Optional | |
on_by_default (anyOf 1) | boolean | Alternative | When `true`, this modifier is selected by default when displaying the modifier list. This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`. |
on_by_default (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | Determines where this `CatalogModifier` appears in the `CatalogModifierList`. |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ordinal (anyOf 2) | null | Alternative | |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The modifier price. |
price_money (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image modifier data child modifier list ids, hidden online, image id, kitchen color, kitchen name, location overrides, modifier list id, name, on by default, ordinal, price money location overrides Location-specific price overrides item, Pay Order — response body — order total money
Create Catalog Image — response body — image modifier data child modifier list ids, hidden online, image id, kitchen color, kitchen name, location overrides, modifier list id, name, on by default, ordinal, price money location overrides Location-specific price overrides item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Location-specific overrides for specified properties of a `CatalogModifier` object. |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the `Location` object representing the location. This can include a deactivated location. |
location_id (anyOf 2) | null | Alternative | |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The overridden price at the specified location. If this is unspecified, the modifier price is not overridden. The modifier becomes free of charge at the specified location, when this `price_money` field is set to 0. |
price_money (anyOf 2) | null | Alternative | |
sold_out | boolean | Optional | Indicates whether the modifier is sold out at the specified location or not. As an example, for cheese (modifier) burger (item), when the modifier is sold out, it is the cheese, but not the burger, that is sold out. The seller can manually set this sold out status. Attempts by an application to set this attribute are ignored. Read only: true |
Referenced models: Pay Order — response body — order total money