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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A discount applicable to items. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
discount_type | JSON | Optional | |
discount_type (anyOf 1) | string | Alternative | How to apply a CatalogDiscount to a CatalogItem. Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for possible values One of: FIXED_PERCENTAGE, FIXED_AMOUNT, VARIABLE_PERCENTAGE, VARIABLE_AMOUNT |
discount_type (anyOf 2) | null | Alternative | |
label_color | JSON | Optional | |
label_color (anyOf 1) | string | Alternative | The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code. |
label_color (anyOf 2) | null | Alternative | |
maximum_amount_money | JSON | Optional | |
maximum_amount_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
modify_tax_basis | JSON | Optional | |
modify_tax_basis (anyOf 1) | string | Alternative | Indicates whether this discount should reduce the price used to calculate tax. Most discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must be calculated based on an item's price, ignoring a particular discount. For example, in many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a customer pays but does not reduce the sale price used to calculate how much sales tax is due. In this case, the discount representing that manufacturer coupon should have `DO_NOT_MODIFY_TAX_BASIS` for this field. If you are unsure whether you need to use this field, consult your tax professional. See [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values One of: MODIFY_TAX_BASIS, DO_NOT_MODIFY_TAX_BASIS |
modify_tax_basis (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The discount name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not use this field for amount-based or variable discounts. |
percentage (anyOf 2) | null | Alternative | |
pin_required | JSON | Optional | |
pin_required (anyOf 1) | boolean | Alternative | Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app. |
pin_required (anyOf 2) | null | Alternative |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A [CatalogObject](entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog. |
abbreviation | JSON | Optional | |
abbreviation (anyOf 1) | string | Alternative | The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. This attribute is searchable, and its value length is of Unicode code points. Maximum length: 24 |
abbreviation (anyOf 2) | null | Alternative | |
buyer_facing_name | JSON | Optional | |
buyer_facing_name (anyOf 1) | string | Alternative | The override to a product name to display to users Maximum length: 512 |
buyer_facing_name (anyOf 2) | null | Alternative | |
categories | JSON | Optional | |
categories (anyOf 1) | array | Alternative | The list of categories to which this item belongs. Each entry includes the category ID and an ordinal value that determines the item's relative position within that category. |
categories (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
category_id | JSON | Optional | |
category_id (anyOf 1) | string | Alternative | The ID of the item's category, if any. Deprecated since 2023-12-13. Use `CatalogItem.categories`, instead. |
category_id (anyOf 2) | null | Alternative | |
channels | JSON | Optional | |
channels (anyOf 1) | array | Alternative | A list of IDs representing channels, such as a Square Online site, where the item can be made visible or available. This field is read only and cannot be edited. |
channels (anyOf 1)[] | string | Each item | |
channels (anyOf 2) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The item's description. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Deprecated at 2022-07-20, this field is planned to retire in 6 months. You should migrate to use `description_html` to set the description of the [CatalogItem](entity:CatalogItem) instance. The `description` and `description_html` field values are kept in sync. If you try to set the both fields, the `description_html` text value overwrites the `description` value. Updates in one field are also reflected in the other, except for when you use an early version before Square API 2022-07-20 and `description_html` is set to blank, setting the `description` value to null does not nullify `description_html`. Maximum length: 4096 |
description (anyOf 2) | null | Alternative | |
description_html | JSON | Optional | |
description_html (anyOf 1) | string | Alternative | The item's description as expressed in valid HTML elements. The length of this field value, including those of HTML tags, is of Unicode points. With application query filters, the text values of the HTML elements and attributes are searchable. Invalid or unsupported HTML elements or attributes are ignored. Supported HTML elements include: - `a`: Link. Supports linking to website URLs, email address, and telephone numbers. - `b`, `strong`: Bold text - `br`: Line break - `code`: Computer code - `div`: Section - `h1-h6`: Headings - `i`, `em`: Italics - `li`: List element - `ol`: Numbered list - `p`: Paragraph - `ul`: Bullet list - `u`: Underline Supported HTML attributes include: - `align`: Alignment of the text content - `href`: Link destination - `rel`: Relationship between link's target and source - `target`: Place to open the linked document Maximum length: 65535 |
description_html (anyOf 2) | null | Alternative | |
description_plaintext | string | Optional | A server-generated plaintext version of the `description_html` field, without formatting tags. Maximum length: 65535 Read only: true |
ecom_image_uris | JSON | Optional | |
ecom_image_uris (anyOf 1) | array | Alternative | Deprecated. A comma-separated list of encoded URIs pointing to a set of published e-commerce images for the Item. |
ecom_image_uris (anyOf 1)[] | string | Each item | |
ecom_image_uris (anyOf 2) | null | Alternative | |
ecom_seo_data | JSON | Optional | |
ecom_seo_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store The SEO data for a seller's Square Online store. |
ecom_seo_data (anyOf 2) | null | Alternative | |
ecom_uri | JSON | Optional | |
ecom_uri (anyOf 1) | string | Alternative | Deprecated. A URI pointing to a published e-commerce product page for the Item. |
ecom_uri (anyOf 2) | null | Alternative | |
food_and_beverage_details | JSON | Optional | |
food_and_beverage_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
image_ids | JSON | Optional | |
image_ids (anyOf 1) | array | Alternative | The IDs of images associated with this `CatalogItem` instance. These images will be shown to customers in Square Online Store. The first image will show up as the icon for this item in POS. |
image_ids (anyOf 1)[] | string | Each item | |
image_ids (anyOf 2) | null | Alternative | |
is_alcoholic | JSON | Optional | |
is_alcoholic (anyOf 1) | boolean | Alternative | Indicates whether this item is alcoholic (`true`) or not (`false`). |
is_alcoholic (anyOf 2) | null | Alternative | |
is_archived | JSON | Optional | |
is_archived (anyOf 1) | boolean | Alternative | Indicates whether this item is archived (`true`) or not (`false`). |
is_archived (anyOf 2) | null | Alternative | |
is_taxable | JSON | Optional | |
is_taxable (anyOf 1) | boolean | Alternative | Indicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`. |
is_taxable (anyOf 2) | null | Alternative | |
item_options | JSON | Optional | |
item_options (anyOf 1) | array | Alternative | List of item options IDs for this item. Used to manage and group item variations in a specified order. Maximum: 6 item options. |
item_options (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations item options array item |
item_options (anyOf 2) | null | Alternative | |
kitchen_name | JSON | Optional | |
kitchen_name (anyOf 1) | string | Alternative | (Optional) Name that the restaurant wants to display to their kitchen workers instead of the customer-facing name. e.g., customer name might be "Big John's Mega Burger" and the kitchen name is "12oz beef burger" |
kitchen_name (anyOf 2) | null | Alternative | |
label_color | JSON | Optional | |
label_color (anyOf 1) | string | Alternative | The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. |
label_color (anyOf 2) | null | Alternative | |
modifier_list_info | JSON | Optional | |
modifier_list_info (anyOf 1) | array | Alternative | A set of `CatalogItemModifierListInfo` objects representing the modifier lists that apply to this item, along with the overrides and min and max limits that are specific to this item. Modifier lists may also be added to or deleted from an item using `UpdateItemModifierLists`. |
modifier_list_info (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The item's name. This is a searchable attribute for use in applicable query filters, its value must not be empty, and the length is of Unicode code points. Maximum length: 512 |
name (anyOf 2) | null | Alternative | |
product_type | JSON | Optional | |
product_type (anyOf 1) | string | Alternative | The type of a CatalogItem. Connect V2 only allows the creation of `REGULAR` or `APPOINTMENTS_SERVICE` items. The product type of the item. Once set, the `product_type` value cannot be modified. Items of the `LEGACY_SQUARE_ONLINE_SERVICE` and `LEGACY_SQUARE_ONLINE_MEMBERSHIP` product types can be updated but cannot be created using the API. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values 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) | null | Alternative | |
reporting_category | JSON | Optional | |
reporting_category (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
skip_modifier_screen | JSON | Optional | |
skip_modifier_screen (anyOf 1) | boolean | Alternative | If `false`, the Square Point of Sale app will present the `CatalogItem`'s details screen immediately, allowing the merchant to choose `CatalogModifier`s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. |
skip_modifier_screen (anyOf 2) | null | Alternative | |
sort_name | JSON | Optional | |
sort_name (anyOf 1) | string | Alternative | A name to sort the item by. If this name is unspecified, namely, the `sort_name` field is absent, the regular `name` field is used for sorting. Its value must not be empty. It is currently supported for sellers of the Japanese locale only. |
sort_name (anyOf 2) | null | Alternative | |
tax_ids | JSON | Optional | |
tax_ids (anyOf 1) | array | Alternative | A set of IDs indicating the taxes enabled for this item. When updating an item, any taxes listed here will be added to the item. Taxes may also be added to or deleted from an item using `UpdateItemTaxes`. |
tax_ids (anyOf 1)[] | string | Each item | |
tax_ids (anyOf 2) | null | Alternative | |
variations | JSON | Optional | |
variations (anyOf 1) | array | Alternative | A list of [CatalogItemVariation](entity:CatalogItemVariation) objects for this item. An item must have at least one variation. |
variations (anyOf 1)[] | Model | Each item | Expand Upsert Catalog Object — request body — body object |
variations (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store, 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
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Dietary preferences that can be assigned to an `FOOD_AND_BEV` item and its ingredients. |
custom_name | JSON | Optional | |
custom_name (anyOf 1) | string | Alternative | The name of a user-defined custom dietary preference. This should be null if it's a standard dietary preference. |
custom_name (anyOf 2) | null | Alternative | |
standard_name | JSON | Optional | |
standard_name (anyOf 1) | string | Alternative | Standard dietary preferences for food and beverage items that are recommended on item creation. The name of the dietary preference from a standard pre-defined list. This should be null if it's a custom dietary preference. See [StandardDietaryPreference](#type-standarddietarypreference) for possible values One of: DAIRY_FREE, GLUTEN_FREE, HALAL, KOSHER, NUT_FREE, VEGAN, VEGETARIAN |
standard_name (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of dietary preference for the `FOOD_AND_BEV` type of items and integredients. The dietary preference type. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`. See [DietaryPreferenceType](#type-dietarypreferencetype) for possible values One of: STANDARD, CUSTOM |
type (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes the ingredient used in a `FOOD_AND_BEV` item. |
custom_name | JSON | Optional | |
custom_name (anyOf 1) | string | Alternative | The name of a custom user-defined ingredient. This should be null if it's a standard dietary preference. |
custom_name (anyOf 2) | null | Alternative | |
standard_name | JSON | Optional | |
standard_name (anyOf 1) | string | Alternative | Standard ingredients for food and beverage items that are recommended on item creation. The name of the ingredient from a standard pre-defined list. This should be null if it's a custom dietary preference. See [StandardIngredient](#type-standardingredient) for possible values One of: CELERY, CRUSTACEANS, EGGS, FISH, GLUTEN, LUPIN, MILK, MOLLUSCS, MUSTARD, PEANUTS, SESAME, SOY, SULPHITES, TREE_NUTS |
standard_name (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of dietary preference for the `FOOD_AND_BEV` type of items and integredients. The dietary preference type of the ingredient. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`. See [DietaryPreferenceType](#type-dietarypreferencetype) for possible values One of: STANDARD, CUSTOM |
type (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Controls how a modifier list is applied to a specific item. This object allows for item-specific customization of modifier list behavior and provides the ability to override global modifier list settings. |
allow_quantities | JSON | Optional | |
allow_quantities (anyOf 1) | string | Alternative | Item level overrides for bool attributes Controls whether multiple quantities of the same modifier can be selected for this item. - `YES` means that every modifier in the `CatalogModifierList` can have multiple quantities selected for this item. - `NO` means that each modifier in the `CatalogModifierList` can be selected only once for this item. - `NOT_SET` means that the `allow_quantities` setting on the `CatalogModifierList` is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values One of: NO, YES, NOT_SET |
allow_quantities (anyOf 2) | null | Alternative | |
enabled | JSON | Optional | |
enabled (anyOf 1) | boolean | Alternative | If `true`, enable this `CatalogModifierList`. The default value is `true`. |
enabled (anyOf 2) | null | Alternative | |
hidden_from_customer_override | JSON | Optional | |
hidden_from_customer_override (anyOf 1) | string | Alternative | Item level overrides for bool attributes Controls whether all modifiers for this item are hidden from customer receipts. - `YES` means that all modifiers in the `CatalogModifierList` are hidden from customer receipts for this item. - `NO` means that all modifiers in the `CatalogModifierList` are visible on customer receipts for this item. - `NOT_SET` means that the `hidden_from_customer` setting on the `CatalogModifierList` is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values One of: NO, YES, NOT_SET |
hidden_from_customer_override (anyOf 2) | null | Alternative | |
is_conversational | JSON | Optional | |
is_conversational (anyOf 1) | string | Alternative | Item level overrides for bool attributes Controls whether conversational mode is enabled for modifiers on this item. - `YES` means conversational mode is enabled for every modifier in the `CatalogModifierList`. - `NO` means that conversational mode is not enabled for any modifier in the `CatalogModifierList`. - `NOT_SET` means that conversational mode is not enabled for any modifier in the `CatalogModifierList`. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values One of: NO, YES, NOT_SET |
is_conversational (anyOf 2) | null | Alternative | |
max_selected_modifiers | JSON | Optional | |
max_selected_modifiers (anyOf 1) | integer | Alternative | The maximum number of modifiers that can be selected. Values: - 0: No maximum limit. - -1: Default value, the attribute was not set by the client. When `min_selected_modifiers` is also -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`. - >0: The maximum total modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled. - < -1: Invalid. Treated as no maximum limit. |
max_selected_modifiers (anyOf 2) | null | Alternative | |
min_selected_modifiers | JSON | Optional | |
min_selected_modifiers (anyOf 1) | integer | Alternative | The minimum number of modifiers that must be selected from this modifier list. Values: - 0: No selection is required. - -1: Default value, the attribute was not set by the client. When `max_selected_modifiers` is also -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`. - >0: The required minimum modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled. - < -1: Invalid. Treated as no selection required. |
min_selected_modifiers (anyOf 2) | null | Alternative | |
modifier_list_id | string | Required within parent | The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`. Minimum length: 1 |
modifier_overrides | JSON | Optional | |
modifier_overrides (anyOf 1) | array | Alternative | A set of `CatalogModifierOverride` objects that override default modifier settings for this item. |
modifier_overrides (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | integer | Alternative | The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied to a `CatalogItem` instance. |
ordinal (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Options to control how to override the default behavior of the specified modifier. |
hidden_online_override | JSON | Optional | |
hidden_online_override (anyOf 1) | string | Alternative | Item level overrides for bool attributes If `YES`, this setting overrides the `hidden_online` setting on the `CatalogModifier` object, and the modifier is always hidden from online sales channels. If `NO`, the modifier is not hidden. It is always visible in online sales channels for this catalog item. `NOT_SET` means the `hidden_online` setting on the `CatalogModifier` object is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values One of: NO, YES, NOT_SET |
hidden_online_override (anyOf 2) | null | Alternative | |
modifier_id | string | Required within parent | The ID of the `CatalogModifier` whose default behavior is being overridden. Minimum length: 1 |
on_by_default | JSON | Optional | |
on_by_default (anyOf 1) | boolean | Alternative | __Deprecated__: Use `on_by_default_override` instead. |
on_by_default (anyOf 2) | null | Alternative | |
on_by_default_override | JSON | Optional | |
on_by_default_override (anyOf 1) | string | Alternative | Item level overrides for bool attributes If `YES`, this setting overrides the `on_by_default` setting on the `CatalogModifier` object, and the modifier is always selected by default for the catalog item. If `NO`, the modifier is not selected by default for this catalog item. `NOT_SET` means the `on_by_default` setting on the `CatalogModifier` object is obeyed. See [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values One of: NO, YES, NOT_SET |
on_by_default_override (anyOf 2) | null | Alternative |
Upsert Catalog Object — request body — body object item option data A group of variations for a `Catalog Item`
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A group of variations for a `CatalogItem`. |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The item option's human-readable description. Displayed in the Square Point of Sale app for the seller and in the Online Store or on receipts for the buyer. This is a searchable attribute for use in applicable query filters. |
description (anyOf 2) | null | Alternative | |
display_name | JSON | Optional | |
display_name (anyOf 1) | string | Alternative | The item option's display name for the customer. This is a searchable attribute for use in applicable query filters. |
display_name (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The item option's display name for the seller. Must be unique across all item options. This is a searchable attribute for use in applicable query filters. |
name (anyOf 2) | null | Alternative | |
show_colors | JSON | Optional | |
show_colors (anyOf 1) | boolean | Alternative | If true, display colors for entries in `values` when present. |
show_colors (anyOf 2) | null | Alternative | |
values | JSON | Optional | |
values (anyOf 1) | array | Alternative | A list of CatalogObjects containing the `CatalogItemOptionValue`s for this item. |
values (anyOf 1)[] | Model | Each item | Expand Upsert Catalog Object — request body — body object |
values (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An enumerated value that can link a `CatalogItemVariation` to an item option as one of its item option values. |
color | JSON | Optional | |
color (anyOf 1) | string | Alternative | The HTML-supported hex color for the item option (e.g., "#ff8d4e85"). Only displayed if `show_colors` is enabled on the parent `ItemOption`. When left unset, `color` defaults to white ("#ffffff") when `show_colors` is enabled on the parent `ItemOption`. |
color (anyOf 2) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | A human-readable description for the option value. This is a searchable attribute for use in applicable query filters. |
description (anyOf 2) | null | Alternative | |
item_option_id | JSON | Optional | |
item_option_id (anyOf 1) | string | Alternative | Unique ID of the associated item option. |
item_option_id (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | Name of this item option value. This is a searchable attribute for use in applicable query filters. |
name (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | integer | Alternative | Determines where this option value appears in a list of option values. |
ordinal (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An item variation, representing a product for sale, in the Catalog object model. Each [item](entity:CatalogItem) must have at least one item variation and can have at most 250 item variations. An item variation can be sellable, stockable, or both if it has a unit of measure for its count for the sold number of the variation, the stocked number of the variation, or both. For example, when a variation representing wine is stocked and sold by the bottle, the variation is both stockable and sellable. But when a variation of the wine is sold by the glass, the sold units cannot be used as a measure of the stocked units. This by-the-glass variation is sellable, but not stockable. To accurately keep track of the wine's inventory count at any time, the sellable count must be converted to stockable count. Typically, the seller defines this unit conversion. For example, 1 bottle equals 5 glasses. The Square API exposes the `stockable_conversion` property on the variation to specify the conversion. Thus, when two glasses of the wine are sold, the sellable count decreases by 2, and the stockable count automatically decreases by 0.4 bottle according to the conversion. |
available_for_booking | JSON | Optional | |
available_for_booking (anyOf 1) | boolean | Alternative | If the `CatalogItem` that owns this item variation is of type `APPOINTMENTS_SERVICE`, a bool representing whether this service is available for booking. |
available_for_booking (anyOf 2) | null | Alternative | |
image_ids | JSON | Optional | |
image_ids (anyOf 1) | array | Alternative | The IDs of images associated with this `CatalogItemVariation` instance. These images will be shown to customers in Square Online Store. |
image_ids (anyOf 1)[] | string | Each item | |
image_ids (anyOf 2) | null | Alternative | |
inventory_alert_threshold | JSON | Optional | |
inventory_alert_threshold (anyOf 1) | JSON | Alternative | |
inventory_alert_threshold (anyOf 1) (anyOf 1) | integer | Alternative | If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. Deprecated because this field has never been global. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
inventory_alert_threshold (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
inventory_alert_threshold (anyOf 2) | null | Alternative | |
inventory_alert_type | JSON | Optional | |
inventory_alert_type (anyOf 1) | string | Alternative | Indicates whether Square should alert the merchant when the inventory quantity of a CatalogItemVariation is low. Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. Deprecated because this field has never been global. See [InventoryAlertType](#type-inventoryalerttype) for possible values One of: NONE, LOW_QUANTITY |
inventory_alert_type (anyOf 2) | null | Alternative | |
item_id | JSON | Optional | |
item_id (anyOf 1) | string | Alternative | The ID of the `CatalogItem` associated with this item variation. |
item_id (anyOf 2) | null | Alternative | |
item_option_values | JSON | Optional | |
item_option_values (anyOf 1) | array | Alternative | List of item option values associated with this item variation. Listed in the same order as the item options of the parent item. |
item_option_values (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information item option values array item |
item_option_values (anyOf 2) | null | Alternative | |
kitchen_name | JSON | Optional | |
kitchen_name (anyOf 1) | string | Alternative | (Optional) Name that the restaurant wants to display to their kitchen workers instead of the customer-facing name. e.g., customer name might be "Mega-Jumbo Triplesized" and the kitchen name is "Large container" |
kitchen_name (anyOf 2) | null | Alternative | |
location_overrides | JSON | Optional | |
location_overrides (anyOf 1) | array | Alternative | Per-location price and inventory overrides. |
location_overrides (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
measurement_unit_id | JSON | Optional | |
measurement_unit_id (anyOf 1) | string | Alternative | ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity sold of this item variation. If left unset, the item will be sold in whole quantities. |
measurement_unit_id (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The item variation's name. This is a searchable attribute for use in applicable query filters. Its value has a maximum length of 255 Unicode code points. However, when the parent [item](entity:CatalogItem) uses [item options](entity:CatalogItemOption), this attribute is auto-generated, read-only, and can be longer than 255 Unicode code points. |
name (anyOf 2) | null | Alternative | |
ordinal | integer | Optional | The order in which this item variation should be displayed. This value is read-only. On writes, the ordinal for each item variation within a parent `CatalogItem` is set according to the item variations's position. On reads, the value is not guaranteed to be sequential or unique. Read only: true |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The item variation's price, if fixed pricing is used. |
price_money (anyOf 2) | null | Alternative | |
pricing_type | JSON | Optional | |
pricing_type (anyOf 1) | string | Alternative | Indicates whether the price of a CatalogItemVariation should be entered manually at the time of sale. Indicates whether the item variation's price is fixed or determined at the time of sale. See [CatalogPricingType](#type-catalogpricingtype) for possible values One of: FIXED_PRICING, VARIABLE_PRICING |
pricing_type (anyOf 2) | null | Alternative | |
sellable | JSON | Optional | |
sellable (anyOf 1) | boolean | Alternative | Whether this variation can be sold. The inventory count of a sellable variation indicates the number of units available for sale. When a variation is both stockable and sellable, its sellable inventory count can be smaller than or equal to its stockable count. |
sellable (anyOf 2) | null | Alternative | |
service_duration | JSON | Optional | |
service_duration (anyOf 1) | JSON | Alternative | |
service_duration (anyOf 1) (anyOf 1) | integer | Alternative | If the `CatalogItem` that owns this item variation is of type `APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For example, a 30 minute appointment would have the value `1800000`, which is equal to 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second). Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
service_duration (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
service_duration (anyOf 2) | null | Alternative | |
sku | JSON | Optional | |
sku (anyOf 1) | string | Alternative | The item variation's SKU, if any. This is a searchable attribute for use in applicable query filters. |
sku (anyOf 2) | null | Alternative | |
stockable | JSON | Optional | |
stockable (anyOf 1) | boolean | Alternative | Whether stock is counted directly on this variation (TRUE) or only on its components (FALSE). When a variation is both stockable and sellable, the inventory count of a stockable variation keeps track of the number of units of this variation in stock and is not an indicator of the number of units of the variation that can be sold. |
stockable (anyOf 2) | null | Alternative | |
stockable_conversion | JSON | Optional | |
stockable_conversion (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information stockable conversion nonstockable quantity, stockable item variation id, stockable quantity The unit conversion rule, as prescribed by the [CatalogStockConversion](entity:CatalogStockConversion) type, that describes how this non-stockable (i.e., sellable/receivable) item variation is converted to/from the stockable item variation sharing the same parent item. With the stock conversion, you can accurately track inventory when an item variation is sold in one unit, but stocked in another unit. |
stockable_conversion (anyOf 2) | null | Alternative | |
team_member_ids | JSON | Optional | |
team_member_ids (anyOf 1) | array | Alternative | Tokens of employees that can perform the service represented by this variation. Only valid for variations of type `APPOINTMENTS_SERVICE`. |
team_member_ids (anyOf 1)[] | string | Each item | |
team_member_ids (anyOf 2) | null | Alternative | |
track_inventory | JSON | Optional | |
track_inventory (anyOf 1) | boolean | Alternative | If `true`, inventory tracking is active for the variation at all locations by default. This value can be overridden for specific locations using `ItemVariationLocationOverrides.track_inventory`. If unset at both levels, inventory tracking is disabled. |
track_inventory (anyOf 2) | null | Alternative | |
upc | JSON | Optional | |
upc (anyOf 1) | string | Alternative | The universal product code (UPC) of the item variation, if any. This is a searchable attribute for use in applicable query filters. The value of this attribute should be a number of 12-14 digits long. This restriction is enforced on the Square Seller Dashboard, Square Point of Sale or Retail Point of Sale apps, where this attribute shows in the GTIN field. If a non-compliant UPC value is assigned to this attribute using the API, the value is not editable on the Seller Dashboard, Square Point of Sale or Retail Point of Sale apps unless it is updated to fit the expected format. |
upc (anyOf 2) | null | Alternative | |
user_data | JSON | Optional | |
user_data (anyOf 1) | string | Alternative | Arbitrary user metadata to associate with the item variation. This attribute value length is of Unicode code points. Maximum length: 255 |
user_data (anyOf 2) | null | Alternative | |
vendor_information | JSON | Optional | |
vendor_information (anyOf 1) | array | Alternative | Details of the vendor this product is purchased from. This field can be set only if the seller has an active subscription to either Square for Retail Premium or Square for Restaurants Premium. |
vendor_information (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative |
Referenced models: Create Catalog Image — response body — image item variation data available for booking, image ids, inventory alert threshold, inventory alert type, item id, item option values, kitchen name, location overrides, measurement unit id, name, ordinal, price money, pricing type, sellable, service duration, sku, stockable, stockable conversion, team member ids, track inventory, upc, user data, vendor information item option values array item, 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Price and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`. |
inventory_alert_threshold | JSON | Optional | |
inventory_alert_threshold (anyOf 1) | JSON | Alternative | |
inventory_alert_threshold (anyOf 1) (anyOf 1) | integer | Alternative | If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
inventory_alert_threshold (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
inventory_alert_threshold (anyOf 2) | null | Alternative | |
inventory_alert_type | JSON | Optional | |
inventory_alert_type (anyOf 1) | string | Alternative | Indicates whether Square should alert the merchant when the inventory quantity of a CatalogItemVariation is low. Indicates whether the `CatalogItemVariation` displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values One of: NONE, LOW_QUANTITY |
inventory_alert_type (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the `Location`. This can include locations that are deactivated. |
location_id (anyOf 2) | null | Alternative | |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
pricing_type | JSON | Optional | |
pricing_type (anyOf 1) | string | Alternative | Indicates whether the price of a CatalogItemVariation should be entered manually at the time of sale. The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`. See [CatalogPricingType](#type-catalogpricingtype) for possible values One of: FIXED_PRICING, VARIABLE_PRICING |
pricing_type (anyOf 2) | null | Alternative | |
sold_out | boolean | Optional | Indicates whether the overridden item variation is sold out at the specified location. When inventory tracking is enabled on the item variation either globally or at the specified location, the item variation is automatically marked as sold out when its inventory count reaches zero. The seller can manually set the item variation as sold out even when the inventory count is greater than zero. Attempts by an application to set this attribute are ignored. Regardless how the sold-out status is set, applications should treat its inventory count as zero when this attribute value is `true`. Read only: true |
sold_out_valid_until | string | Optional | The seller-assigned timestamp, of the RFC 3339 format, to indicate when this sold-out variation becomes available again at the specified location. Attempts by an application to set this attribute are ignored. When the current time is later than this attribute value, the affected item variation is no longer sold out. Read only: true |
track_inventory | JSON | Optional | |
track_inventory (anyOf 1) | boolean | Alternative | Indicates whether inventory tracking is active for the `CatalogItemVariation` at this `Location`. When set, this value explicitly overrides the global `track_inventory` setting. When unset, the location should use the global value. If both global and location-level values are unset, inventory tracking is disabled. |
track_inventory (anyOf 2) | null | Alternative |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Information about the vendor of an item variation. |
unit_cost_money | JSON | Optional | |
unit_cost_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
vendor_code | JSON | Optional | |
vendor_code (anyOf 1) | string | Alternative | Unique identifier of this product in the specified vendor's' inventory system. When the product is added to a purchase order, the vendor code is pre-filled based on the selected vendor. |
vendor_code (anyOf 2) | null | Alternative | |
vendor_id | JSON | Optional | |
vendor_id (anyOf 1) | string | Alternative | ID of the [Vendor](entity:Vendor) linked to a default cost of this product. When the product is added to a purchase order, the default cost is pre-filled. This field is not validated. Clients should gracefully handle cases where the vendor_id does not match any existing vendor. |
vendor_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the unit used to measure a `CatalogItemVariation` and specifies the precision for decimal quantities. |
measurement_unit | JSON | Optional | |
measurement_unit (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
precision | JSON | Optional | |
precision (anyOf 1) | integer | Alternative | An integer between 0 and 5 that represents the maximum number of positions allowed after the decimal in quantities measured with this unit. For example: - if the precision is 0, the quantity can be 1, 2, 3, etc. - if the precision is 1, the quantity can be 0.1, 0.2, etc. - if the precision is 2, the quantity can be 0.01, 0.12, etc. Default: 3 |
precision (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a unit of measurement to use with a quantity, such as ounces or inches. Exactly one of the following fields are required: `custom_unit`, `area_unit`, `length_unit`, `volume_unit`, and `weight_unit`. |
area_unit | JSON | Optional | |
area_unit (anyOf 1) | string | Alternative | Unit of area used to measure a quantity. Represents a standard area unit. See [MeasurementUnitArea](#type-measurementunitarea) for possible values 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) | null | Alternative | |
custom_unit | JSON | Optional | |
custom_unit (anyOf 1) | Model | Alternative | Expand Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit custom unit abbreviation, name A custom unit of measurement defined by the seller using the Point of Sale app or ad-hoc as an order line item. |
custom_unit (anyOf 2) | null | Alternative | |
generic_unit | JSON | Optional | |
generic_unit (anyOf 1) | string | Alternative | Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values One of: UNIT |
generic_unit (anyOf 2) | null | Alternative | |
length_unit | JSON | Optional | |
length_unit (anyOf 1) | string | Alternative | The unit of length used to measure a quantity. Represents a standard length unit. See [MeasurementUnitLength](#type-measurementunitlength) for possible values One of: IMPERIAL_INCH, IMPERIAL_FOOT, IMPERIAL_YARD, IMPERIAL_MILE, METRIC_MILLIMETER, METRIC_CENTIMETER, METRIC_METER, METRIC_KILOMETER |
length_unit (anyOf 2) | null | Alternative | |
time_unit | JSON | Optional | |
time_unit (anyOf 1) | string | Alternative | Unit of time used to measure a quantity (a duration). Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values One of: GENERIC_MILLISECOND, GENERIC_SECOND, GENERIC_MINUTE, GENERIC_HOUR, GENERIC_DAY |
time_unit (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Describes the type of this unit and indicates which field contains the unit information. This is an ‘open’ enum. Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values One of: TYPE_CUSTOM, TYPE_AREA, TYPE_LENGTH, TYPE_VOLUME, TYPE_WEIGHT, TYPE_GENERIC |
type (anyOf 2) | null | Alternative | |
volume_unit | JSON | Optional | |
volume_unit (anyOf 1) | string | Alternative | The unit of volume used to measure a quantity. Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values 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) | null | Alternative | |
weight_unit | JSON | Optional | |
weight_unit (anyOf 1) | string | Alternative | Unit of weight used to measure a quantity. Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values One of: IMPERIAL_WEIGHT_OUNCE, IMPERIAL_POUND, IMPERIAL_STONE, METRIC_MILLIGRAM, METRIC_GRAM, METRIC_KILOGRAM |
weight_unit (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A modifier that can be applied to items at the time of sale. For example, a cheese modifier for a burger, or a flavor modifier for a serving of ice cream. |
child_modifier_list_ids | JSON | Optional | |
child_modifier_list_ids (anyOf 1) | array | Alternative | Child `CatalogModifierList`s that this `CatalogModifier` nests for multi-step choices. When a customer or staff member selects this modifier, the relevant follow-up modifier list appears. For example, selecting "Hummus" reveals a secondary "Choose Hummus Flavor" set, and selecting a flavor could reveal a third-level portion size set. Each entry references a child modifier list. Each modifier can nest up to 15 child modifier lists, and supports up to 3 levels of nesting depth. The order in `child_modifier_list_ids` determines display order during checkout. |
child_modifier_list_ids (anyOf 1)[] | string | Each item | |
child_modifier_list_ids (anyOf 2) | null | Alternative | |
hidden_online | JSON | Optional | |
hidden_online (anyOf 1) | boolean | Alternative | When `true`, this modifier is hidden from online ordering channels. This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`. |
hidden_online (anyOf 2) | null | Alternative | |
image_id | JSON | Optional | |
image_id (anyOf 1) | string | Alternative | The ID of the image associated with this `CatalogModifier` instance. Currently this image is not displayed by Square, but is free to be displayed in 3rd party applications. |
image_id (anyOf 2) | null | Alternative | |
kitchen_color | JSON | Optional | |
kitchen_color (anyOf 1) | string | Alternative | The text color for a `CatalogModifier` on Kitchen Display System (KDS) tickets. The text color for this modifier on Kitchen Display System (KDS) tickets. Kitchen staff use the color to identify important modifiers quickly. See [CatalogModifierColor](#type-catalogmodifiercolor) for possible values 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) | null | Alternative | |
kitchen_name | JSON | Optional | |
kitchen_name (anyOf 1) | string | Alternative | (Optional) Name that the restaurant wants to display to their kitchen workers instead of the customer-facing name. e.g., customer name might be "Double Baconize" and the kitchen name is "Add 2x bacon" |
kitchen_name (anyOf 2) | null | Alternative | |
location_overrides | JSON | Optional | |
location_overrides (anyOf 1) | array | Alternative | Location-specific price overrides. |
location_overrides (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
modifier_list_id | JSON | Optional | |
modifier_list_id (anyOf 1) | string | Alternative | The ID of the `CatalogModifierList` associated with this modifier. |
modifier_list_id (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The modifier name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
on_by_default | JSON | Optional | |
on_by_default (anyOf 1) | boolean | Alternative | When `true`, this modifier is selected by default when displaying the modifier list. This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`. |
on_by_default (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | integer | Alternative | Determines where this `CatalogModifier` appears in the `CatalogModifierList`. |
ordinal (anyOf 2) | null | Alternative | |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The modifier price. |
price_money (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Location-specific overrides for specified properties of a `CatalogModifier` object. |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the `Location` object representing the location. This can include a deactivated location. |
location_id (anyOf 2) | null | Alternative | |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
sold_out | boolean | Optional | Indicates whether the modifier is sold out at the specified location or not. As an example, for cheese (modifier) burger (item), when the modifier is sold out, it is the cheese, but not the burger, that is sold out. The seller can manually set this sold out status. Attempts by an application to set this attribute are ignored. Read only: true |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A 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_quantities | JSON | Optional | |
allow_quantities (anyOf 1) | boolean | Alternative | When `true`, allows multiple quantities of the same modifier to be selected. |
allow_quantities (anyOf 2) | null | Alternative | |
hidden_from_customer | JSON | Optional | |
hidden_from_customer (anyOf 1) | boolean | Alternative | If `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) | null | Alternative | |
image_ids | JSON | Optional | |
image_ids (anyOf 1) | array | Alternative | The 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)[] | string | Each item | |
image_ids (anyOf 2) | null | Alternative | |
internal_name | JSON | Optional | |
internal_name (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
is_conversational | JSON | Optional | |
is_conversational (anyOf 1) | boolean | Alternative | True if modifiers belonging to this list can be used conversationally. |
is_conversational (anyOf 2) | null | Alternative | |
max_length | JSON | Optional | |
max_length (anyOf 1) | integer | Alternative | The 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) | null | Alternative | |
max_selected_modifiers | JSON | Optional | |
max_selected_modifiers (anyOf 1) | JSON | Alternative | |
max_selected_modifiers (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of modifiers that 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) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
max_selected_modifiers (anyOf 2) | null | Alternative | |
min_selected_modifiers | JSON | Optional | |
min_selected_modifiers (anyOf 1) | JSON | Alternative | |
min_selected_modifiers (anyOf 1) (anyOf 1) | integer | Alternative | The minimum number of modifiers that must be selected from this 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) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
min_selected_modifiers (anyOf 2) | null | Alternative | |
modifier_type | JSON | Optional | |
modifier_type (anyOf 1) | string | Alternative | Defines 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) | null | Alternative | |
modifiers | JSON | Optional | |
modifiers (anyOf 1) | array | Alternative | A 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)[] | Model | Each item | Expand Upsert Catalog Object — request body — body object |
modifiers (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | integer | Alternative | The position of this `CatalogModifierList` within a list of `CatalogModifierList` instances. |
ordinal (anyOf 2) | null | Alternative | |
selection_type | JSON | Optional | |
selection_type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
text_required | JSON | Optional | |
text_required (anyOf 1) | boolean | Alternative | Whether 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines how discounts are automatically applied to a set of items that match the pricing rule during the active time period. |
apply_products_id | JSON | Optional | |
apply_products_id (anyOf 1) | string | Alternative | __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) | null | Alternative | |
customer_group_ids_any | JSON | Optional | |
customer_group_ids_any (anyOf 1) | array | Alternative | A 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)[] | string | Each item | |
customer_group_ids_any (anyOf 2) | null | Alternative | |
discount_id | JSON | Optional | |
discount_id (anyOf 1) | string | Alternative | Unique ID for the `CatalogDiscount` to take off the price of all matched items. |
discount_id (anyOf 2) | null | Alternative | |
exclude_products_id | JSON | Optional | |
exclude_products_id (anyOf 1) | string | Alternative | `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) | null | Alternative | |
exclude_strategy | JSON | Optional | |
exclude_strategy (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
match_products_id | JSON | Optional | |
match_products_id (anyOf 1) | string | Alternative | Unique 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) | null | Alternative | |
minimum_order_subtotal_money | JSON | Optional | |
minimum_order_subtotal_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | User-defined name for the pricing rule. For example, "Buy one get one free" or "10% off". |
name (anyOf 2) | null | Alternative | |
time_period_ids | JSON | Optional | |
time_period_ids (anyOf 1) | array | Alternative | A 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)[] | string | Each item | |
time_period_ids (anyOf 2) | null | Alternative | |
valid_from_date | JSON | Optional | |
valid_from_date (anyOf 1) | string | Alternative | Represents the date the Pricing Rule is valid from. Represented in RFC 3339 full-date format (YYYY-MM-DD). |
valid_from_date (anyOf 2) | null | Alternative | |
valid_from_local_time | JSON | Optional | |
valid_from_local_time (anyOf 1) | string | Alternative | Represents 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) | null | Alternative | |
valid_until_date | JSON | Optional | |
valid_until_date (anyOf 1) | string | Alternative | Represents the date the Pricing Rule is valid until. Represented in RFC 3339 full-date format (YYYY-MM-DD). |
valid_until_date (anyOf 2) | null | Alternative | |
valid_until_local_time | JSON | Optional | |
valid_until_local_time (anyOf 1) | string | Alternative | Represents 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_products | JSON | Optional | |
all_products (anyOf 1) | boolean | Alternative | If 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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | User-defined name for the product set. For example, "Clearance Items" or "Winter Sale Items". |
name (anyOf 2) | null | Alternative | |
product_ids_all | JSON | Optional | |
product_ids_all (anyOf 1) | array | Alternative | Unique 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)[] | string | Each item | |
product_ids_all (anyOf 2) | null | Alternative | |
product_ids_any | JSON | Optional | |
product_ids_any (anyOf 1) | array | Alternative | Unique 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)[] | string | Each item | |
product_ids_any (anyOf 2) | null | Alternative | |
quantity_exact | JSON | Optional | |
quantity_exact (anyOf 1) | JSON | Alternative | |
quantity_exact (anyOf 1) (anyOf 1) | integer | Alternative | If 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) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
quantity_exact (anyOf 2) | null | Alternative | |
quantity_max | JSON | Optional | |
quantity_max (anyOf 1) | JSON | Alternative | |
quantity_max (anyOf 1) (anyOf 1) | integer | Alternative | If 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) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
quantity_max (anyOf 2) | null | Alternative | |
quantity_min | JSON | Optional | |
quantity_min (anyOf 1) | JSON | Alternative | |
quantity_min (anyOf 1) (anyOf 1) | integer | Alternative | If 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) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
quantity_min (anyOf 2) | null | Alternative |
Upsert Catalog Object — request body — body object subscription plan data all items, eligible category ids, eligible item ids, name, phases, subscription plan variations
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes 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_items | JSON | Optional | |
all_items (anyOf 1) | boolean | Alternative | If true, all items in the merchant's catalog are subscribable by this SubscriptionPlan. |
all_items (anyOf 2) | null | Alternative | |
eligible_category_ids | JSON | Optional | |
eligible_category_ids (anyOf 1) | array | Alternative | The list of IDs of `CatalogCategory` that are eligible for subscription by this SubscriptionPlan's variations. |
eligible_category_ids (anyOf 1)[] | string | Each item | |
eligible_category_ids (anyOf 2) | null | Alternative | |
eligible_item_ids | JSON | Optional | |
eligible_item_ids (anyOf 1) | array | Alternative | The list of IDs of `CatalogItems` that are eligible for subscription by this SubscriptionPlan's variations. |
eligible_item_ids (anyOf 1)[] | string | Each item | |
eligible_item_ids (anyOf 2) | null | Alternative | |
name | string | Required within parent | The name of the plan. |
phases | JSON | Optional | |
phases (anyOf 1) | array | Alternative | A 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)[] | Model | Each item | Expand 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) | null | Alternative | |
subscription_plan_variations | JSON | Optional | |
subscription_plan_variations (anyOf 1) | array | Alternative | The list of subscription plan variations available for this product |
subscription_plan_variations (anyOf 1)[] | Model | Each item | Expand Upsert Catalog Object — request body — body object |
subscription_plan_variations (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes 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_prorate | JSON | Optional | |
can_prorate (anyOf 1) | boolean | Alternative | Whether bills for this plan variation can be split for proration. |
can_prorate (anyOf 2) | null | Alternative | |
monthly_billing_anchor_date | JSON | Optional | |
monthly_billing_anchor_date (anyOf 1) | JSON | Alternative | |
monthly_billing_anchor_date (anyOf 1) (anyOf 1) | integer | Alternative | The day of the month the billing period starts. Format: int64 Maximum: 31 Minimum: 1 |
monthly_billing_anchor_date (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:(?:1[0-9]|2[0-9]|3[0-1])|[1-9][0-9]{0,0})$(?!\n) |
monthly_billing_anchor_date (anyOf 2) | null | Alternative | |
name | string | Required within parent | The name of the plan variation. |
phases | array | Required within parent | A list containing each [SubscriptionPhase](entity:SubscriptionPhase) for this plan variation. |
phases[] | Model | Each item | Expand 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_id | JSON | Optional | |
subscription_plan_id (anyOf 1) | string | Alternative | The id of the subscription plan, if there is one. |
subscription_plan_id (anyOf 2) | null | Alternative | |
successor_plan_variation_id | JSON | Optional | |
successor_plan_variation_id (anyOf 1) | string | Alternative | The 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes 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). |
cadence | string | Required within parent | Determines 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 |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
ordinal (anyOf 2) | null | Alternative | |
periods | JSON | Optional | |
periods (anyOf 1) | integer | Alternative | The 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) | null | Alternative | |
pricing | JSON | Optional | |
pricing (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
recurring_price_money | JSON | Optional | |
recurring_price_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | The Square-assigned ID of the subscription phase. This field cannot be changed after a `SubscriptionPhase` is created. |
uid (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes the pricing for the subscription. |
discount_ids | JSON | Optional | |
discount_ids (anyOf 1) | array | Alternative | The ids of the discount catalog objects |
discount_ids (anyOf 1)[] | string | Each item | |
discount_ids (anyOf 2) | null | Alternative | |
price_money | JSON | Optional | |
price_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The price of the subscription, if STATIC |
price_money (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Determines the pricing of a [Subscription](entity:Subscription) RELATIVE or STATIC See [SubscriptionPricingType](#type-subscriptionpricingtype) for possible values One of: STATIC, RELATIVE |
type (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Upsert Catalog Object — request body — body object tax data A tax applicable to an item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A tax applicable to an item. |
applies_to_custom_amounts | JSON | Optional | |
applies_to_custom_amounts (anyOf 1) | boolean | Alternative | If `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) | null | Alternative | |
applies_to_product_set_id | JSON | Optional | |
applies_to_product_set_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
calculation_phase | JSON | Optional | |
calculation_phase (anyOf 1) | string | Alternative | When 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) | null | Alternative | |
enabled | JSON | Optional | |
enabled (anyOf 1) | boolean | Alternative | A 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) | null | Alternative | |
inclusion_type | JSON | Optional | |
inclusion_type (anyOf 1) | string | Alternative | Whether 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) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The 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) | null | Alternative |
Upsert Catalog Object — request body — body object type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Possible 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
catalog_object | Model | Optional | Expand Create Catalog Image — response body — image The successfully created or updated CatalogObject. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
id_mappings | array | Optional | The mapping between client and server IDs for this upsert. |
id_mappings[] | Model | Each item | Expand Upsert Catalog Object — response body — id mappings item |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A 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_id | JSON | Optional | |
client_object_id (anyOf 1) | string | Alternative | The client-supplied temporary `#`-prefixed ID for a new `CatalogObject`. |
client_object_id (anyOf 2) | null | Alternative | |
object_id | JSON | Optional | |
object_id (anyOf 1) | string | Alternative | The permanent ID for the CatalogObject created by the server. |
object_id (anyOf 2) | null | Alternative |
UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains 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_types | array | Required within parent | The 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[] | Model | Each item | Expand Upsert Catalog Object — request body — body object type |
app_visibility | JSON | Optional | |
app_visibility (anyOf 1) | string | Alternative | Defines 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) | null | Alternative | |
custom_attribute_usage_count | integer | Optional | The 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 |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | Seller-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) | null | Alternative | |
key | JSON | Optional | |
key (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
name | string | Required within parent | The 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_config | JSON | Optional | |
number_config (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
selection_config | JSON | Optional | |
selection_config (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
seller_visibility | JSON | Optional | |
seller_visibility (anyOf 1) | string | Alternative | Defines 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) | null | Alternative | |
source_application | JSON | Optional | |
source_application (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
string_config | JSON | Optional | |
string_config (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
type | string | Required within parent | Defines 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
precision | JSON | Optional | |
precision (anyOf 1) | integer | Alternative | An 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) | null | Alternative |
UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Configuration associated with `SELECTION`-type custom attribute definitions. |
allowed_selections | JSON | Optional | |
allowed_selections (anyOf 1) | array | Alternative | The set of valid `CatalogCustomAttributeSelections`. Up to a maximum of 100 selections can be defined. Can be modified. |
allowed_selections (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
max_allowed_selections | JSON | Optional | |
max_allowed_selections (anyOf 1) | integer | Alternative | The 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) | null | Alternative |
UpsertCatalogObject — request body — body / object / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts. |
amounts | JSON | Optional | |
amounts (anyOf 1) | array | Alternative | Represents a set of Quick Amounts at this location. |
amounts (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
eligible_for_auto_amounts | JSON | Optional | |
eligible_for_auto_amounts (anyOf 1) | boolean | Alternative | Represents 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) | null | Alternative | |
option | string | Required within parent | Determines 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 |