Square: Catalog schemas (part 2)
52 Square schemas with complete fields and constraints.
← Catalog operations · All schemas
Create Catalog Image — response body — image modifier list data allow quantities, hidden from customer, image ids, internal name, is conversational, max length, max selected modifiers, min selected modifiers, modifier type, modifiers, name, ordinal, selection type, text required
| 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) | JSON | Alternative | |
max_length (anyOf 1) (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 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
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 |
max_selected_modifiers (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
max_selected_modifiers (anyOf 2) | null | Alternative | |
min_selected_modifiers | JSON | Optional | |
min_selected_modifiers (anyOf 1) | JSON | Alternative | |
min_selected_modifiers (anyOf 1) (anyOf 1) | integer | Alternative | The minimum number of modifiers that must be selected from this 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 |
min_selected_modifiers (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
min_selected_modifiers (anyOf 2) | null | Alternative | |
modifier_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 Known values: 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 Create Catalog Image — response body — image |
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) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | The position of this `CatalogModifierList` within a list of `CatalogModifierList` instances. |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
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 Known values: 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: Create Catalog Image — response body — image
Create Catalog Image — response body — image pricing rule data apply products id, customer group ids any, discount id, exclude products id, exclude strategy, match products id, minimum order subtotal money, name, time period ids, valid from date, valid from local time, valid until date, valid until local time
| 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 Known values: 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 Pay Order — response body — order total 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: Pay Order — response body — order total money
Create Catalog Image — response body — image 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 |
quantity_exact (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
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 |
quantity_max (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
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 |
quantity_min (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
quantity_min (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image 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 Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id 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 Create Catalog Image — response body — image |
subscription_plan_variations (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image, Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item
Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id
| 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: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
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 Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id 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 |
Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id 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 Known values: 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 |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ordinal (anyOf 2) | null | Alternative | |
periods | JSON | Optional | |
periods (anyOf 1) | JSON | Alternative | |
periods (anyOf 1) (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 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
periods (anyOf 2) | null | Alternative | |
pricing | JSON | Optional | |
pricing (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id 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 Pay Order — response body — order total 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: Pay Order — response body — order total money, Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id phases item pricing Describes the pricing for the subscription
Create Catalog Image — response body — image subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id 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 Pay Order — response body — order total 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 Known values: STATIC, RELATIVE |
type (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Catalog Image — response body — image 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 Known values: 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 Known values: 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 |
Create Catalog Image — response body — image time period data event
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a time period - either a single period or a repeating period. |
event | JSON | Optional | |
event (anyOf 1) | string | Alternative | An iCalendar (RFC 5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which specifies the name, timing, duration and recurrence of this time period. Example: ``` DTSTART:20190707T180000 DURATION:P2H RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR ``` Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported. `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT` and `END:VEVENT` is not required in the request. The response will always include them. |
event (anyOf 2) | null | Alternative |
Create Catalog Image — response body — image 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. Known values: 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 |
CreateCatalogImage — response body — image / 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 Create Catalog Image — response body — image 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 Known values: APP_VISIBILITY_HIDDEN, APP_VISIBILITY_READ_ONLY, APP_VISIBILITY_READ_WRITE_VALUES |
app_visibility (anyOf 2) | null | Alternative | |
custom_attribute_usage_count | JSON | Optional | |
custom_attribute_usage_count (anyOf 1) | integer | Alternative | 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 |
custom_attribute_usage_count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
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 CreateCatalogImage — response body — image / 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 CreateCatalogImage — response body — image / 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 Known values: 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 Retrieve Inventory Physical Count — response body — count 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 Known values: STRING, BOOLEAN, NUMBER, SELECTION |
Referenced models: CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION string config enforce uniqueness, CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION number config precision, CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections, Create Catalog Image — response body — image type, Retrieve Inventory Physical Count — response body — count source
CreateCatalogImage — response body — image / 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) | JSON | Alternative | |
precision (anyOf 1) (anyOf 1) | integer | Alternative | An integer between 0 and 5 that represents the maximum number of positions allowed after the decimal in 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 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
precision (anyOf 2) | null | Alternative |
CreateCatalogImage — response body — image / 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) | JSON | Alternative | |
max_allowed_selections (anyOf 1) (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 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
max_allowed_selections (anyOf 2) | null | Alternative |
CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION selection config allowed selections, max allowed selections allowed selections array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A named selection for this `SELECTION`-type custom attribute definition. |
name | string | Required within parent | Selection name, unique within `allowed_selections`. Maximum length: 255 Minimum length: 1 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | Unique ID set by Square. |
uid (anyOf 2) | null | Alternative |
CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION string config enforce uniqueness
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Configuration associated with Custom Attribute Definitions of type `STRING`. |
enforce_uniqueness | JSON | Optional | |
enforce_uniqueness (anyOf 1) | boolean | Alternative | If true, each Custom Attribute instance associated with this Custom Attribute Definition must have a unique value within the seller's catalog. For example, this may be used for a value like a SKU that should not be duplicated within a seller's catalog. May not be modified after the definition has been created. |
enforce_uniqueness (anyOf 2) | null | Alternative |
CreateCatalogImage — response body — image / 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 CreateCatalogImage — response body — image / 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 Known values: DISABLED, MANUAL, AUTO |
Referenced models: CreateCatalogImage — response body — image / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO amounts Represents a set of Quick Amounts at this location item
CreateCatalogImage — response body — image / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO amounts Represents a set of Quick Amounts at this location item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a Quick Amount in the Catalog. |
amount | Model | Required within parent | Expand Pay Order — response body — order total money Represents the actual amount of the Quick Amount with Money type. |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | The order in which this Quick Amount should be displayed. Format: int64 |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ordinal (anyOf 2) | null | Alternative | |
score | JSON | Optional | |
score (anyOf 1) | JSON | Alternative | |
score (anyOf 1) (anyOf 1) | integer | Alternative | Describes the ranking of the Quick Amount provided by machine learning model, in the range [0, 100]. MANUAL type amount will always have score = 100. Format: int64 |
score (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
score (anyOf 2) | null | Alternative | |
type | string | Required within parent | Determines the type of a specific Quick Amount. Represents the type of the Quick Amount. See [CatalogQuickAmountType](#type-catalogquickamounttype) for possible values Known values: QUICK_AMOUNT_TYPE_MANUAL, QUICK_AMOUNT_TYPE_AUTO |
Referenced models: Pay Order — response body — order total money
Delete Catalog Object — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
deleted_at | string | Optional | The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. |
deleted_object_ids | array | Optional | The IDs of all catalog objects deleted by this request. Multiple IDs may be returned when associated objects are also deleted, for example a catalog item variation will be deleted (and its ID included in this field) when its parent catalog item is deleted. |
deleted_object_ids[] | string | Each item | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
List Catalog — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
objects | array | Optional | The CatalogObjects returned. |
objects[] | Model | Each item | Expand Create Catalog Image — response body — image |
Referenced models: Create Catalog Image — response body — image, Get Shift — response body — errors item
Retrieve Catalog Object — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
object | Model | Optional | Expand Create Catalog Image — response body — image The `CatalogObject`s returned. |
related_objects | array | Optional | A list of `CatalogObject`s referenced by the object in the `object` field. |
related_objects[] | Model | Each item | Expand Create Catalog Image — response body — image |
Referenced models: Create Catalog Image — response body — image, Get Shift — response body — errors item
Search Catalog Items — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the request body for the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint. |
archived_state | string | Optional | Defines the values for the `archived_state` query expression used in [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) to return the archived, not archived or either type of catalog items. The query filter to return not archived (`ARCHIVED_STATE_NOT_ARCHIVED`), archived (`ARCHIVED_STATE_ARCHIVED`), or either type (`ARCHIVED_STATE_ALL`) of items. One of: ARCHIVED_STATE_NOT_ARCHIVED, ARCHIVED_STATE_ARCHIVED, ARCHIVED_STATE_ALL |
category_ids | array | Optional | The category id query expression to return items containing the specified category IDs. |
category_ids[] | string | Each item | |
cursor | string | Optional | The pagination token, returned in the previous response, used to fetch the next batch of pending results. |
custom_attribute_filters | array | Optional | The customer-attribute filter to return items or item variations matching the specified custom attribute expressions. A maximum number of 10 custom attribute expressions are supported in a single call to the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint. |
custom_attribute_filters[] | Model | Each item | Expand Search Catalog Items — request body — body custom attribute filters item |
enabled_location_ids | array | Optional | The enabled-location query expression to return items and item variations having specified enabled locations. |
enabled_location_ids[] | string | Each item | |
include_options | Model | Optional | Expand Search Catalog Items — request body — body include options Options to include related resources in the response. |
limit | integer | Optional | The maximum number of results to return per page. The default value is 100. Maximum: 100 |
product_types | array | Optional | The product types query expression to return items or item variations having the specified product types. |
product_types[] | string | Each item | The type of a CatalogItem. Connect V2 only allows the creation of `REGULAR` or `APPOINTMENTS_SERVICE` items. One of: REGULAR, GIFT_CARD, APPOINTMENTS_SERVICE, FOOD_AND_BEV, EVENT, DIGITAL, DONATION, LEGACY_SQUARE_ONLINE_SERVICE, LEGACY_SQUARE_ONLINE_MEMBERSHIP |
sort_order | string | Optional | The order (e.g., chronological or alphabetical) in which results from a request are returned. The order to sort the results by item names. The default sort order is ascending (`ASC`). See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
stock_levels | array | Optional | The stock-level query expression to return item variations with the specified stock levels. See [SearchCatalogItemsRequestStockLevel](#type-searchcatalogitemsrequeststocklevel) for possible values |
stock_levels[] | string | Each item | Defines supported stock levels of the item inventory. One of: OUT, LOW |
text_filter | string | Optional | The text filter expression to return items or item variations containing specified text in the `name`, `description`, or `abbreviation` attribute value of an item, or in the `name`, `sku`, or `upc` attribute value of an item variation. |
Referenced models: Search Catalog Items — request body — body custom attribute filters item, Search Catalog Items — request body — body include options
Search Catalog Items — request body — body custom attribute filters item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Supported custom attribute query expressions for calling the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint to search for items or item variations. |
bool_filter | JSON | Optional | |
bool_filter (anyOf 1) | boolean | Alternative | A query expression to filter items or item variations by matching their custom attributes' `boolean_value` property values against the specified Boolean expression. Exactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified. |
bool_filter (anyOf 2) | null | Alternative | |
custom_attribute_definition_id | JSON | Optional | |
custom_attribute_definition_id (anyOf 1) | string | Alternative | A query expression to filter items or item variations by matching their custom attributes' `custom_attribute_definition_id` property value against the the specified id. Exactly one of `custom_attribute_definition_id` or `key` must be specified. |
custom_attribute_definition_id (anyOf 2) | null | Alternative | |
key | JSON | Optional | |
key (anyOf 1) | string | Alternative | A query expression to filter items or item variations by matching their custom attributes' `key` property value against the specified key. Exactly one of `custom_attribute_definition_id` or `key` must be specified. |
key (anyOf 2) | null | Alternative | |
number_filter | JSON | Optional | |
number_filter (anyOf 1) | Model | Alternative | Expand Search Catalog Items — request body — body custom attribute filters item number filter max, min A query expression to filter items or item variations with their custom attributes containing a number value within the specified range. Exactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified. |
number_filter (anyOf 2) | null | Alternative | |
selection_uids_filter | JSON | Optional | |
selection_uids_filter (anyOf 1) | array | Alternative | A query expression to filter items or item variations by matching their custom attributes' `selection_uid_values` values against the specified selection uids. Exactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified. |
selection_uids_filter (anyOf 1)[] | string | Each item | |
selection_uids_filter (anyOf 2) | null | Alternative | |
string_filter | JSON | Optional | |
string_filter (anyOf 1) | string | Alternative | A query expression to filter items or item variations by matching their custom attributes' `string_value` property value against the specified text. Exactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified. |
string_filter (anyOf 2) | null | Alternative |
Referenced models: Search Catalog Items — request body — body custom attribute filters item number filter max, min
Search Catalog Items — request body — body custom attribute filters item number filter max, min
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The range of a number value between the specified lower and upper bounds. |
max | JSON | Optional | |
max (anyOf 1) | string | Alternative | The upper bound of the number range. At least one of `min` or `max` must be specified. If unspecified, the results will have no maximum value. |
max (anyOf 2) | null | Alternative | |
min | JSON | Optional | |
min (anyOf 1) | string | Alternative | The lower bound of the number range. At least one of `min` or `max` must be specified. If unspecified, the results will have no minimum value. |
min (anyOf 2) | null | Alternative |
Search Catalog Items — request body — body include options
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Options to include related resources of the requested `CatalogObject`s. Related resources will be included in `IncludedResources` in the response. |
include | JSON | Optional | |
include (anyOf 1) | array | Alternative | Resources to include in the response. See [IncludeType](#type-includetype) for possible values |
include (anyOf 1)[] | string | Each item | Related resources of requested `CatalogObject`s to include as part of the response. One of: INCLUDE_NESTED_MODIFIERS, INCLUDE_ANCESTOR_MODIFIERS |
include (anyOf 2) | null | Alternative |
Search Catalog Items — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the response body returned from the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint. |
cursor | string | Optional | Pagination token used in the next request to return more of the search result. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
included_resources | Model | Optional | Expand Search Catalog Items — response body — included resources Related resources included in the response as requested via include_options |
items | array | Optional | Returned items matching the specified query expressions. |
items[] | Model | Each item | Expand Create Catalog Image — response body — image |
matched_variation_ids | array | Optional | Ids of returned item variations matching the specified query expression. |
matched_variation_ids[] | string | Each item |
Referenced models: Create Catalog Image — response body — image, Get Shift — response body — errors item, Search Catalog Items — response body — included resources
Search Catalog Items — response body — included resources
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Related resources of the response `CatalogObject`s requested using `IncludeOptions` |
ancestor_modifiers | JSON | Optional | |
ancestor_modifiers (anyOf 1) | array | Alternative | Ancestor `CatalogModifierList`s as requested via INCLUDE_ANCESTOR_MODIFIERS |
ancestor_modifiers (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image |
ancestor_modifiers (anyOf 2) | null | Alternative | |
nested_modifiers | JSON | Optional | |
nested_modifiers (anyOf 1) | array | Alternative | Nested `CatalogModifierList`s as requested via `INCLUDE_NESTED_MODIFIERS`. |
nested_modifiers (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image |
nested_modifiers (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image
Search Catalog Objects — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
begin_time | string | Optional | Return objects modified after this [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. The timestamp is exclusive - objects with a timestamp equal to `begin_time` will not be included in the response. |
cursor | string | Optional | The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
include_category_path_to_root | boolean | Optional | Specifies whether or not to include the `path_to_root` list for each returned category instance. The `path_to_root` list consists of `CategoryPathToRootNode` objects and specifies the path that starts with the immediate parent category of the returned category and ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned in the response payload. If `include_category_path_to_root` is `true`, then the `include_deleted_objects` request parameter must be `false`. Both properties cannot be `true` at the same time. |
include_deleted_objects | boolean | Optional | If `true`, deleted objects will be included in the results. Defaults to `false`. Deleted objects will have their `is_deleted` field set to `true`. If `include_deleted_objects` is `true`, then the `include_category_path_to_root` request parameter must be `false`. Both properties cannot be `true` at the same time. |
include_options | Model | Optional | Expand Search Catalog Items — request body — body include options Options to include related resources in the response. |
include_related_objects | boolean | Optional | If `true`, the response will include additional objects that are related to the requested objects. Related objects are objects that are referenced by object ID by the objects in the response. This is helpful if the objects are being fetched for immediate display to a user. This process only goes one level deep. Objects referenced by the related objects will not be included. For example: If the `objects` field of the response contains a CatalogItem, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. Default value: `false` |
limit | integer | Optional | A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored. |
object_types | array | Optional | The desired set of object types to appear in the search results. If this is unspecified, the operation returns objects of all the top level types at the version of the Square API used to make the request. Object types that are nested onto other object types are not included in the defaults. At the current API version the default object types are: ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST, PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT, SUBSCRIPTION_PLAN, ITEM_OPTION, CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNT_SETTINGS. Note that if you wish for the query to return objects belonging to nested types (i.e., COMPONENT, IMAGE, ITEM_OPTION_VAL, ITEM_VARIATION, or MODIFIER), you must explicitly include all the types of interest in this field. |
object_types[] | Model | Each item | Expand Upsert Catalog Object — request body — body object type |
query | Model | Optional | Expand Search Catalog Objects — request body — body query A query to be used to filter or sort the results. If no query is specified, the entire catalog will be returned. |
Referenced models: Upsert Catalog Object — request body — body object type, Search Catalog Objects — request body — body query, Search Catalog Items — request body — body include options
Search Catalog Objects — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A query composed of one or more different types of filters to narrow the scope of targeted objects when calling the `SearchCatalogObjects` endpoint. Although a query can have multiple filters, only certain query types can be combined per call to [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects). Any combination of the following types may be used together: - [exact_query](entity:CatalogQueryExact) - [prefix_query](entity:CatalogQueryPrefix) - [range_query](entity:CatalogQueryRange) - [sorted_attribute_query](entity:CatalogQuerySortedAttribute) - [text_query](entity:CatalogQueryText) All other query types cannot be combined with any others. When a query filter is based on an attribute, the attribute must be searchable. Searchable attributes are listed as follows, along their parent types that can be searched for with applicable query filters. Searchable attribute and objects queryable by searchable attributes: - `name`: `CatalogItem`, `CatalogItemVariation`, `CatalogCategory`, `CatalogTax`, `CatalogDiscount`, `CatalogModifier`, `CatalogModifierList`, `CatalogItemOption`, `CatalogItemOptionValue` - `description`: `CatalogItem`, `CatalogItemOptionValue` - `abbreviation`: `CatalogItem` - `upc`: `CatalogItemVariation` - `sku`: `CatalogItemVariation` - `caption`: `CatalogImage` - `display_name`: `CatalogItemOption` For example, to search for [CatalogItem](entity:CatalogItem) objects by searchable attributes, you can use the `"name"`, `"description"`, or `"abbreviation"` attribute in an applicable query filter. |
exact_query | JSON | Optional | |
exact_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query exact query attribute name, attribute value An exact query expression to return objects with attribute name and value matching the specified attribute name and value exactly. Value matching is case insensitive. |
exact_query (anyOf 2) | null | Alternative | |
item_variations_for_item_option_values_query | JSON | Optional | |
item_variations_for_item_option_values_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query item variations for item option values query item option value ids A query expression to return item variations (of the [CatalogItemVariation](entity:CatalogItemVariation) type) that contain all of the specified `CatalogItemOption` IDs. |
item_variations_for_item_option_values_query (anyOf 2) | null | Alternative | |
items_for_item_options_query | JSON | Optional | |
items_for_item_options_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query items for item options query item option ids A query expression to return items that contains the specified item options (as identified the corresponding `CatalogItemOption` IDs). |
items_for_item_options_query (anyOf 2) | null | Alternative | |
items_for_modifier_list_query | JSON | Optional | |
items_for_modifier_list_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query items for modifier list query modifier list ids A query expression to return items that have any of the given modifier list (as identified by the corresponding `CatalogModifierList`s IDs) enabled. |
items_for_modifier_list_query (anyOf 2) | null | Alternative | |
items_for_tax_query | JSON | Optional | |
items_for_tax_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query items for tax query tax ids A query expression to return items that have any of the specified taxes (as identified by the corresponding `CatalogTax` object IDs) enabled. |
items_for_tax_query (anyOf 2) | null | Alternative | |
modifiers_for_child_list_query | JSON | Optional | |
modifiers_for_child_list_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query modifiers for child list query child modifier list ids A query expression to return `CatalogModifier` objects that nest the specified modifier lists (via `child_modifier_list_ids`) |
modifiers_for_child_list_query (anyOf 2) | null | Alternative | |
prefix_query | JSON | Optional | |
prefix_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query prefix query attribute name, attribute prefix A prefix query expression to return objects with attribute values that have a prefix matching the specified string value. Value matching is case insensitive. |
prefix_query (anyOf 2) | null | Alternative | |
range_query | JSON | Optional | |
range_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query range query attribute max value, attribute min value, attribute name A range query expression to return objects with numeric values that lie in the specified range. |
range_query (anyOf 2) | null | Alternative | |
set_query | JSON | Optional | |
set_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query set query attribute name, attribute values A set query expression to return objects with attribute name and value matching the specified attribute name and any of the specified attribute values exactly. Value matching is case insensitive. |
set_query (anyOf 2) | null | Alternative | |
sorted_attribute_query | JSON | Optional | |
sorted_attribute_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query sorted attribute query attribute name, initial attribute value, sort order A query expression to sort returned query result by the given attribute. |
sorted_attribute_query (anyOf 2) | null | Alternative | |
text_query | JSON | Optional | |
text_query (anyOf 1) | Model | Alternative | Expand Search Catalog Objects — request body — body query text query keywords A text query expression to return objects whose searchable attributes contain all of the given keywords, irrespective of their order. For example, if a `CatalogItem` contains custom attribute values of `{"name": "t-shirt"}` and `{"description": "Small, Purple"}`, the query filter of `{"keywords": ["shirt", "sma", "purp"]}` returns this item. |
text_query (anyOf 2) | null | Alternative |
Referenced models: Search Catalog Objects — request body — body query exact query attribute name, attribute value, Search Catalog Objects — request body — body query item variations for item option values query item option value ids, Search Catalog Objects — request body — body query items for item options query item option ids, Search Catalog Objects — request body — body query items for modifier list query modifier list ids, Search Catalog Objects — request body — body query items for tax query tax ids, Search Catalog Objects — request body — body query modifiers for child list query child modifier list ids, Search Catalog Objects — request body — body query prefix query attribute name, attribute prefix, Search Catalog Objects — request body — body query range query attribute max value, attribute min value, attribute name, Search Catalog Objects — request body — body query set query attribute name, attribute values, Search Catalog Objects — request body — body query sorted attribute query attribute name, initial attribute value, sort order, Search Catalog Objects — request body — body query text query keywords
Search Catalog Objects — request body — body query exact query attribute name, attribute value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the search result by exact match of the specified attribute name and value. |
attribute_name | string | Required within parent | The name of the attribute to be searched. Matching of the attribute name is exact. Minimum length: 1 |
attribute_value | string | Required within parent | The desired value of the search attribute. Matching of the attribute value is case insensitive and can be partial. For example, if a specified value of "sma", objects with the named attribute value of "Small", "small" are both matched. |
Search Catalog Objects — request body — body query item variations for item option values query item option value ids
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the item variations containing the specified item option value IDs. |
item_option_value_ids | JSON | Optional | |
item_option_value_ids (anyOf 1) | array | Alternative | A set of `CatalogItemOptionValue` IDs to be used to find associated `CatalogItemVariation`s. All ItemVariations that contain all of the given Item Option Values (in any order) will be returned. |
item_option_value_ids (anyOf 1)[] | string | Each item | |
item_option_value_ids (anyOf 2) | null | Alternative |
Search Catalog Objects — request body — body query items for item options query item option ids
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the items containing the specified item option IDs. |
item_option_ids | JSON | Optional | |
item_option_ids (anyOf 1) | array | Alternative | A set of `CatalogItemOption` IDs to be used to find associated `CatalogItem`s. All Items that contain all of the given Item Options (in any order) will be returned. |
item_option_ids (anyOf 1)[] | string | Each item | |
item_option_ids (anyOf 2) | null | Alternative |
Search Catalog Objects — request body — body query items for modifier list query modifier list ids
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the items containing the specified modifier list IDs. |
modifier_list_ids | array | Required within parent | A set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s. |
modifier_list_ids[] | string | Each item |
Search Catalog Objects — request body — body query items for tax query tax ids
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the items containing the specified tax IDs. |
tax_ids | array | Required within parent | A set of `CatalogTax` IDs to be used to find associated `CatalogItem`s. |
tax_ids[] | string | Each item |
Search Catalog Objects — request body — body query modifiers for child list query child modifier list ids
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Query to find `CatalogModifier` objects that reference a given `CatalogModifierList` in their `child_modifier_list_ids` field. |
child_modifier_list_ids | array | Required within parent | The `CatalogModifierList` IDs to find parent `CatalogModifier`s for. Returns `CatalogModifier` objects where `child_modifier_list_ids` contains any of these IDs. |
child_modifier_list_ids[] | string | Each item |
Search Catalog Objects — request body — body query prefix query attribute name, attribute prefix
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the search result whose named attribute values are prefixed by the specified attribute value. |
attribute_name | string | Required within parent | The name of the attribute to be searched. Minimum length: 1 |
attribute_prefix | string | Required within parent | The desired prefix of the search attribute value. Minimum length: 1 |
Search Catalog Objects — request body — body query range query attribute max value, attribute min value, attribute name
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the search result whose named attribute values fall between the specified range. |
attribute_max_value | JSON | Optional | |
attribute_max_value (anyOf 1) | JSON | Alternative | |
attribute_max_value (anyOf 1) (anyOf 1) | integer | Alternative | The desired maximum value for the search attribute (inclusive). Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
attribute_max_value (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) |
attribute_max_value (anyOf 2) | null | Alternative | |
attribute_min_value | JSON | Optional | |
attribute_min_value (anyOf 1) | JSON | Alternative | |
attribute_min_value (anyOf 1) (anyOf 1) | integer | Alternative | The desired minimum value for the search attribute (inclusive). Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
attribute_min_value (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) |
attribute_min_value (anyOf 2) | null | Alternative | |
attribute_name | string | Required within parent | The name of the attribute to be searched. Minimum length: 1 |
Search Catalog Objects — request body — body query set query attribute name, attribute values
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the search result(s) by exact match of the specified `attribute_name` and any of the `attribute_values`. |
attribute_name | string | Required within parent | The name of the attribute to be searched. Matching of the attribute name is exact. Minimum length: 1 |
attribute_values | array | Required within parent | The desired values of the search attribute. Matching of the attribute values is exact and case insensitive. A maximum of 250 values may be searched in a request. |
attribute_values[] | string | Each item |
Search Catalog Objects — request body — body query sorted attribute query attribute name, initial attribute value, sort order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query expression to specify the key to sort search results. |
attribute_name | string | Required within parent | The attribute whose value is used as the sort key. Minimum length: 1 |
initial_attribute_value | JSON | Optional | |
initial_attribute_value (anyOf 1) | string | Alternative | The first attribute value to be returned by the query. Ascending sorts will return only objects with this value or greater, while descending sorts will return only objects with this value or less. If unset, start at the beginning (for ascending sorts) or end (for descending sorts). |
initial_attribute_value (anyOf 2) | null | Alternative | |
sort_order | JSON | Optional | |
sort_order (anyOf 1) | string | Alternative | The order (e.g., chronological or alphabetical) in which results from a request are returned. The desired sort order, `"ASC"` (ascending) or `"DESC"` (descending). See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
sort_order (anyOf 2) | null | Alternative |
Search Catalog Objects — request body — body query text query keywords
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query filter to return the search result whose searchable attribute values contain all of the specified keywords or tokens, independent of the token order or case. |
keywords | array | Required within parent | A list of 1, 2, or 3 search keywords. Keywords with fewer than 3 alphanumeric characters are ignored. |
keywords[] | string | Each item |
Search Catalog Objects — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
included_resources | Model | Optional | Expand Search Catalog Items — response body — included resources A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field and specifically requested. |
latest_time | string | Optional | When the associated product catalog was last updated. Will match the value for `end_time` or `cursor` if either field is included in the `SearchCatalog` request. |
objects | array | Optional | The CatalogObjects returned. |
objects[] | Model | Each item | Expand Create Catalog Image — response body — image |
related_objects | array | Optional | A list of CatalogObjects referenced by the objects in the `objects` field. |
related_objects[] | Model | Each item | Expand Create Catalog Image — response body — image |
Referenced models: Create Catalog Image — response body — image, Get Shift — response body — errors item, Search Catalog Items — response body — included resources
Update Catalog Image — request body — body request
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
idempotency_key | string | Required within parent | A unique string that identifies this UpdateCatalogImage request. Keys can be any valid string but must be unique for every UpdateCatalogImage request. See [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information. Maximum length: 128 Minimum length: 1 |
Update Catalog Image — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
image | Model | Optional | Expand Create Catalog Image — response body — image The newly updated `CatalogImage` including a Square-generated URL for the encapsulated image file. |
Referenced models: Create Catalog Image — response body — image, Get Shift — response body — errors item
Update Item Modifier Lists — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
item_ids | array | Required within parent | The IDs of the catalog items associated with the CatalogModifierList objects being updated. |
item_ids[] | string | Each item | |
modifier_lists_to_disable | JSON | Optional | |
modifier_lists_to_disable (anyOf 1) | array | Alternative | The IDs of the CatalogModifierList objects to disable for the CatalogItem. At least one of `modifier_lists_to_enable` or `modifier_lists_to_disable` must be specified. |
modifier_lists_to_disable (anyOf 1)[] | string | Each item | |
modifier_lists_to_disable (anyOf 2) | null | Alternative | |
modifier_lists_to_enable | JSON | Optional | |
modifier_lists_to_enable (anyOf 1) | array | Alternative | The IDs of the CatalogModifierList objects to enable for the CatalogItem. At least one of `modifier_lists_to_enable` or `modifier_lists_to_disable` must be specified. |
modifier_lists_to_enable (anyOf 1)[] | string | Each item | |
modifier_lists_to_enable (anyOf 2) | null | Alternative |
Update Item Modifier Lists — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
updated_at | string | Optional | The database [timestamp](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-dates) of this update in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. |
Referenced models: Get Shift — response body — errors item
Update Item Taxes — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
item_ids | array | Required within parent | IDs for the CatalogItems associated with the CatalogTax objects being updated. No more than 1,000 IDs may be provided. |
item_ids[] | string | Each item | |
taxes_to_disable | JSON | Optional | |
taxes_to_disable (anyOf 1) | array | Alternative | IDs of the CatalogTax objects to disable. At least one of `taxes_to_enable` or `taxes_to_disable` must be specified. |
taxes_to_disable (anyOf 1)[] | string | Each item | |
taxes_to_disable (anyOf 2) | null | Alternative | |
taxes_to_enable | JSON | Optional | |
taxes_to_enable (anyOf 1) | array | Alternative | IDs of the CatalogTax objects to enable. At least one of `taxes_to_enable` or `taxes_to_disable` must be specified. |
taxes_to_enable (anyOf 1)[] | string | Each item | |
taxes_to_enable (anyOf 2) | null | Alternative |
Update Item Taxes — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
updated_at | string | Optional | The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. |
Referenced models: Get Shift — response body — errors item
Upsert Catalog Object — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
idempotency_key | string | Required within parent | A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you're unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information. Maximum length: 128 Minimum length: 1 |
object | Model | Required within parent | Expand Upsert Catalog Object — request body — body object A CatalogObject to be created or updated. - For updates, the object must be active (the `is_deleted` field is not `true`). - For creates, the object ID must start with `#`. The provided ID is replaced with a server-generated ID. |
Referenced models: Upsert Catalog Object — request body — body object
Upsert Catalog Object — request body — body object
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The wrapper object for the catalog entries of a given object type. Depending on the `type` attribute value, a `CatalogObject` instance assumes a type-specific data to yield the corresponding type of catalog object. For example, if `type=ITEM`, the `CatalogObject` instance must have the ITEM-specific data set on the `item_data` attribute. The resulting `CatalogObject` instance is also a `CatalogItem` instance. In general, if `type=<OBJECT_TYPE>`, the `CatalogObject` instance must have the `<OBJECT_TYPE>`-specific data set on the `<object_type>_data` attribute. The resulting `CatalogObject` instance is also a `Catalog<ObjectType>` instance. For a more detailed discussion of the Catalog data model, please see the [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide. |
absent_at_location_ids | JSON | Optional | |
absent_at_location_ids (anyOf 1) | array | Alternative | Locations where the object is not present, used when `present_at_all_locations` is true. When `present_at_all_locations` is false, this field is ignored since the object is already absent everywhere except those in `present_at_location_ids`. Can include deactivated locations. Empty strings are rejected. |
absent_at_location_ids (anyOf 1)[] | string | Each item | |
absent_at_location_ids (anyOf 2) | null | Alternative | |
availability_period_data | JSON | Optional | |
availability_period_data (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object availability period data Represents a time period of availability Structured data for a `CatalogAvailabilityPeriod`, set for CatalogObjects of type `AVAILABILITY_PERIOD`. |
availability_period_data (anyOf 2) | null | Alternative | |
catalog_v1_ids | JSON | Optional | |
catalog_v1_ids (anyOf 1) | array | Alternative | The Connect v1 IDs for this object at each location where it is present, where they differ from the object's Connect V2 ID. The field will only be present for objects that have been created or modified by legacy APIs. |
catalog_v1_ids (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image catalog v1 ids array item |
catalog_v1_ids (anyOf 2) | null | Alternative | |
category_data | JSON | Optional | |
category_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogCategory`, set for CatalogObjects of type `CATEGORY`. |
category_data (anyOf 2) | null | Alternative | |
custom_attribute_definition_data | JSON | Optional | |
custom_attribute_definition_data (anyOf 1) | Model | Alternative | Expand UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION Structured data for a `CatalogCustomAttributeDefinition`, set for CatalogObjects of type `CUSTOM_ATTRIBUTE_DEFINITION`. |
custom_attribute_definition_data (anyOf 2) | null | Alternative | |
custom_attribute_values | JSON | Optional | |
custom_attribute_values (anyOf 1) | object | Alternative | A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) object defined by the application making the request. If the `CatalogCustomAttributeDefinition` object is defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"` if the application making the request is different from the application defining the custom attribute definition. Otherwise, the key used in the map is simply `"cocoa_brand"`. Application-defined custom attributes are set at a global (location-independent) level. Custom attribute values are intended to store additional information about a catalog object or associations with an entity in another system. Do not use custom attributes to store any sensitive information (personally identifiable information, card details, etc.). Additional keys: see wildcard field |
custom_attribute_values (anyOf 1).* | Model | Additional keys | Expand Upsert Catalog Object — request body — body object custom attribute values object value |
custom_attribute_values (anyOf 2) | null | Alternative | |
discount_data | JSON | Optional | |
discount_data (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object discount data A discount applicable to items Structured data for a `CatalogDiscount`, set for CatalogObjects of type `DISCOUNT`. |
discount_data (anyOf 2) | null | Alternative | |
id | string | Required within parent | An identifier to reference this object in the catalog. When a new `CatalogObject` is inserted, the client should set the id to a temporary identifier starting with a "`#`" character. Other objects being inserted or updated within the same request may use this identifier to refer to the new object. When the server receives the new object, it will supply a unique identifier that replaces the temporary identifier for all future references. Minimum length: 1 |
image_data | JSON | Optional | |
image_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image image data caption, name, photo studio order id, url Structured data for a `CatalogImage`, set for CatalogObjects of type `IMAGE`. |
image_data (anyOf 2) | null | Alternative | |
is_deleted | JSON | Optional | |
is_deleted (anyOf 1) | boolean | Alternative | If `true`, the object has been deleted from the database. Must be `false` for new objects being inserted. When deleted, the `updated_at` field will equal the deletion time. |
is_deleted (anyOf 2) | null | Alternative | |
item_data | JSON | Optional | |
item_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogItem`, set for CatalogObjects of type `ITEM`. |
item_data (anyOf 2) | null | Alternative | |
item_option_data | JSON | Optional | |
item_option_data (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object item option data A group of variations for a `Catalog Item` Structured data for a `CatalogItemOption`, set for CatalogObjects of type `ITEM_OPTION`. |
item_option_data (anyOf 2) | null | Alternative | |
item_option_value_data | JSON | Optional | |
item_option_value_data (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object item option value data An enumerated value that can link a Structured data for a `CatalogItemOptionValue`, set for CatalogObjects of type `ITEM_OPTION_VAL`. |
item_option_value_data (anyOf 2) | null | Alternative | |
item_variation_data | JSON | Optional | |
item_variation_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogItemVariation`, set for CatalogObjects of type `ITEM_VARIATION`. |
item_variation_data (anyOf 2) | null | Alternative | |
measurement_unit_data | JSON | Optional | |
measurement_unit_data (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision Structured data for a `CatalogMeasurementUnit`, set for CatalogObjects of type `MEASUREMENT_UNIT`. |
measurement_unit_data (anyOf 2) | null | Alternative | |
modifier_data | JSON | Optional | |
modifier_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogModifier`, set for CatalogObjects of type `MODIFIER`. |
modifier_data (anyOf 2) | null | Alternative | |
modifier_list_data | JSON | Optional | |
modifier_list_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogModifierList`, set for CatalogObjects of type `MODIFIER_LIST`. |
modifier_list_data (anyOf 2) | null | Alternative | |
present_at_all_locations | JSON | Optional | |
present_at_all_locations (anyOf 1) | boolean | Alternative | Controls whether this object is present at all locations, including future locations. Most object types have independent location control, including `TAX`, `DISCOUNT`, and `MODIFIER_LIST`. `ITEM` and `ITEM_VARIATION` have separate settings, but a variation can only be enabled at locations where its parent item is enabled. Disabling a variation everywhere is valid even when the parent item is enabled at specific locations. `MODIFIER` objects nested within a `MODIFIER_LIST` inherit location settings from their parent. Some object types, including `CATEGORY`, `IMAGE`, and `CUSTOM_ATTRIBUTE_DEFINITION`, must always be globally enabled and cannot use location-specific fields. The field operates in two modes. When true (the default), the object is available at all current and future locations except those in `absent_at_location_ids`. When false, the object is available only at locations in `present_at_location_ids`. The unused list in each mode is ignored. |
present_at_all_locations (anyOf 2) | null | Alternative | |
present_at_location_ids | JSON | Optional | |
present_at_location_ids (anyOf 1) | array | Alternative | Locations where the object is present, used when `present_at_all_locations` is false. When `present_at_all_locations` is true, this field is ignored since the object is already present everywhere. Can include deactivated locations. Empty strings are rejected. |
present_at_location_ids (anyOf 1)[] | string | Each item | |
present_at_location_ids (anyOf 2) | null | Alternative | |
pricing_rule_data | JSON | Optional | |
pricing_rule_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogPricingRule`, set for CatalogObjects of type `PRICING_RULE`. A `CatalogPricingRule` object often works with a `CatalogProductSet` object or a `CatalogTimePeriod` object. |
pricing_rule_data (anyOf 2) | null | Alternative | |
product_set_data | JSON | Optional | |
product_set_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogProductSet`, set for CatalogObjects of type `PRODUCT_SET`. |
product_set_data (anyOf 2) | null | Alternative | |
quick_amounts_settings_data | JSON | Optional | |
quick_amounts_settings_data (anyOf 1) | Model | Alternative | Expand UpsertCatalogObject — request body — body / object / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO Structured data for a `CatalogQuickAmountsSettings`, set for CatalogObjects of type `QUICK_AMOUNTS_SETTINGS`. |
quick_amounts_settings_data (anyOf 2) | null | Alternative | |
subscription_plan_data | JSON | Optional | |
subscription_plan_data (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object subscription plan data all items, eligible category ids, eligible item ids, name, phases, subscription plan variations Structured data for a `CatalogSubscriptionPlan`, set for CatalogObjects of type `SUBSCRIPTION_PLAN`. |
subscription_plan_data (anyOf 2) | null | Alternative | |
subscription_plan_variation_data | JSON | Optional | |
subscription_plan_variation_data (anyOf 1) | Model | Alternative | Expand 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 Structured data for a `CatalogSubscriptionPlanVariation`, set for CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`. |
subscription_plan_variation_data (anyOf 2) | null | Alternative | |
tax_data | JSON | Optional | |
tax_data (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object tax data A tax applicable to an item Structured data for a `CatalogTax`, set for CatalogObjects of type `TAX`. |
tax_data (anyOf 2) | null | Alternative | |
time_period_data | JSON | Optional | |
time_period_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image time period data event Structured data for a `CatalogTimePeriod`, set for CatalogObjects of type `TIME_PERIOD`. |
time_period_data (anyOf 2) | null | Alternative | |
type | Model | Required within parent | Expand Upsert Catalog Object — request body — body object type The type of this object. Each object type has expected properties expressed in a structured format within its corresponding `*_data` field below. See [CatalogObjectType](#type-catalogobjecttype) for possible values |
updated_at | string | Optional | Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"` would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The version of the object. When updating an object, the version supplied should match the version in the database. If it does not, the server attempts a three-way merge. If the client's changes and the concurrent changes don't overlap, the merge succeeds silently. A `VERSION_MISMATCH` error is only returned when both sides changed the same field to different values. Use the same API version (`Square-Version` header) for both reading and writing catalog objects. The server uses the API version on a write request to determine which missing fields the client intentionally cleared versus which fields the client simply could not see at that version. If a client reads an object at an older API version and writes it back at a newer version, fields that were introduced between those two versions will be absent from the request, and the server will interpret that absence as an intentional clear. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
version (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) |
Referenced models: Upsert Catalog Object — request body — body object availability period data Represents a time period of availability, 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, UpsertCatalogObject — request body — body / object / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION, Upsert Catalog Object — request body — body object custom attribute values object value, Upsert Catalog Object — request body — body object discount data A discount applicable to items, Create Catalog Image — response body — image image data caption, name, photo studio order id, url, 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, Upsert Catalog Object — request body — body object item option data A group of variations for a `Catalog Item`, Upsert Catalog Object — request body — body object item option value data An enumerated value that can link a, 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, Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision, 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, 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, Upsert Catalog Object — request body — body object type, 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, 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, UpsertCatalogObject — request body — body / object / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO, Upsert Catalog Object — request body — body object subscription plan data all items, eligible category ids, eligible item ids, name, phases, subscription plan variations, 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, Upsert Catalog Object — request body — body object tax data A tax applicable to an item, Create Catalog Image — response body — image time period data event, Create Catalog Image — response body — image catalog v1 ids array item
Upsert Catalog Object — request body — body object availability period data Represents a time period of availability
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a time period of availability. |
day_of_week | JSON | Optional | |
day_of_week (anyOf 1) | string | Alternative | Indicates the specific day of the week. The day of the week for this availability period. See [DayOfWeek](#type-dayofweek) for possible values One of: SUN, MON, TUE, WED, THU, FRI, SAT |
day_of_week (anyOf 2) | null | Alternative | |
end_local_time | JSON | Optional | |
end_local_time (anyOf 1) | string | Alternative | The end time of an availability period, specified in local time using partial-time RFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
end_local_time (anyOf 2) | null | Alternative | |
start_local_time | JSON | Optional | |
start_local_time (anyOf 1) | string | Alternative | The start time of an availability period, specified in local time using partial-time RFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
start_local_time (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A category to which a `CatalogItem` instance belongs. |
availability_period_ids | JSON | Optional | |
availability_period_ids (anyOf 1) | array | Alternative | The IDs of the `CatalogAvailabilityPeriod` objects associated with the category. |
availability_period_ids (anyOf 1)[] | string | Each item | |
availability_period_ids (anyOf 2) | null | Alternative | |
category_type | JSON | Optional | |
category_type (anyOf 1) | string | Alternative | Indicates the type of a category. The type of the category. See [CatalogCategoryType](#type-catalogcategorytype) for possible values One of: REGULAR_CATEGORY, MENU_CATEGORY, KITCHEN_CATEGORY |
category_type (anyOf 2) | null | Alternative | |
channels | JSON | Optional | |
channels (anyOf 1) | array | Alternative | A list of IDs representing channels, such as a Square Online site, where the category can be made visible. |
channels (anyOf 1)[] | string | Each item | |
channels (anyOf 2) | null | Alternative | |
ecom_seo_data | JSON | Optional | |
ecom_seo_data (anyOf 1) | Model | Alternative | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store The SEO data for a seller's Square Online store. |
ecom_seo_data (anyOf 2) | null | Alternative | |
image_ids | JSON | Optional | |
image_ids (anyOf 1) | array | Alternative | The IDs of images associated with this `CatalogCategory` instance. Currently these images are not displayed by Square, but are free to be displayed in 3rd party applications. |
image_ids (anyOf 1)[] | string | Each item | |
image_ids (anyOf 2) | null | Alternative | |
is_top_level | JSON | Optional | |
is_top_level (anyOf 1) | boolean | Alternative | Indicates whether a category is a top level category, which does not have any parent_category. |
is_top_level (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The category name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
online_visibility | JSON | Optional | |
online_visibility (anyOf 1) | boolean | Alternative | Indicates whether the category is visible (`true`) or hidden (`false`) on all of the seller's Square Online sites. |
online_visibility (anyOf 2) | null | Alternative | |
parent_category | JSON | Optional | |
parent_category (anyOf 1) | Model | Alternative | Expand 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 parent category of this category instance. This includes the parent category ID and an ordinal value that determines the category's relative position among sibling categories with the same parent. |
parent_category (anyOf 2) | null | Alternative | |
path_to_root | JSON | Optional | |
path_to_root (anyOf 1) | array | Alternative | The path from the category to its root category. The first node of the path is the parent of the category and the last is the root category. The path is empty if the category is a root category. |
path_to_root (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category path to root array item |
path_to_root (anyOf 2) | null | Alternative | |
root_category | string | Optional | The top-level category in a category hierarchy. Read only: true |
Referenced models: Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store, 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, Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category path to root array item
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A category that can be assigned to an item or a parent category that can be assigned to another category. For example, a clothing category can be assigned to a t-shirt item or be made as the parent category to the pants category. |
id | string | Optional | The ID of the object's category. |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | The position of this object within the specified category. When an item is assigned to a category, the ordinal determines the item's position relative to other items in the same category. When used for a parent category reference, the ordinal determines the category's position among its sibling categories. Format: int64 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 |
Upsert Catalog Object — request body — body object custom attribute values object value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An instance of a custom attribute. Custom attributes can be defined and added to `ITEM` and `ITEM_VARIATION` type catalog objects. [Read more about custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes). |
boolean_value | JSON | Optional | |
boolean_value (anyOf 1) | boolean | Alternative | A `true` or `false` value. Populated if `type` = `BOOLEAN`. |
boolean_value (anyOf 2) | null | Alternative | |
custom_attribute_definition_id | string | Optional | The id of the [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) this value belongs to. Read only: true |
key | string | Optional | If the associated `CatalogCustomAttributeDefinition` object is defined by another application, this key is prefixed by the defining application ID. For example, if the CatalogCustomAttributeDefinition has a key attribute of "cocoa_brand" and the defining application ID is "abcd1234", this key is "abcd1234:cocoa_brand" when the application making the request is different from the application defining the custom attribute definition. Otherwise, the key is simply "cocoa_brand". Read only: true |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the custom attribute. |
name (anyOf 2) | null | Alternative | |
number_value | JSON | Optional | |
number_value (anyOf 1) | string | Alternative | Populated if `type` = `NUMBER`. Contains a string representation of a decimal number, using a `.` as the decimal separator. |
number_value (anyOf 2) | null | Alternative | |
selection_uid_values | JSON | Optional | |
selection_uid_values (anyOf 1) | array | Alternative | One or more choices from `allowed_selections`. Populated if `type` = `SELECTION`. |
selection_uid_values (anyOf 1)[] | string | Each item | |
selection_uid_values (anyOf 2) | null | Alternative | |
string_value | JSON | Optional | |
string_value (anyOf 1) | string | Alternative | The string value of the custom attribute. Populated if `type` = `STRING`. |
string_value (anyOf 2) | null | Alternative | |
type | string | Optional | Defines the possible types for a custom attribute. A copy of type from the associated `CatalogCustomAttributeDefinition`. See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values One of: STRING, BOOLEAN, NUMBER, SELECTION Read only: true |