Skip to content

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

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

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

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

Values:

- 0: No maximum limit.
- -1: Default value, the attribute was not set by the client. Treated as no maximum limit.
- >0: The maximum total modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.
- < -1: Invalid. Treated as no maximum limit.
Format: int64
max_selected_modifiers (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
max_selected_modifiers (anyOf 2)nullAlternative
min_selected_modifiersJSONOptional
min_selected_modifiers (anyOf 1)JSONAlternative
min_selected_modifiers (anyOf 1) (anyOf 1)integerAlternativeThe minimum number of modifiers that must be selected from this list. The value can be overridden with `CatalogItemModifierListInfo`.

Values:

- 0: No selection is required.
- -1: Default value, the attribute was not set by the client. Treated as no selection required.
- >0: The required minimum modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.
- < -1: Invalid. Treated as no selection required.
Format: int64
min_selected_modifiers (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
min_selected_modifiers (anyOf 2)nullAlternative
modifier_typeJSONOptional
modifier_type (anyOf 1)stringAlternativeDefines the type of `CatalogModifierList`.
The type of the modifier.

When this `modifier_type` value is `TEXT`, the `CatalogModifierList` represents a text-based modifier.
When this `modifier_type` value is `LIST`, the `CatalogModifierList` contains a list of `CatalogModifier` objects.
See [CatalogModifierListModifierType](#type-catalogmodifierlistmodifiertype) for possible values
Known values: LIST, TEXT
modifier_type (anyOf 2)nullAlternative
modifiersJSONOptional
modifiers (anyOf 1)arrayAlternativeA non-empty list of `CatalogModifier` objects to be included in the `CatalogModifierList`,
for non text-based modifiers when the `modifier_type` attribute is `LIST`. Each element of this list
is a `CatalogObject` instance of the `MODIFIER` type, containing the following attributes:
```
{
"id": "{{catalog_modifier_id}}",
"type": "MODIFIER",
"modifier_data": {{a CatalogModifier instance>}}
}
```
modifiers (anyOf 1)[]ModelEach itemExpand Create Catalog Image — response body — image
modifiers (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the `CatalogModifierList` instance. This is a searchable attribute for use in applicable query filters, and its value length is of
Unicode code points.
Maximum length: 255
name (anyOf 2)nullAlternative
ordinalJSONOptional
ordinal (anyOf 1)JSONAlternative
ordinal (anyOf 1) (anyOf 1)integerAlternativeThe position of this `CatalogModifierList` within a list of `CatalogModifierList` instances.
ordinal (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
ordinal (anyOf 2)nullAlternative
selection_typeJSONOptional
selection_type (anyOf 1)stringAlternativeIndicates whether a CatalogModifierList supports multiple selections.
__Deprecated__: Indicates whether a single (`SINGLE`) modifier or multiple (`MULTIPLE`) modifiers can be selected. Use
`min_selected_modifiers` and `max_selected_modifiers` instead.
See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values
Known values: SINGLE, MULTIPLE
selection_type (anyOf 2)nullAlternative
text_requiredJSONOptional
text_required (anyOf 1)booleanAlternativeWhether the text string must be a non-empty string (`true`) or not (`false`) for a text-based modifier
as represented by this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.
text_required (anyOf 2)nullAlternative

Referenced models: 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

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

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

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

Referenced models: 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

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

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

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

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

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

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

Cannot be combined with either `quantity_min` or `quantity_max`.
Format: int64
quantity_exact (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
quantity_exact (anyOf 2)nullAlternative
quantity_maxJSONOptional
quantity_max (anyOf 1)JSONAlternative
quantity_max (anyOf 1) (anyOf 1)integerAlternativeIf set, the pricing rule will apply to a maximum of this many items from
`products_any` or `products_all`.
Format: int64
quantity_max (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
quantity_max (anyOf 2)nullAlternative
quantity_minJSONOptional
quantity_min (anyOf 1)JSONAlternative
quantity_min (anyOf 1) (anyOf 1)integerAlternativeIf set, there must be at least this many items from `products_any` or `products_all`
in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if
`quantity_exact`, `quantity_min` and `quantity_max` are all unspecified.
Format: int64
quantity_min (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
quantity_min (anyOf 2)nullAlternative

Create Catalog Image — response body — image subscription plan data all items, eligible category ids, eligible item ids, name, phases, subscription plan variations

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

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

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

Referenced models: 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 phases item

FieldTypePresenceDescription and constraints
$objectRootDescribes a phase in a subscription plan variation. For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).
cadencestringRequired within parentDetermines the billing cadence of a [Subscription](entity:Subscription)
The billing cadence of the phase. For example, weekly or monthly. This field cannot be changed after a `SubscriptionPhase` is created.
See [SubscriptionCadence](#type-subscriptioncadence) for possible values
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
ordinalJSONOptional
ordinal (anyOf 1)JSONAlternative
ordinal (anyOf 1) (anyOf 1)integerAlternativeThe position this phase appears in the sequence of phases defined for the plan, indexed from 0. This field cannot be changed after a `SubscriptionPhase` is created.
Format: int64
ordinal (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
ordinal (anyOf 2)nullAlternative
periodsJSONOptional
periods (anyOf 1)JSONAlternative
periods (anyOf 1) (anyOf 1)integerAlternativeThe number of `cadence`s the phase lasts. If not set, the phase never ends. Only the last phase can be indefinite. This field cannot be changed after a `SubscriptionPhase` is created.
periods (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
periods (anyOf 2)nullAlternative
pricingJSONOptional
pricing (anyOf 1)ModelAlternativeExpand 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)nullAlternative
recurring_price_moneyJSONOptional
recurring_price_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeThe Square-assigned ID of the subscription phase. This field cannot be changed after a `SubscriptionPhase` is created.
uid (anyOf 2)nullAlternative

Referenced models: 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

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

Referenced models: Pay Order — response body — order total money

Create Catalog Image — response body — image tax data A tax applicable to an item

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

Create Catalog Image — response body — image time period data event

FieldTypePresenceDescription and constraints
$objectRootRepresents a time period - either a single period or a repeating period.
eventJSONOptional
event (anyOf 1)stringAlternativeAn 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)nullAlternative

Create Catalog Image — response body — image type

FieldTypePresenceDescription and constraints
$stringRootPossible types of CatalogObjects returned from the catalog, each
containing type-specific properties in the `*_data` field corresponding to the specified object type.
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

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

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

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

Default: 5
Maximum: 5
precision (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
precision (anyOf 2)nullAlternative

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

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

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

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

FieldTypePresenceDescription and constraints
$objectRootA named selection for this `SELECTION`-type custom attribute definition.
namestringRequired within parentSelection name, unique within `allowed_selections`.
Maximum length: 255
Minimum length: 1
uidJSONOptional
uid (anyOf 1)stringAlternativeUnique ID set by Square.
uid (anyOf 2)nullAlternative

CreateCatalogImage — response body — image / custom_attribute_definition_data / type: STRING, BOOLEAN, NUMBER, SELECTION string config enforce uniqueness

FieldTypePresenceDescription and constraints
$objectRootConfiguration associated with Custom Attribute Definitions of type `STRING`.
enforce_uniquenessJSONOptional
enforce_uniqueness (anyOf 1)booleanAlternativeIf 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)nullAlternative

CreateCatalogImage — response body — image / quick_amounts_settings_data / option: DISABLED, MANUAL, AUTO

FieldTypePresenceDescription and constraints
$objectRootA parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts.
amountsJSONOptional
amounts (anyOf 1)arrayAlternativeRepresents a set of Quick Amounts at this location.
amounts (anyOf 1)[]ModelEach itemExpand 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)nullAlternative
eligible_for_auto_amountsJSONOptional
eligible_for_auto_amounts (anyOf 1)booleanAlternativeRepresents location's eligibility for auto amounts
The boolean should be consistent with whether there are AUTO amounts in the `amounts`.
eligible_for_auto_amounts (anyOf 2)nullAlternative
optionstringRequired within parentDetermines a seller's option on Quick Amounts feature.
Represents the option seller currently uses on Quick Amounts.
See [CatalogQuickAmountsSettingsOption](#type-catalogquickamountssettingsoption) for possible values
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

FieldTypePresenceDescription and constraints
$objectRootRepresents a Quick Amount in the Catalog.
amountModelRequired within parentExpand Pay Order — response body — order total money
Represents the actual amount of the Quick Amount with Money type.
ordinalJSONOptional
ordinal (anyOf 1)JSONAlternative
ordinal (anyOf 1) (anyOf 1)integerAlternativeThe order in which this Quick Amount should be displayed.
Format: int64
ordinal (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
ordinal (anyOf 2)nullAlternative
scoreJSONOptional
score (anyOf 1)JSONAlternative
score (anyOf 1) (anyOf 1)integerAlternativeDescribes 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)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
score (anyOf 2)nullAlternative
typestringRequired within parentDetermines 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

FieldTypePresenceDescription and constraints
$objectRoot
deleted_atstringOptionalThe 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_idsarrayOptionalThe 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[]stringEach item
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item

List Catalog — response body

FieldTypePresenceDescription and constraints
$objectRoot
cursorstringOptionalThe 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.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
objectsarrayOptionalThe CatalogObjects returned.
objects[]ModelEach itemExpand 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

FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
objectModelOptionalExpand Create Catalog Image — response body — image
The `CatalogObject`s returned.
related_objectsarrayOptionalA list of `CatalogObject`s referenced by the object in the `object` field.
related_objects[]ModelEach itemExpand 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

FieldTypePresenceDescription and constraints
$objectRootDefines the request body for the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint.
archived_statestringOptionalDefines 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_idsarrayOptionalThe category id query expression to return items containing the specified category IDs.
category_ids[]stringEach item
cursorstringOptionalThe pagination token, returned in the previous response, used to fetch the next batch of pending results.
custom_attribute_filtersarrayOptionalThe 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[]ModelEach itemExpand Search Catalog Items — request body — body custom attribute filters item
enabled_location_idsarrayOptionalThe enabled-location query expression to return items and item variations having specified enabled locations.
enabled_location_ids[]stringEach item
include_optionsModelOptionalExpand Search Catalog Items — request body — body include options
Options to include related resources in the response.
limitintegerOptionalThe maximum number of results to return per page. The default value is 100.
Maximum: 100
product_typesarrayOptionalThe product types query expression to return items or item variations having the specified product types.
product_types[]stringEach itemThe 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_orderstringOptionalThe 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_levelsarrayOptionalThe stock-level query expression to return item variations with the specified stock levels.
See [SearchCatalogItemsRequestStockLevel](#type-searchcatalogitemsrequeststocklevel) for possible values
stock_levels[]stringEach itemDefines supported stock levels of the item inventory.
One of: OUT, LOW
text_filterstringOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRootSupported custom attribute query expressions for calling the
[SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems)
endpoint to search for items or item variations.
bool_filterJSONOptional
bool_filter (anyOf 1)booleanAlternativeA 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)nullAlternative
custom_attribute_definition_idJSONOptional
custom_attribute_definition_id (anyOf 1)stringAlternativeA 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)nullAlternative
keyJSONOptional
key (anyOf 1)stringAlternativeA 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)nullAlternative
number_filterJSONOptional
number_filter (anyOf 1)ModelAlternativeExpand 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)nullAlternative
selection_uids_filterJSONOptional
selection_uids_filter (anyOf 1)arrayAlternativeA 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)[]stringEach item
selection_uids_filter (anyOf 2)nullAlternative
string_filterJSONOptional
string_filter (anyOf 1)stringAlternativeA 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)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootThe range of a number value between the specified lower and upper bounds.
maxJSONOptional
max (anyOf 1)stringAlternativeThe 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)nullAlternative
minJSONOptional
min (anyOf 1)stringAlternativeThe 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)nullAlternative

Search Catalog Items — request body — body include options

FieldTypePresenceDescription and constraints
$objectRootOptions to include related resources of the requested `CatalogObject`s. Related resources will be included in
`IncludedResources` in the response.
includeJSONOptional
include (anyOf 1)arrayAlternativeResources to include in the response.
See [IncludeType](#type-includetype) for possible values
include (anyOf 1)[]stringEach itemRelated resources of requested `CatalogObject`s to include as part of the response.
One of: INCLUDE_NESTED_MODIFIERS, INCLUDE_ANCESTOR_MODIFIERS
include (anyOf 2)nullAlternative

Search Catalog Items — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the response body returned from the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint.
cursorstringOptionalPagination token used in the next request to return more of the search result.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
included_resourcesModelOptionalExpand Search Catalog Items — response body — included resources
Related resources included in the response as requested via include_options
itemsarrayOptionalReturned items matching the specified query expressions.
items[]ModelEach itemExpand Create Catalog Image — response body — image
matched_variation_idsarrayOptionalIds of returned item variations matching the specified query expression.
matched_variation_ids[]stringEach 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

FieldTypePresenceDescription and constraints
$objectRootRelated resources of the response `CatalogObject`s requested using `IncludeOptions`
ancestor_modifiersJSONOptional
ancestor_modifiers (anyOf 1)arrayAlternativeAncestor `CatalogModifierList`s as requested via INCLUDE_ANCESTOR_MODIFIERS
ancestor_modifiers (anyOf 1)[]ModelEach itemExpand Create Catalog Image — response body — image
ancestor_modifiers (anyOf 2)nullAlternative
nested_modifiersJSONOptional
nested_modifiers (anyOf 1)arrayAlternativeNested `CatalogModifierList`s as requested via `INCLUDE_NESTED_MODIFIERS`.
nested_modifiers (anyOf 1)[]ModelEach itemExpand Create Catalog Image — response body — image
nested_modifiers (anyOf 2)nullAlternative

Referenced models: Create Catalog Image — response body — image

Search Catalog Objects — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
begin_timestringOptionalReturn 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.
cursorstringOptionalThe 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_rootbooleanOptionalSpecifies 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_objectsbooleanOptionalIf `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_optionsModelOptionalExpand Search Catalog Items — request body — body include options
Options to include related resources in the response.
include_related_objectsbooleanOptionalIf `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`
limitintegerOptionalA 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_typesarrayOptionalThe 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[]ModelEach itemExpand Upsert Catalog Object — request body — body object type
queryModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootA 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_queryJSONOptional
exact_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
item_variations_for_item_option_values_queryJSONOptional
item_variations_for_item_option_values_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
items_for_item_options_queryJSONOptional
items_for_item_options_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
items_for_modifier_list_queryJSONOptional
items_for_modifier_list_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
items_for_tax_queryJSONOptional
items_for_tax_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
modifiers_for_child_list_queryJSONOptional
modifiers_for_child_list_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
prefix_queryJSONOptional
prefix_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
range_queryJSONOptional
range_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
set_queryJSONOptional
set_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
sorted_attribute_queryJSONOptional
sorted_attribute_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative
text_queryJSONOptional
text_query (anyOf 1)ModelAlternativeExpand 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)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the search result by exact match of the specified attribute name and value.
attribute_namestringRequired within parentThe name of the attribute to be searched. Matching of the attribute name is exact.
Minimum length: 1
attribute_valuestringRequired within parentThe 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

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the item variations containing the specified item option value IDs.
item_option_value_idsJSONOptional
item_option_value_ids (anyOf 1)arrayAlternativeA 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)[]stringEach item
item_option_value_ids (anyOf 2)nullAlternative

Search Catalog Objects — request body — body query items for item options query item option ids

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the items containing the specified item option IDs.
item_option_idsJSONOptional
item_option_ids (anyOf 1)arrayAlternativeA 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)[]stringEach item
item_option_ids (anyOf 2)nullAlternative

Search Catalog Objects — request body — body query items for modifier list query modifier list ids

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the items containing the specified modifier list IDs.
modifier_list_idsarrayRequired within parentA set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s.
modifier_list_ids[]stringEach item

Search Catalog Objects — request body — body query items for tax query tax ids

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the items containing the specified tax IDs.
tax_idsarrayRequired within parentA set of `CatalogTax` IDs to be used to find associated `CatalogItem`s.
tax_ids[]stringEach item

Search Catalog Objects — request body — body query modifiers for child list query child modifier list ids

FieldTypePresenceDescription and constraints
$objectRootQuery to find `CatalogModifier` objects that reference a given `CatalogModifierList` in their `child_modifier_list_ids` field.
child_modifier_list_idsarrayRequired within parentThe `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[]stringEach item

Search Catalog Objects — request body — body query prefix query attribute name, attribute prefix

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the search result whose named attribute values are prefixed by the specified attribute value.
attribute_namestringRequired within parentThe name of the attribute to be searched.
Minimum length: 1
attribute_prefixstringRequired within parentThe 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

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the search result whose named attribute values fall between the specified range.
attribute_max_valueJSONOptional
attribute_max_value (anyOf 1)JSONAlternative
attribute_max_value (anyOf 1) (anyOf 1)integerAlternativeThe desired maximum value for the search attribute (inclusive).
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
attribute_max_value (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n)
attribute_max_value (anyOf 2)nullAlternative
attribute_min_valueJSONOptional
attribute_min_value (anyOf 1)JSONAlternative
attribute_min_value (anyOf 1) (anyOf 1)integerAlternativeThe desired minimum value for the search attribute (inclusive).
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
attribute_min_value (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n)
attribute_min_value (anyOf 2)nullAlternative
attribute_namestringRequired within parentThe name of the attribute to be searched.
Minimum length: 1

Search Catalog Objects — request body — body query set query attribute name, attribute values

FieldTypePresenceDescription and constraints
$objectRootThe query filter to return the search result(s) by exact match of the specified `attribute_name` and any of
the `attribute_values`.
attribute_namestringRequired within parentThe name of the attribute to be searched. Matching of the attribute name is exact.
Minimum length: 1
attribute_valuesarrayRequired within parentThe 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[]stringEach item

Search Catalog Objects — request body — body query sorted attribute query attribute name, initial attribute value, sort order

FieldTypePresenceDescription and constraints
$objectRootThe query expression to specify the key to sort search results.
attribute_namestringRequired within parentThe attribute whose value is used as the sort key.
Minimum length: 1
initial_attribute_valueJSONOptional
initial_attribute_value (anyOf 1)stringAlternativeThe 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)nullAlternative
sort_orderJSONOptional
sort_order (anyOf 1)stringAlternativeThe 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)nullAlternative

