Skip to content

Square: Catalog schemas (part 3)

31 Square schemas with complete fields and constraints.

← Catalog operations · All schemas

Upsert Catalog Object — request body — body object discount data A discount applicable to items

FieldTypePresenceDescription and constraints
$objectRootA discount applicable to items.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip 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)nullAlternative
discount_typeJSONOptional
discount_type (anyOf 1)stringAlternativeHow 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
One of: FIXED_PERCENTAGE, FIXED_AMOUNT, VARIABLE_PERCENTAGE, VARIABLE_AMOUNT
discount_type (anyOf 2)nullAlternative
label_colorJSONOptional
label_color (anyOf 1)stringAlternativeThe 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)nullAlternative
maximum_amount_moneyJSONOptional
maximum_amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip 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)nullAlternative
modify_tax_basisJSONOptional
modify_tax_basis (anyOf 1)stringAlternativeIndicates 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
One of: MODIFY_TAX_BASIS, DO_NOT_MODIFY_TAX_BASIS
modify_tax_basis (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
percentageJSONOptional
percentage (anyOf 1)stringAlternativeThe 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)nullAlternative
pin_requiredJSONOptional
pin_required (anyOf 1)booleanAlternativeIndicates 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)nullAlternative

Referenced models: Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootA [CatalogObject](entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog.
abbreviationJSONOptional
abbreviation (anyOf 1)stringAlternativeThe 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)nullAlternative
buyer_facing_nameJSONOptional
buyer_facing_name (anyOf 1)stringAlternativeThe override to a product name to display to users
Maximum length: 512
buyer_facing_name (anyOf 2)nullAlternative
categoriesJSONOptional
categories (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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)nullAlternative
category_idJSONOptional
category_id (anyOf 1)stringAlternativeThe ID of the item's category, if any. Deprecated since 2023-12-13. Use `CatalogItem.categories`, instead.
category_id (anyOf 2)nullAlternative
channelsJSONOptional
channels (anyOf 1)arrayAlternativeA 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)[]stringEach item
channels (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe 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)nullAlternative
description_htmlJSONOptional
description_html (anyOf 1)stringAlternativeThe 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)nullAlternative
description_plaintextstringOptionalA server-generated plaintext version of the `description_html` field, without formatting tags.
Maximum length: 65535
Read only: true
ecom_image_urisJSONOptional
ecom_image_uris (anyOf 1)arrayAlternativeDeprecated. A comma-separated list of encoded URIs pointing to a set of published e-commerce images for the Item.
ecom_image_uris (anyOf 1)[]stringEach item
ecom_image_uris (anyOf 2)nullAlternative
ecom_seo_dataJSONOptional
ecom_seo_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
ecom_uriJSONOptional
ecom_uri (anyOf 1)stringAlternativeDeprecated. A URI pointing to a published e-commerce product page for the Item.
ecom_uri (anyOf 2)nullAlternative
food_and_beverage_detailsJSONOptional
food_and_beverage_details (anyOf 1)ModelAlternativeExpand Upsert Catalog Object — request body — body object 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)nullAlternative
image_idsJSONOptional
image_ids (anyOf 1)arrayAlternativeThe 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)[]stringEach item
image_ids (anyOf 2)nullAlternative
is_alcoholicJSONOptional
is_alcoholic (anyOf 1)booleanAlternativeIndicates whether this item is alcoholic (`true`) or not (`false`).
is_alcoholic (anyOf 2)nullAlternative
is_archivedJSONOptional
is_archived (anyOf 1)booleanAlternativeIndicates whether this item is archived (`true`) or not (`false`).
is_archived (anyOf 2)nullAlternative
is_taxableJSONOptional
is_taxable (anyOf 1)booleanAlternativeIndicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`.
is_taxable (anyOf 2)nullAlternative
item_optionsJSONOptional
item_options (anyOf 1)arrayAlternativeList 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)[]ModelEach itemExpand 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)nullAlternative
kitchen_nameJSONOptional
kitchen_name (anyOf 1)stringAlternative(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)nullAlternative
label_colorJSONOptional
label_color (anyOf 1)stringAlternativeThe 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)nullAlternative
modifier_list_infoJSONOptional
modifier_list_info (anyOf 1)arrayAlternativeA 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)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
product_typeJSONOptional
product_type (anyOf 1)stringAlternativeThe 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
One of: REGULAR, GIFT_CARD, APPOINTMENTS_SERVICE, FOOD_AND_BEV, EVENT, DIGITAL, DONATION, LEGACY_SQUARE_ONLINE_SERVICE, LEGACY_SQUARE_ONLINE_MEMBERSHIP
product_type (anyOf 2)nullAlternative
reporting_categoryJSONOptional
reporting_category (anyOf 1)ModelAlternativeExpand Upsert Catalog Object — request body — body object 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)nullAlternative
skip_modifier_screenJSONOptional
skip_modifier_screen (anyOf 1)booleanAlternativeIf `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)nullAlternative
sort_nameJSONOptional
sort_name (anyOf 1)stringAlternativeA 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)nullAlternative
tax_idsJSONOptional
tax_ids (anyOf 1)arrayAlternativeA 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)[]stringEach item
tax_ids (anyOf 2)nullAlternative
variationsJSONOptional
variations (anyOf 1)arrayAlternativeA list of [CatalogItemVariation](entity:CatalogItemVariation) objects for this item. An item must have
at least one variation.
variations (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object
variations (anyOf 2)nullAlternative

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, Upsert Catalog Object — request body — body object 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, Upsert Catalog Object — request body — body object 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 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, Upsert Catalog Object — request body — body object, Upsert Catalog Object — request body — body object 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

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootThe food and beverage-specific details of a `FOOD_AND_BEV` item.
calorie_countJSONOptional
calorie_count (anyOf 1)integerAlternativeThe calorie count (in the unit of kcal) for the `FOOD_AND_BEV` type of items.
calorie_count (anyOf 2)nullAlternative
dietary_preferencesJSONOptional
dietary_preferences (anyOf 1)arrayAlternativeThe dietary preferences for the `FOOD_AND_BEV` item.
dietary_preferences (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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
dietary_preferences (anyOf 2)nullAlternative
ingredientsJSONOptional
ingredients (anyOf 1)arrayAlternativeThe ingredients for the `FOOD_AND_BEV` type item.
ingredients (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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
ingredients (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object 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, Upsert Catalog Object — request body — body object 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

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootDietary preferences that can be assigned to an `FOOD_AND_BEV` item and its ingredients.
custom_nameJSONOptional
custom_name (anyOf 1)stringAlternativeThe name of a user-defined custom dietary preference. This should be null if it's a standard dietary preference.
custom_name (anyOf 2)nullAlternative
standard_nameJSONOptional
standard_name (anyOf 1)stringAlternativeStandard 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
One of: DAIRY_FREE, GLUTEN_FREE, HALAL, KOSHER, NUT_FREE, VEGAN, VEGETARIAN
standard_name (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe 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
One of: STANDARD, CUSTOM
type (anyOf 2)nullAlternative

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootDescribes the ingredient used in a `FOOD_AND_BEV` item.
custom_nameJSONOptional
custom_name (anyOf 1)stringAlternativeThe name of a custom user-defined ingredient. This should be null if it's a standard dietary preference.
custom_name (anyOf 2)nullAlternative
standard_nameJSONOptional
standard_name (anyOf 1)stringAlternativeStandard 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
One of: CELERY, CRUSTACEANS, EGGS, FISH, GLUTEN, LUPIN, MILK, MOLLUSCS, MUSTARD, PEANUTS, SESAME, SOY, SULPHITES, TREE_NUTS
standard_name (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe 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
One of: STANDARD, CUSTOM
type (anyOf 2)nullAlternative

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootControls 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_quantitiesJSONOptional
allow_quantities (anyOf 1)stringAlternativeItem 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
One of: NO, YES, NOT_SET
allow_quantities (anyOf 2)nullAlternative
enabledJSONOptional
enabled (anyOf 1)booleanAlternativeIf `true`, enable this `CatalogModifierList`. The default value is `true`.
enabled (anyOf 2)nullAlternative
hidden_from_customer_overrideJSONOptional
hidden_from_customer_override (anyOf 1)stringAlternativeItem 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
One of: NO, YES, NOT_SET
hidden_from_customer_override (anyOf 2)nullAlternative
is_conversationalJSONOptional
is_conversational (anyOf 1)stringAlternativeItem 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
One of: NO, YES, NOT_SET
is_conversational (anyOf 2)nullAlternative
max_selected_modifiersJSONOptional
max_selected_modifiers (anyOf 1)integerAlternativeThe 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 2)nullAlternative
min_selected_modifiersJSONOptional
min_selected_modifiers (anyOf 1)integerAlternativeThe 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 2)nullAlternative
modifier_list_idstringRequired within parentThe ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.
Minimum length: 1
modifier_overridesJSONOptional
modifier_overrides (anyOf 1)arrayAlternativeA set of `CatalogModifierOverride` objects that override default modifier settings for this item.
modifier_overrides (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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)nullAlternative
ordinalJSONOptional
ordinal (anyOf 1)integerAlternativeThe position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied
to a `CatalogItem` instance.
ordinal (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object 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

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootOptions to control how to override the default behavior of the specified modifier.
hidden_online_overrideJSONOptional
hidden_online_override (anyOf 1)stringAlternativeItem 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
One of: NO, YES, NOT_SET
hidden_online_override (anyOf 2)nullAlternative
modifier_idstringRequired within parentThe ID of the `CatalogModifier` whose default behavior is being overridden.
Minimum length: 1
on_by_defaultJSONOptional
on_by_default (anyOf 1)booleanAlternative__Deprecated__: Use `on_by_default_override` instead.
on_by_default (anyOf 2)nullAlternative
on_by_default_overrideJSONOptional
on_by_default_override (anyOf 1)stringAlternativeItem 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
One of: NO, YES, NOT_SET
on_by_default_override (anyOf 2)nullAlternative

Upsert Catalog Object — request body — body object item option data A group of variations for a `Catalog Item`

FieldTypePresenceDescription and constraints
$objectRootA group of variations for a `CatalogItem`.
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe 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)nullAlternative
display_nameJSONOptional
display_name (anyOf 1)stringAlternativeThe item option's display name for the customer. This is a searchable attribute for use in applicable query filters.
display_name (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
show_colorsJSONOptional
show_colors (anyOf 1)booleanAlternativeIf true, display colors for entries in `values` when present.
show_colors (anyOf 2)nullAlternative
valuesJSONOptional
values (anyOf 1)arrayAlternativeA list of CatalogObjects containing the
`CatalogItemOptionValue`s for this item.
values (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object
values (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object

Upsert Catalog Object — request body — body object item option value data An enumerated value that can link a

FieldTypePresenceDescription and constraints
$objectRootAn enumerated value that can link a
`CatalogItemVariation` to an item option as one of
its item option values.
colorJSONOptional
color (anyOf 1)stringAlternativeThe 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)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeA human-readable description for the option value. This is a searchable attribute for use in applicable query filters.
description (anyOf 2)nullAlternative
item_option_idJSONOptional
item_option_id (anyOf 1)stringAlternativeUnique ID of the associated item option.
item_option_id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeName of this item option value. This is a searchable attribute for use in applicable query filters.
name (anyOf 2)nullAlternative
ordinalJSONOptional
ordinal (anyOf 1)integerAlternativeDetermines where this option value appears in a list of option values.
ordinal (anyOf 2)nullAlternative

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootAn 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_bookingJSONOptional
available_for_booking (anyOf 1)booleanAlternativeIf 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)nullAlternative
image_idsJSONOptional
image_ids (anyOf 1)arrayAlternativeThe IDs of images associated with this `CatalogItemVariation` instance.
These images will be shown to customers in Square Online Store.
image_ids (anyOf 1)[]stringEach item
image_ids (anyOf 2)nullAlternative
inventory_alert_thresholdJSONOptional
inventory_alert_threshold (anyOf 1)JSONAlternative
inventory_alert_threshold (anyOf 1) (anyOf 1)integerAlternativeIf 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
Minimum: -9223372036854775808
Maximum: 9223372036854775807
inventory_alert_threshold (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
inventory_alert_threshold (anyOf 2)nullAlternative
inventory_alert_typeJSONOptional
inventory_alert_type (anyOf 1)stringAlternativeIndicates 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
One of: NONE, LOW_QUANTITY
inventory_alert_type (anyOf 2)nullAlternative
item_idJSONOptional
item_id (anyOf 1)stringAlternativeThe ID of the `CatalogItem` associated with this item variation.
item_id (anyOf 2)nullAlternative
item_option_valuesJSONOptional
item_option_values (anyOf 1)arrayAlternativeList 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)[]ModelEach itemExpand 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)nullAlternative
kitchen_nameJSONOptional
kitchen_name (anyOf 1)stringAlternative(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)nullAlternative
location_overridesJSONOptional
location_overrides (anyOf 1)arrayAlternativePer-location price and inventory overrides.
location_overrides (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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)nullAlternative
measurement_unit_idJSONOptional
measurement_unit_id (anyOf 1)stringAlternativeID 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)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
ordinalintegerOptionalThe 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
price_moneyJSONOptional
price_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The item variation's price, if fixed pricing is used.
price_money (anyOf 2)nullAlternative
pricing_typeJSONOptional
pricing_type (anyOf 1)stringAlternativeIndicates 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
One of: FIXED_PRICING, VARIABLE_PRICING
pricing_type (anyOf 2)nullAlternative
sellableJSONOptional
sellable (anyOf 1)booleanAlternativeWhether 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)nullAlternative
service_durationJSONOptional
service_duration (anyOf 1)JSONAlternative
service_duration (anyOf 1) (anyOf 1)integerAlternativeIf 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
Minimum: -9223372036854775808
Maximum: 9223372036854775807
service_duration (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
service_duration (anyOf 2)nullAlternative
skuJSONOptional
sku (anyOf 1)stringAlternativeThe item variation's SKU, if any. This is a searchable attribute for use in applicable query filters.
sku (anyOf 2)nullAlternative
stockableJSONOptional
stockable (anyOf 1)booleanAlternativeWhether 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)nullAlternative
stockable_conversionJSONOptional
stockable_conversion (anyOf 1)ModelAlternativeExpand 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)nullAlternative
team_member_idsJSONOptional
team_member_ids (anyOf 1)arrayAlternativeTokens of employees that can perform the service represented by this variation. Only valid for
variations of type `APPOINTMENTS_SERVICE`.
team_member_ids (anyOf 1)[]stringEach item
team_member_ids (anyOf 2)nullAlternative
track_inventoryJSONOptional
track_inventory (anyOf 1)booleanAlternativeIf `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)nullAlternative
upcJSONOptional
upc (anyOf 1)stringAlternativeThe 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)nullAlternative
user_dataJSONOptional
user_data (anyOf 1)stringAlternativeArbitrary user metadata to associate with the item variation. This attribute value length is of Unicode code points.
Maximum length: 255
user_data (anyOf 2)nullAlternative
vendor_informationJSONOptional
vendor_information (anyOf 1)arrayAlternativeDetails 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)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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)nullAlternative

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, Upsert Catalog Object — request body — body object 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 stockable conversion nonstockable quantity, stockable item variation id, stockable quantity, Upsert Catalog Object — request body — body object 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, Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootPrice and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`.
inventory_alert_thresholdJSONOptional
inventory_alert_threshold (anyOf 1)JSONAlternative
inventory_alert_threshold (anyOf 1) (anyOf 1)integerAlternativeIf 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
Minimum: -9223372036854775808
Maximum: 9223372036854775807
inventory_alert_threshold (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
inventory_alert_threshold (anyOf 2)nullAlternative
inventory_alert_typeJSONOptional
inventory_alert_type (anyOf 1)stringAlternativeIndicates 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
One of: NONE, LOW_QUANTITY
inventory_alert_type (anyOf 2)nullAlternative
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the `Location`. This can include locations that are deactivated.
location_id (anyOf 2)nullAlternative
price_moneyJSONOptional
price_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The price of the `CatalogItemVariation` at the given `Location`, or blank for variable pricing.
price_money (anyOf 2)nullAlternative
pricing_typeJSONOptional
pricing_type (anyOf 1)stringAlternativeIndicates 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
One of: FIXED_PRICING, VARIABLE_PRICING
pricing_type (anyOf 2)nullAlternative
sold_outbooleanOptionalIndicates 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_untilstringOptionalThe 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_inventoryJSONOptional
track_inventory (anyOf 1)booleanAlternativeIndicates 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)nullAlternative

Referenced models: Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootInformation about the vendor of an item variation.
unit_cost_moneyJSONOptional
unit_cost_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The unit cost of the linked product, when purchased from the linked vendor.
unit_cost_money (anyOf 2)nullAlternative
vendor_codeJSONOptional
vendor_code (anyOf 1)stringAlternativeUnique 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)nullAlternative
vendor_idJSONOptional
vendor_id (anyOf 1)stringAlternativeID 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)nullAlternative