Search Catalog Objects — request body — body query text query keywords

FieldTypePresenceDescription and constraints
$objectRootThe 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.
keywordsarrayRequired within parentA list of 1, 2, or 3 search keywords. Keywords with fewer than 3 alphanumeric characters are ignored.
keywords[]stringEach item

Search Catalog Objects — response body

FieldTypePresenceDescription and constraints
$objectRoot
cursorstringOptionalThe 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.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
included_resourcesModelOptionalExpand 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_timestringOptionalWhen 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.
objectsarrayOptionalThe CatalogObjects returned.
objects[]ModelEach itemExpand Create Catalog Image — response body — image
related_objectsarrayOptionalA list of CatalogObjects referenced by the objects in the `objects` field.
related_objects[]ModelEach itemExpand 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

FieldTypePresenceDescription and constraints
$objectRoot
idempotency_keystringRequired within parentA 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

FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
imageModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRoot
item_idsarrayRequired within parentThe IDs of the catalog items associated with the CatalogModifierList objects being updated.
item_ids[]stringEach item
modifier_lists_to_disableJSONOptional
modifier_lists_to_disable (anyOf 1)arrayAlternativeThe 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)[]stringEach item
modifier_lists_to_disable (anyOf 2)nullAlternative
modifier_lists_to_enableJSONOptional
modifier_lists_to_enable (anyOf 1)arrayAlternativeThe 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)[]stringEach item
modifier_lists_to_enable (anyOf 2)nullAlternative

Update Item Modifier Lists — response body

FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
updated_atstringOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRoot
item_idsarrayRequired within parentIDs for the CatalogItems associated with the CatalogTax objects being updated.
No more than 1,000 IDs may be provided.
item_ids[]stringEach item
taxes_to_disableJSONOptional
taxes_to_disable (anyOf 1)arrayAlternativeIDs 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)[]stringEach item
taxes_to_disable (anyOf 2)nullAlternative
taxes_to_enableJSONOptional
taxes_to_enable (anyOf 1)arrayAlternativeIDs 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)[]stringEach item
taxes_to_enable (anyOf 2)nullAlternative

Update Item Taxes — response body

FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
updated_atstringOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRoot
idempotency_keystringRequired within parentA 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
objectModelRequired within parentExpand 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

FieldTypePresenceDescription and constraints
$objectRootThe 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_idsJSONOptional
absent_at_location_ids (anyOf 1)arrayAlternativeLocations 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)[]stringEach item
absent_at_location_ids (anyOf 2)nullAlternative
availability_period_dataJSONOptional
availability_period_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
catalog_v1_idsJSONOptional
catalog_v1_ids (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Create Catalog Image — response body — image catalog v1 ids array item
catalog_v1_ids (anyOf 2)nullAlternative
category_dataJSONOptional
category_data (anyOf 1)ModelAlternativeExpand Upsert Catalog Object — request body — body object category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category
Structured data for a `CatalogCategory`, set for CatalogObjects of type `CATEGORY`.
category_data (anyOf 2)nullAlternative
custom_attribute_definition_dataJSONOptional
custom_attribute_definition_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
custom_attribute_valuesJSONOptional
custom_attribute_values (anyOf 1)objectAlternativeA 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).*ModelAdditional keysExpand Upsert Catalog Object — request body — body object custom attribute values object value
custom_attribute_values (anyOf 2)nullAlternative
discount_dataJSONOptional
discount_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
idstringRequired within parentAn 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_dataJSONOptional
image_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
is_deletedJSONOptional
is_deleted (anyOf 1)booleanAlternativeIf `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)nullAlternative
item_dataJSONOptional
item_data (anyOf 1)ModelAlternativeExpand Upsert Catalog Object — request body — body object item data abbreviation, buyer facing name, categories, category id, channels, description, description html, description plaintext, ecom image uris, ecom seo data, ecom uri, food and beverage details, image ids, is alcoholic, is archived, is taxable, item options, kitchen name, label color, modifier list info, name, product type, reporting category, skip modifier screen, sort name, tax ids, variations
Structured data for a `CatalogItem`, set for CatalogObjects of type `ITEM`.
item_data (anyOf 2)nullAlternative
item_option_dataJSONOptional
item_option_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
item_option_value_dataJSONOptional
item_option_value_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
item_variation_dataJSONOptional
item_variation_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
measurement_unit_dataJSONOptional
measurement_unit_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
modifier_dataJSONOptional
modifier_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
modifier_list_dataJSONOptional
modifier_list_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
present_at_all_locationsJSONOptional
present_at_all_locations (anyOf 1)booleanAlternativeControls 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)nullAlternative
present_at_location_idsJSONOptional
present_at_location_ids (anyOf 1)arrayAlternativeLocations 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)[]stringEach item
present_at_location_ids (anyOf 2)nullAlternative
pricing_rule_dataJSONOptional
pricing_rule_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
product_set_dataJSONOptional
product_set_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
quick_amounts_settings_dataJSONOptional
quick_amounts_settings_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
subscription_plan_dataJSONOptional
subscription_plan_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
subscription_plan_variation_dataJSONOptional
subscription_plan_variation_data (anyOf 1)ModelAlternativeExpand Upsert Catalog Object — request body — body object subscription plan variation data can prorate, monthly billing anchor date, name, phases, subscription plan id, successor plan variation id
Structured data for a `CatalogSubscriptionPlanVariation`, set for CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`.
subscription_plan_variation_data (anyOf 2)nullAlternative
tax_dataJSONOptional
tax_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
time_period_dataJSONOptional
time_period_data (anyOf 1)ModelAlternativeExpand 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)nullAlternative
typeModelRequired within parentExpand 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_atstringOptionalLast 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
versionJSONOptional
version (anyOf 1)integerAlternativeThe 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)stringAlternativePattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n)

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