Referenced models: Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision

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

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

Default: 3
precision (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit

Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit

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

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

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootA 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_idsJSONOptional
child_modifier_list_ids (anyOf 1)arrayAlternativeChild `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)[]stringEach item
child_modifier_list_ids (anyOf 2)nullAlternative
hidden_onlineJSONOptional
hidden_online (anyOf 1)booleanAlternativeWhen `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)nullAlternative
image_idJSONOptional
image_id (anyOf 1)stringAlternativeThe 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)nullAlternative
kitchen_colorJSONOptional
kitchen_color (anyOf 1)stringAlternativeThe 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
One of: 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)nullAlternative
kitchen_nameJSONOptional
kitchen_name (anyOf 1)stringAlternative(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)nullAlternative
location_overridesJSONOptional
location_overrides (anyOf 1)arrayAlternativeLocation-specific price overrides.
location_overrides (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object 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)nullAlternative
modifier_list_idJSONOptional
modifier_list_id (anyOf 1)stringAlternativeThe ID of the `CatalogModifierList` associated with this modifier.
modifier_list_id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
on_by_defaultJSONOptional
on_by_default (anyOf 1)booleanAlternativeWhen `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)nullAlternative
ordinalJSONOptional
ordinal (anyOf 1)integerAlternativeDetermines where this `CatalogModifier` appears in the `CatalogModifierList`.
ordinal (anyOf 2)nullAlternative
price_moneyJSONOptional
price_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The modifier price.
price_money (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object 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, Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootLocation-specific overrides for specified properties of a `CatalogModifier` object.
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the `Location` object representing the location. This can include a deactivated location.
location_id (anyOf 2)nullAlternative
price_moneyJSONOptional
price_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip 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)nullAlternative
sold_outbooleanOptionalIndicates 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: Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootA container for a list of modifiers, or a text-based modifier.
For text-based modifiers, this represents text configuration for an item. (For example, custom text to print on a t-shirt).
For non text-based modifiers, this represents a list of modifiers that can be applied to items at the time of sale.
(For example, a list of condiments for a hot dog, or a list of ice cream flavors).
Each element of the modifier list is a `CatalogObject` instance of the `MODIFIER` type.
allow_quantitiesJSONOptional
allow_quantities (anyOf 1)booleanAlternativeWhen `true`, allows multiple quantities of the same modifier to be selected.
allow_quantities (anyOf 2)nullAlternative
hidden_from_customerJSONOptional
hidden_from_customer (anyOf 1)booleanAlternativeIf `true`, modifiers from this list are hidden from customer receipts. The default value is `false`.
This setting can be overridden with `CatalogItemModifierListInfo.hidden_from_customer_override`.
hidden_from_customer (anyOf 2)nullAlternative
image_idsJSONOptional
image_ids (anyOf 1)arrayAlternativeThe IDs of images associated with this `CatalogModifierList` instance.
Currently these images are not displayed on Square products, but may be displayed in 3rd-party applications.
image_ids (anyOf 1)[]stringEach item
image_ids (anyOf 2)nullAlternative
internal_nameJSONOptional
internal_name (anyOf 1)stringAlternativeA note for internal use by the business.

For example, for a text-based modifier applied to a T-shirt item, if the buyer-supplied text of "Hello, Kitty!"
is to be printed on the T-shirt, this `internal_name` attribute can be "Use italic face" as
an instruction for the business to follow.

For non text-based modifiers, this `internal_name` attribute can be
used to include SKUs, internal codes, or supplemental descriptions for internal use.
Maximum length: 512
internal_name (anyOf 2)nullAlternative
is_conversationalJSONOptional
is_conversational (anyOf 1)booleanAlternativeTrue if modifiers belonging to this list can be used conversationally.
is_conversational (anyOf 2)nullAlternative
max_lengthJSONOptional
max_length (anyOf 1)integerAlternativeThe maximum length, in Unicode points, of the text string of the text-based modifier as represented by
this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.
max_length (anyOf 2)nullAlternative
max_selected_modifiersJSONOptional
max_selected_modifiers (anyOf 1)JSONAlternative
max_selected_modifiers (anyOf 1) (anyOf 1)integerAlternativeThe maximum number of modifiers that must be selected from this list. The value can be overridden with `CatalogItemModifierListInfo`.

Values:

- 0: No maximum limit.
- -1: Default value, the attribute was not set by the client. Treated as no maximum limit.
- >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.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
max_selected_modifiers (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
max_selected_modifiers (anyOf 2)nullAlternative
min_selected_modifiersJSONOptional
min_selected_modifiers (anyOf 1)JSONAlternative
min_selected_modifiers (anyOf 1) (anyOf 1)integerAlternativeThe minimum number of modifiers that must be selected from this list. The value can be overridden with `CatalogItemModifierListInfo`.

Values:

- 0: No selection is required.
- -1: Default value, the attribute was not set by the client. Treated as no selection required.
- >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.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
min_selected_modifiers (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
min_selected_modifiers (anyOf 2)nullAlternative
modifier_typeJSONOptional
modifier_type (anyOf 1)stringAlternativeDefines the type of `CatalogModifierList`.
The type of the modifier.

When this `modifier_type` value is `TEXT`, the `CatalogModifierList` represents a text-based modifier.
When this `modifier_type` value is `LIST`, the `CatalogModifierList` contains a list of `CatalogModifier` objects.
See [CatalogModifierListModifierType](#type-catalogmodifierlistmodifiertype) for possible values
One of: LIST, TEXT
modifier_type (anyOf 2)nullAlternative
modifiersJSONOptional
modifiers (anyOf 1)arrayAlternativeA non-empty list of `CatalogModifier` objects to be included in the `CatalogModifierList`,
for non text-based modifiers when the `modifier_type` attribute is `LIST`. Each element of this list
is a `CatalogObject` instance of the `MODIFIER` type, containing the following attributes:
```
{
"id": "{{catalog_modifier_id}}",
"type": "MODIFIER",
"modifier_data": {{a CatalogModifier instance>}}
}
```
modifiers (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object
modifiers (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the `CatalogModifierList` instance. 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)nullAlternative
ordinalJSONOptional
ordinal (anyOf 1)integerAlternativeThe position of this `CatalogModifierList` within a list of `CatalogModifierList` instances.
ordinal (anyOf 2)nullAlternative
selection_typeJSONOptional
selection_type (anyOf 1)stringAlternativeIndicates whether a CatalogModifierList supports multiple selections.
__Deprecated__: Indicates whether a single (`SINGLE`) modifier or multiple (`MULTIPLE`) modifiers can be selected. Use
`min_selected_modifiers` and `max_selected_modifiers` instead.
See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values
One of: SINGLE, MULTIPLE
selection_type (anyOf 2)nullAlternative
text_requiredJSONOptional
text_required (anyOf 1)booleanAlternativeWhether the text string must be a non-empty string (`true`) or not (`false`) for a text-based modifier
as represented by this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.
text_required (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object

Upsert Catalog Object — request body — body object 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

FieldTypePresenceDescription and constraints
$objectRootDefines how discounts are automatically applied to a set of items that match the pricing rule
during the active time period.
apply_products_idJSONOptional
apply_products_id (anyOf 1)stringAlternative__Deprecated__: Please use the `exclude_products_id` field to apply
an exclude set instead. Exclude sets allow better control over quantity
ranges and offer more flexibility for which matched items receive a discount.

`CatalogProductSet` to apply the pricing to.
An apply rule matches within the subset of the cart that fits the match rules (the match set).
An apply rule can only match once in the match set.
If not supplied, the pricing will be applied to all products in the match set.
Other products retain their base price, or a price generated by other rules.
apply_products_id (anyOf 2)nullAlternative
customer_group_ids_anyJSONOptional
customer_group_ids_any (anyOf 1)arrayAlternativeA list of IDs of customer groups, the members of which are eligible for discounts specified in this pricing rule.
Notice that a group ID is generated by the Customers API.
If this field is not set, the specified discount applies to matched products sold to anyone whether the buyer
has a customer profile created or not. If this `customer_group_ids_any` field is set, the specified discount
applies only to matched products sold to customers belonging to the specified customer groups.
customer_group_ids_any (anyOf 1)[]stringEach item
customer_group_ids_any (anyOf 2)nullAlternative
discount_idJSONOptional
discount_id (anyOf 1)stringAlternativeUnique ID for the `CatalogDiscount` to take off
the price of all matched items.
discount_id (anyOf 2)nullAlternative
exclude_products_idJSONOptional
exclude_products_id (anyOf 1)stringAlternative`CatalogProductSet` to exclude from the pricing rule.
An exclude rule matches within the subset of the cart that fits the match rules (the match set).
An exclude rule can only match once in the match set.
If not supplied, the pricing will be applied to all products in the match set.
Other products retain their base price, or a price generated by other rules.
exclude_products_id (anyOf 2)nullAlternative
exclude_strategyJSONOptional
exclude_strategy (anyOf 1)stringAlternativeIndicates which products matched by a CatalogPricingRule
will be excluded if the pricing rule uses an exclude set.
If an `exclude_products_id` was given, controls which subset of matched
products is excluded from any discounts.

Default value: `LEAST_EXPENSIVE`
See [ExcludeStrategy](#type-excludestrategy) for possible values
One of: LEAST_EXPENSIVE, MOST_EXPENSIVE, MOST_EXPENSIVE_LOWEST_VALUE
exclude_strategy (anyOf 2)nullAlternative
match_products_idJSONOptional
match_products_id (anyOf 1)stringAlternativeUnique ID for the `CatalogProductSet` that will be matched by this rule. A match rule
matches within the entire cart, and can match multiple times. This field will always be set.
match_products_id (anyOf 2)nullAlternative
minimum_order_subtotal_moneyJSONOptional
minimum_order_subtotal_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The minimum order subtotal (before discounts or taxes are applied)
that must be met before this rule may be applied.
minimum_order_subtotal_money (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeUser-defined name for the pricing rule. For example, "Buy one get one
free" or "10% off".
name (anyOf 2)nullAlternative
time_period_idsJSONOptional
time_period_ids (anyOf 1)arrayAlternativeA list of unique IDs for the catalog time periods when
this pricing rule is in effect. If left unset, the pricing rule is always
in effect.
time_period_ids (anyOf 1)[]stringEach item
time_period_ids (anyOf 2)nullAlternative
valid_from_dateJSONOptional
valid_from_date (anyOf 1)stringAlternativeRepresents the date the Pricing Rule is valid from. Represented in RFC 3339 full-date format (YYYY-MM-DD).
valid_from_date (anyOf 2)nullAlternative
valid_from_local_timeJSONOptional
valid_from_local_time (anyOf 1)stringAlternativeRepresents the local time the pricing rule should be valid from. Represented in RFC 3339 partial-time format
(HH:MM:SS). Partial seconds will be truncated.
valid_from_local_time (anyOf 2)nullAlternative
valid_until_dateJSONOptional
valid_until_date (anyOf 1)stringAlternativeRepresents the date the Pricing Rule is valid until. Represented in RFC 3339 full-date format (YYYY-MM-DD).
valid_until_date (anyOf 2)nullAlternative
valid_until_local_timeJSONOptional
valid_until_local_time (anyOf 1)stringAlternativeRepresents the local time the pricing rule should be valid until. Represented in RFC 3339 partial-time format
(HH:MM:SS). Partial seconds will be truncated.
valid_until_local_time (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object product set data all products, name, product ids all, product ids any, quantity exact, quantity max, quantity min

FieldTypePresenceDescription and constraints
$objectRootRepresents a collection of catalog objects for the purpose of applying a
`PricingRule`. Including a catalog object will include all of its subtypes.
For example, including a category in a product set will include all of its
items and associated item variations in the product set. Including an item in
a product set will also include its item variations.
all_productsJSONOptional
all_products (anyOf 1)booleanAlternativeIf set to `true`, the product set will include every item in the catalog.
Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.
all_products (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeUser-defined name for the product set. For example, "Clearance Items"
or "Winter Sale Items".
name (anyOf 2)nullAlternative
product_ids_allJSONOptional
product_ids_all (anyOf 1)arrayAlternativeUnique IDs for any `CatalogObject` included in this product set.
All objects in this set must be included in an order for a pricing rule to apply.

Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.

Max: 5000 catalog object IDs.
product_ids_all (anyOf 1)[]stringEach item
product_ids_all (anyOf 2)nullAlternative
product_ids_anyJSONOptional
product_ids_any (anyOf 1)arrayAlternativeUnique IDs for any `CatalogObject` included in this product set. Any
number of these catalog objects can be in an order for a pricing rule to apply.

This can be used with `product_ids_all` in a parent `CatalogProductSet` to
match groups of products for a bulk discount, such as a discount for an
entree and side combo.

Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.

Max: 5000 catalog object IDs.
product_ids_any (anyOf 1)[]stringEach item
product_ids_any (anyOf 2)nullAlternative
quantity_exactJSONOptional
quantity_exact (anyOf 1)JSONAlternative
quantity_exact (anyOf 1) (anyOf 1)integerAlternativeIf set, there must be exactly this many items from `products_any` or `products_all`
in the cart for the discount to apply.

Cannot be combined with either `quantity_min` or `quantity_max`.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
quantity_exact (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
quantity_exact (anyOf 2)nullAlternative
quantity_maxJSONOptional
quantity_max (anyOf 1)JSONAlternative
quantity_max (anyOf 1) (anyOf 1)integerAlternativeIf set, the pricing rule will apply to a maximum of this many items from
`products_any` or `products_all`.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
quantity_max (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
quantity_max (anyOf 2)nullAlternative
quantity_minJSONOptional
quantity_min (anyOf 1)JSONAlternative
quantity_min (anyOf 1) (anyOf 1)integerAlternativeIf set, there must be at least this many items from `products_any` or `products_all`
in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if
`quantity_exact`, `quantity_min` and `quantity_max` are all unspecified.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
quantity_min (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
quantity_min (anyOf 2)nullAlternative

Upsert Catalog Object — request body — body object subscription plan data all items, eligible category ids, eligible item ids, name, phases, subscription plan variations

FieldTypePresenceDescription and constraints
$objectRootDescribes a subscription plan. A subscription plan represents what you want to sell in a subscription model, and includes references to each of the associated subscription plan variations.
For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).
all_itemsJSONOptional
all_items (anyOf 1)booleanAlternativeIf true, all items in the merchant's catalog are subscribable by this SubscriptionPlan.
all_items (anyOf 2)nullAlternative
eligible_category_idsJSONOptional
eligible_category_ids (anyOf 1)arrayAlternativeThe list of IDs of `CatalogCategory` that are eligible for subscription by this SubscriptionPlan's variations.
eligible_category_ids (anyOf 1)[]stringEach item
eligible_category_ids (anyOf 2)nullAlternative
eligible_item_idsJSONOptional
eligible_item_ids (anyOf 1)arrayAlternativeThe list of IDs of `CatalogItems` that are eligible for subscription by this SubscriptionPlan's variations.
eligible_item_ids (anyOf 1)[]stringEach item
eligible_item_ids (anyOf 2)nullAlternative
namestringRequired within parentThe name of the plan.
phasesJSONOptional
phases (anyOf 1)arrayAlternativeA list of SubscriptionPhase containing the [SubscriptionPhase](entity:SubscriptionPhase) for this plan.
This field it required. Not including this field will throw a REQUIRED_FIELD_MISSING error
phases (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item
phases (anyOf 2)nullAlternative
subscription_plan_variationsJSONOptional
subscription_plan_variations (anyOf 1)arrayAlternativeThe list of subscription plan variations available for this product
subscription_plan_variations (anyOf 1)[]ModelEach itemExpand Upsert Catalog Object — request body — body object
subscription_plan_variations (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object, Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item

Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id

FieldTypePresenceDescription and constraints
$objectRootDescribes a subscription plan variation. A subscription plan variation represents how the subscription for a product or service is sold.
For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).
can_prorateJSONOptional
can_prorate (anyOf 1)booleanAlternativeWhether bills for this plan variation can be split for proration.
can_prorate (anyOf 2)nullAlternative
monthly_billing_anchor_dateJSONOptional
monthly_billing_anchor_date (anyOf 1)JSONAlternative
monthly_billing_anchor_date (anyOf 1) (anyOf 1)integerAlternativeThe day of the month the billing period starts.
Format: int64
Maximum: 31
Minimum: 1
monthly_billing_anchor_date (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:(?:1[0-9]|2[0-9]|3[0-1])|[1-9][0-9]{0,0})$(?!\n)
monthly_billing_anchor_date (anyOf 2)nullAlternative
namestringRequired within parentThe name of the plan variation.
phasesarrayRequired within parentA list containing each [SubscriptionPhase](entity:SubscriptionPhase) for this plan variation.
phases[]ModelEach itemExpand Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item
subscription_plan_idJSONOptional
subscription_plan_id (anyOf 1)stringAlternativeThe id of the subscription plan, if there is one.
subscription_plan_id (anyOf 2)nullAlternative
successor_plan_variation_idJSONOptional
successor_plan_variation_id (anyOf 1)stringAlternativeThe ID of a "successor" plan variation to this one. If the field is set, and this object is disabled at all
locations, it indicates that this variation is deprecated and the object identified by the successor ID be used in
its stead.
successor_plan_variation_id (anyOf 2)nullAlternative

Referenced models: Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item

Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item

FieldTypePresenceDescription and constraints
$objectRootDescribes a phase in a subscription plan variation. For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).
cadencestringRequired within parentDetermines the billing cadence of a [Subscription](entity:Subscription)
The billing cadence of the phase. For example, weekly or monthly. This field cannot be changed after a `SubscriptionPhase` is created.
See [SubscriptionCadence](#type-subscriptioncadence) for possible values
One of: DAILY, WEEKLY, EVERY_TWO_WEEKS, THIRTY_DAYS, SIXTY_DAYS, NINETY_DAYS, MONTHLY, EVERY_TWO_MONTHS, QUARTERLY, EVERY_FOUR_MONTHS, EVERY_SIX_MONTHS, ANNUAL, EVERY_TWO_YEARS
ordinalJSONOptional
ordinal (anyOf 1)JSONAlternative
ordinal (anyOf 1) (anyOf 1)integerAlternativeThe position this phase appears in the sequence of phases defined for the plan, indexed from 0. This field cannot be changed after a `SubscriptionPhase` is created.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
ordinal (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)
ordinal (anyOf 2)nullAlternative
periodsJSONOptional
periods (anyOf 1)integerAlternativeThe number of `cadence`s the phase lasts. If not set, the phase never ends. Only the last phase can be indefinite. This field cannot be changed after a `SubscriptionPhase` is created.
periods (anyOf 2)nullAlternative
pricingJSONOptional
pricing (anyOf 1)ModelAlternativeExpand Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item pricing Describes the pricing for the subscription
The subscription pricing.
pricing (anyOf 2)nullAlternative
recurring_price_moneyJSONOptional
recurring_price_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount to bill for each `cadence`. Failure to specify this field results in a `MISSING_REQUIRED_PARAMETER` error at runtime.
recurring_price_money (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeThe Square-assigned ID of the subscription phase. This field cannot be changed after a `SubscriptionPhase` is created.
uid (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money, Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item pricing Describes the pricing for the subscription

Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item pricing Describes the pricing for the subscription

FieldTypePresenceDescription and constraints
$objectRootDescribes the pricing for the subscription.
discount_idsJSONOptional
discount_ids (anyOf 1)arrayAlternativeThe ids of the discount catalog objects
discount_ids (anyOf 1)[]stringEach item
discount_ids (anyOf 2)nullAlternative
price_moneyJSONOptional
price_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The price of the subscription, if STATIC
price_money (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeDetermines the pricing of a [Subscription](entity:Subscription)
RELATIVE or STATIC
See [SubscriptionPricingType](#type-subscriptionpricingtype) for possible values
One of: STATIC, RELATIVE
type (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money

Upsert Catalog Object — request body — body object tax data A tax applicable to an item

FieldTypePresenceDescription and constraints
$objectRootA tax applicable to an item.
applies_to_custom_amountsJSONOptional
applies_to_custom_amounts (anyOf 1)booleanAlternativeIf `true`, the fee applies to custom amounts entered into the Square Point of Sale
app that are not associated with a particular `CatalogItem`.
applies_to_custom_amounts (anyOf 2)nullAlternative
applies_to_product_set_idJSONOptional
applies_to_product_set_id (anyOf 1)stringAlternativeThe ID of a `CatalogProductSet` object. If set, the tax is applicable to all products in the product set.
applies_to_product_set_id (anyOf 2)nullAlternative
calculation_phaseJSONOptional
calculation_phase (anyOf 1)stringAlternativeWhen to calculate the taxes due on a cart.
Whether the tax is calculated based on a payment's subtotal or total.
See [TaxCalculationPhase](#type-taxcalculationphase) for possible values
One of: TAX_SUBTOTAL_PHASE, TAX_TOTAL_PHASE
calculation_phase (anyOf 2)nullAlternative
enabledJSONOptional
enabled (anyOf 1)booleanAlternativeA Boolean flag to indicate whether the tax is displayed as enabled (`true`) in the Square Point of Sale app or not (`false`).
enabled (anyOf 2)nullAlternative
inclusion_typeJSONOptional
inclusion_type (anyOf 1)stringAlternativeWhether to the tax amount should be additional to or included in the CatalogItem price.
Whether the tax is `ADDITIVE` or `INCLUSIVE`.
See [TaxInclusionType](#type-taxinclusiontype) for possible values
One of: ADDITIVE, INCLUSIVE
inclusion_type (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe tax's 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)nullAlternative
percentageJSONOptional
percentage (anyOf 1)stringAlternativeThe percentage of the tax in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign.
A value of `7.5` corresponds to 7.5%. For a location-specific tax rate, contact the tax authority of the location or a tax consultant.
percentage (anyOf 2)nullAlternative

Upsert Catalog Object — request body — body object type

FieldTypePresenceDescription and constraints
$stringRootPossible types of CatalogObjects returned from the catalog, each
containing type-specific properties in the `*_data` field corresponding to the specified object type.
One of: ITEM, IMAGE, CATEGORY, ITEM_VARIATION, TAX, DISCOUNT, MODIFIER_LIST, MODIFIER, PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT, SUBSCRIPTION_PLAN_VARIATION, ITEM_OPTION, ITEM_OPTION_VAL, CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNTS_SETTINGS, SUBSCRIPTION_PLAN, AVAILABILITY_PERIOD

Upsert Catalog Object — response body

FieldTypePresenceDescription and constraints
$objectRoot
catalog_objectModelOptionalExpand Create Catalog Image — response body — image
The successfully created or updated CatalogObject.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
id_mappingsarrayOptionalThe mapping between client and server IDs for this upsert.
id_mappings[]ModelEach itemExpand Upsert Catalog Object — response body — id mappings item

Referenced models: Upsert Catalog Object — response body — id mappings item, Create Catalog Image — response body — image, Get Shift — response body — errors item

Upsert Catalog Object — response body — id mappings item

FieldTypePresenceDescription and constraints
$objectRootA mapping between a temporary client-supplied ID and a permanent server-generated ID.

When calling [UpsertCatalogObject](api-endpoint:Catalog-UpsertCatalogObject) or
[BatchUpsertCatalogObjects](api-endpoint:Catalog-BatchUpsertCatalogObjects) to
create a [CatalogObject](entity:CatalogObject) instance, you can supply
a temporary ID for the to-be-created object, especially when the object is to be referenced
elsewhere in the same request body. This temporary ID can be any string unique within
the call, but must be prefixed by "#".

After the request is submitted and the object created, a permanent server-generated ID is assigned
to the new object. The permanent ID is unique across the Square catalog.
client_object_idJSONOptional
client_object_id (anyOf 1)stringAlternativeThe client-supplied temporary `#`-prefixed ID for a new `CatalogObject`.
client_object_id (anyOf 2)nullAlternative
object_idJSONOptional
object_id (anyOf 1)stringAlternativeThe permanent ID for the CatalogObject created by the server.
object_id (anyOf 2)nullAlternative

UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION

FieldTypePresenceDescription and constraints
$objectRootContains information defining a custom attribute. Custom attributes are
intended to store additional information about a catalog object or to associate a
catalog object with an entity in another system. Do not use custom attributes
to store any sensitive information (personally identifiable information, card details, etc.).
[Read more about custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes)
allowed_object_typesarrayRequired within parentThe set of `CatalogObject` types that this custom atttribute may be applied to.
Currently, only `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, and `CATEGORY` are allowed. At least one type must be included.
See [CatalogObjectType](#type-catalogobjecttype) for possible values
allowed_object_types[]ModelEach itemExpand Upsert Catalog Object — request body — body object type
app_visibilityJSONOptional
app_visibility (anyOf 1)stringAlternativeDefines the visibility of a custom attribute to applications other than their
creating application.
The visibility of a custom attribute to applications other than the application
that created the attribute.
See [CatalogCustomAttributeDefinitionAppVisibility](#type-catalogcustomattributedefinitionappvisibility) for possible values
One of: APP_VISIBILITY_HIDDEN, APP_VISIBILITY_READ_ONLY, APP_VISIBILITY_READ_WRITE_VALUES
app_visibility (anyOf 2)nullAlternative
custom_attribute_usage_countintegerOptionalThe number of custom attributes that reference this
custom attribute definition. Set by the server in response to a ListCatalog
request with `include_counts` set to `true`. If the actual count is greater
than 100, `custom_attribute_usage_count` will be set to `100`.
Read only: true
descriptionJSONOptional
description (anyOf 1)stringAlternativeSeller-oriented description of the meaning of this Custom Attribute,
any constraints that the seller should observe, etc. May be displayed as a tooltip in Square UIs.
Maximum length: 255
description (anyOf 2)nullAlternative
keyJSONOptional
key (anyOf 1)stringAlternativeThe name of the desired custom attribute key that can be used to access
the custom attribute value on catalog objects. Cannot be modified after the
custom attribute definition has been created.
Must be between 1 and 60 characters, and may only contain the characters `[a-zA-Z0-9_-]`.
Maximum length: 60
Minimum length: 1
Pattern: ^[a-zA-Z0-9_-]*$
key (anyOf 2)nullAlternative
namestringRequired within parentThe name of this definition for API and seller-facing UI purposes.
The name must be unique within the (merchant, application) pair. Required.
May not be empty and may not exceed 255 characters. Can be modified after creation.
Maximum length: 255
Minimum length: 1
number_configJSONOptional
number_config (anyOf 1)ModelAlternativeExpand UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION number config precision
Optionally, populated when `type` = `NUMBER`, unset otherwise.
number_config (anyOf 2)nullAlternative
selection_configJSONOptional
selection_config (anyOf 1)ModelAlternativeExpand UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections
Populated when `type` is set to `SELECTION`, unset otherwise.
selection_config (anyOf 2)nullAlternative
seller_visibilityJSONOptional
seller_visibility (anyOf 1)stringAlternativeDefines the visibility of a custom attribute to sellers in Square
client applications, Square APIs or in Square UIs (including Square Point
of Sale applications and Square Dashboard).
The visibility of a custom attribute in seller-facing UIs (including Square Point
of Sale applications and Square Dashboard). May be modified.
See [CatalogCustomAttributeDefinitionSellerVisibility](#type-catalogcustomattributedefinitionsellervisibility) for possible values
One of: SELLER_VISIBILITY_HIDDEN, SELLER_VISIBILITY_READ_WRITE_VALUES
seller_visibility (anyOf 2)nullAlternative
source_applicationJSONOptional
source_application (anyOf 1)ModelAlternativeExpand Update Inventory Adjustment — request body — body adjustment source
__Read only.__ Contains information about the application that
created this custom attribute definition.
source_application (anyOf 2)nullAlternative
string_configJSONOptional
string_config (anyOf 1)ModelAlternativeExpand CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION string config enforce uniqueness
Optionally, populated when `type` = `STRING`, unset otherwise.
string_config (anyOf 2)nullAlternative
typestringRequired within parentDefines the possible types for a custom attribute.
The type of this custom attribute. Cannot be modified after creation.
Required.
See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values
One of: STRING, BOOLEAN, NUMBER, SELECTION

Referenced models: UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION number config precision, UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections, CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION string config enforce uniqueness, Upsert Catalog Object — request body — body object type, Update Inventory Adjustment — request body — body adjustment source

UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION number config precision

FieldTypePresenceDescription and constraints
$objectRoot
precisionJSONOptional
precision (anyOf 1)integerAlternativeAn integer between 0 and 5 that represents the maximum number of
positions allowed after the decimal in number custom attribute values
For example:

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

Default: 5
Maximum: 5
precision (anyOf 2)nullAlternative

UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections

FieldTypePresenceDescription and constraints
$objectRootConfiguration associated with `SELECTION`-type custom attribute definitions.
allowed_selectionsJSONOptional
allowed_selections (anyOf 1)arrayAlternativeThe set of valid `CatalogCustomAttributeSelections`. Up to a maximum of 100
selections can be defined. Can be modified.
allowed_selections (anyOf 1)[]ModelEach itemExpand CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections allowed selections array item
allowed_selections (anyOf 2)nullAlternative
max_allowed_selectionsJSONOptional
max_allowed_selections (anyOf 1)integerAlternativeThe maximum number of selections that can be set. The maximum value for this
attribute is 100. The default value is 1. The value can be modified, but changing the value will not
affect existing custom attribute values on objects. Clients need to
handle custom attributes with more selected values than allowed by this limit.
Maximum: 100
max_allowed_selections (anyOf 2)nullAlternative

Referenced models: CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections allowed selections array item

UpsertCatalogObject — request body — body / object / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO

FieldTypePresenceDescription and constraints
$objectRootA parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts.
amountsJSONOptional
amounts (anyOf 1)arrayAlternativeRepresents a set of Quick Amounts at this location.
amounts (anyOf 1)[]ModelEach itemExpand UpsertCatalogObject — request body — body / object / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO amounts Represents a set of Quick Amounts at this location item
amounts (anyOf 2)nullAlternative
eligible_for_auto_amountsJSONOptional
eligible_for_auto_amounts (anyOf 1)booleanAlternativeRepresents location's eligibility for auto amounts
The boolean should be consistent with whether there are AUTO amounts in the `amounts`.
eligible_for_auto_amounts (anyOf 2)nullAlternative
optionstringRequired within parentDetermines a seller's option on Quick Amounts feature.
Represents the option seller currently uses on Quick Amounts.
See [CatalogQuickAmountsSettingsOption](#type-catalogquickamountssettingsoption) for possible values
One of: DISABLED, MANUAL, AUTO

Referenced models: UpsertCatalogObject — request body — body / object / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO amounts Represents a set of Quick Amounts at this location item

Report an issue with this page

Necessary

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

Always active

Analytics

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

Performance diagnostics

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

Advertising

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

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