FieldTypePresenceDescription and constraints
$objectRootRepresents a time period of availability.
day_of_weekJSONOptional
day_of_week (anyOf 1)stringAlternativeIndicates 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)nullAlternative
end_local_timeJSONOptional
end_local_time (anyOf 1)stringAlternativeThe 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)nullAlternative
start_local_timeJSONOptional
start_local_time (anyOf 1)stringAlternativeThe 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)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootA category to which a `CatalogItem` instance belongs.
availability_period_idsJSONOptional
availability_period_ids (anyOf 1)arrayAlternativeThe IDs of the `CatalogAvailabilityPeriod` objects associated with the category.
availability_period_ids (anyOf 1)[]stringEach item
availability_period_ids (anyOf 2)nullAlternative
category_typeJSONOptional
category_type (anyOf 1)stringAlternativeIndicates 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)nullAlternative
channelsJSONOptional
channels (anyOf 1)arrayAlternativeA list of IDs representing channels, such as a Square Online site, where the category can be made visible.
channels (anyOf 1)[]stringEach item
channels (anyOf 2)nullAlternative
ecom_seo_dataJSONOptional
ecom_seo_data (anyOf 1)ModelAlternativeExpand Create Catalog Image — response body — image category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category ecom seo data SEO data for for a seller's Square Online store
The SEO data for a seller's Square Online store.
ecom_seo_data (anyOf 2)nullAlternative
image_idsJSONOptional
image_ids (anyOf 1)arrayAlternativeThe 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)[]stringEach item
image_ids (anyOf 2)nullAlternative
is_top_levelJSONOptional
is_top_level (anyOf 1)booleanAlternativeIndicates whether a category is a top level category, which does not have any parent_category.
is_top_level (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
online_visibilityJSONOptional
online_visibility (anyOf 1)booleanAlternativeIndicates whether the category is visible (`true`) or hidden (`false`) on all of the seller's Square Online sites.
online_visibility (anyOf 2)nullAlternative
parent_categoryJSONOptional
parent_category (anyOf 1)ModelAlternativeExpand Upsert Catalog Object — request body — body object category data availability period ids, category type, channels, ecom seo data, image ids, is top level, name, online visibility, parent category, path to root, root category parent category id, ordinal
The 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)nullAlternative
path_to_rootJSONOptional
path_to_root (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand 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)nullAlternative
root_categorystringOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRootA 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.
idstringOptionalThe ID of the object's category.
ordinalJSONOptional
ordinal (anyOf 1)JSONAlternative
ordinal (anyOf 1) (anyOf 1)integerAlternativeThe 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)stringAlternativePattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n)
ordinal (anyOf 2)nullAlternative

Upsert Catalog Object — request body — body object custom attribute values object value

FieldTypePresenceDescription and constraints
$objectRootAn 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_valueJSONOptional
boolean_value (anyOf 1)booleanAlternativeA `true` or `false` value. Populated if `type` = `BOOLEAN`.
boolean_value (anyOf 2)nullAlternative
custom_attribute_definition_idstringOptionalThe id of the [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) this value belongs to.
Read only: true
keystringOptionalIf 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
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the custom attribute.
name (anyOf 2)nullAlternative
number_valueJSONOptional
number_value (anyOf 1)stringAlternativePopulated if `type` = `NUMBER`. Contains a string
representation of a decimal number, using a `.` as the decimal separator.
number_value (anyOf 2)nullAlternative
selection_uid_valuesJSONOptional
selection_uid_values (anyOf 1)arrayAlternativeOne or more choices from `allowed_selections`. Populated if `type` = `SELECTION`.
selection_uid_values (anyOf 1)[]stringEach item
selection_uid_values (anyOf 2)nullAlternative
string_valueJSONOptional
string_value (anyOf 1)stringAlternativeThe string value of the custom attribute. Populated if `type` = `STRING`.
string_value (anyOf 2)nullAlternative
typestringOptionalDefines 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

Report an issue with this page

Necessary

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

Always active

Analytics

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

Performance diagnostics

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

Advertising

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

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