/square-catalog | Type: Application | PCID required: Yes
Tools
square_catalog_batch_change_inventory
BatchChangeInventory Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
changes | object[] | No | — | The set of physical counts and inventory adjustments to be made. Changes are applied based on the client-supplied timestamp and may be sent out of order. |
idempotency_key | string | Yes | — | A client-supplied, universally unique identifier (UUID) for the request. See Idempotency in the API Development 101 section for more information. |
ignore_unchanged_counts | boolean | No | — | Indicates whether the current physical count should be ignored if the quantity is unchanged since the last physical count. Default: true. |
square_catalog_batch_delete_catalog_objects
BatchDeleteCatalogObjects Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
object_ids | string[] | Yes | — | The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a CatalogItem will delete its CatalogItemVariation. |
square_catalog_batch_retrieve_catalog_objects
BatchRetrieveCatalogObjects Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
catalog_version | integer | No | — | The specific version of the catalog objects to be included in the response. This allows you to retrieve historical versions of objects. The specified version value is matched against the CatalogObjects’ version attribute. If not included, results will be from the current version of the catalog. |
include_category_path_to_root | boolean | No | — | Specifies whether or not to include the path_to_root list for each returned category instance. The path_to_root list consists of CategoryPathToRootNode objects and specifies the path that starts with the immediate parent category of the returned category and ends with its root category. If the returned category is a top-level category, the path_to_root list is empty and is not returned in the response payload. |
include_deleted_objects | boolean | No | — | Indicates whether to include (true) or not (false) in the response deleted objects, namely, those with the is_deleted attribute set to true. |
include_related_objects | boolean | No | — | If true, the response will include additional objects that are related to the requested objects. Related objects are defined as any objects referenced by ID by the results in the objects field of the response. These objects are put in the related_objects field. Setting this to true is helpful when the objects are needed for immediate display to a user. This process only goes one level deep. Objects referenced by the related objects will not be included. For example, if the objects field of the response contains a CatalogItem, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists will be returned in the related_objects field of the response. If the objects field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the related_objects field of the response. Default value: false |
object_ids | string[] | Yes | — | The IDs of the CatalogObjects to be retrieved. |
square_catalog_batch_retrieve_inventory_changes
BatchRetrieveInventoryChanges Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
catalog_object_ids | string[] | No | — | The filter to return results by CatalogObject ID. The filter is only applicable when set. The default value is null. |
cursor | string | No | — | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the Pagination guide for more information. |
limit | integer | No | — | The number of records to return. |
location_ids | string[] | No | — | The filter to return results by Location ID. The filter is only applicable when set. The default value is null. |
states | string[] | No | — | The filter to return ADJUSTMENT query results by InventoryState. This filter is only applied when set. The default value is null. |
types | string[] | No | — | The filter to return results by InventoryChangeType values other than TRANSFER. The default value is [PHYSICAL_COUNT, ADJUSTMENT]. |
updated_after | string | No | — | The filter to return results with their calculated_at value after the given time as specified in an RFC 3339 timestamp. The default value is the UNIX epoch of (1970-01-01T00:00:00Z). |
updated_before | string | No | — | The filter to return results with their created_at or calculated_at value strictly before the given time as specified in an RFC 3339 timestamp. The default value is the UNIX epoch of (1970-01-01T00:00:00Z). |
square_catalog_batch_retrieve_inventory_counts
BatchRetrieveInventoryCounts Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
catalog_object_ids | string[] | No | — | The filter to return results by CatalogObject ID. The filter is applicable only when set. The default is null. |
cursor | string | No | — | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the Pagination guide for more information. |
limit | integer | No | — | The number of records to return. |
location_ids | string[] | No | — | The filter to return results by Location ID. This filter is applicable only when set. The default is null. |
states | string[] | No | — | The filter to return results by InventoryState. The filter is only applicable when set. Ignored are untracked states of NONE, SOLD, and UNLINKED_RETURN. The default is null. |
updated_after | string | No | — | The filter to return results with their calculated_at value after the given time as specified in an RFC 3339 timestamp. The default value is the UNIX epoch of (1970-01-01T00:00:00Z). |
square_catalog_batch_retrieve_orders
BatchRetrieveOrders Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location_id | string | No | — | The ID of the location for these orders. This field is optional: omit it to retrieve orders within the scope of the current authorization’s merchant ID. |
order_ids | string[] | Yes | — | The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request. |
square_catalog_batch_upsert_catalog_objects
BatchUpsertCatalogObjects Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
batches | object[] | Yes | — | A batch of CatalogObjects to be inserted/updated atomically. The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error in one batch will not affect other batches within the same request. For each object, its updated_at field is ignored and replaced with a current timestamp, and its is_deleted field must not be set to true. To modify an existing object, supply its ID. To create a new object, use an ID starting with #. These IDs may be used to create relationships between an object and attributes of other objects that reference it. For example, you can create a CatalogItem with ID #ABC and a CatalogItemVariation with its item_id attribute set to #ABC in order to associate the CatalogItemVariation with its parent CatalogItem. Any #-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs. Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will be inserted or updated. |
idempotency_key | string | Yes | — | A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you’re unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See Idempotency for more information. |
square_catalog_bulk_delete_order_custom_attributes
BulkDeleteOrderCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
values | object | Yes | — | A map of requests that correspond to individual delete operations for custom attributes. |
square_catalog_bulk_upsert_order_custom_attributes
BulkUpsertOrderCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
values | object | Yes | — | A map of requests that correspond to individual upsert operations for custom attributes. |
square_catalog_calculate_order
CalculateOrder Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order | object | Yes | — | Contains all information related to a single order to process with Square, including line items that specify the products to purchase. Order objects also include information about any associated tenders, refunds, and returns. All Connect V2 Transactions have all been converted to Orders including all associated itemization data. |
proposed_rewards | object[] | No | — | Identifies one or more loyalty reward tiers to apply during the order calculation. The discounts defined by the reward tiers are added to the order only to preview the effect of applying the specified rewards. The rewards do not correspond to actual redemptions; that is, no rewards are created. Therefore, the reward ids are random strings used only to reference the reward tier. |
square_catalog_clone_order
CloneOrder Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | A value you specify that uniquely identifies this clone request. If you are unsure whether a particular order was cloned successfully, you can reattempt the call with the same idempotency key without worrying about creating duplicate cloned orders. The originally cloned order is returned. For more information, see Idempotency. |
order_id | string | Yes | — | The ID of the order to clone. |
version | integer | No | — | An optional order version for concurrency protection. If a version is provided, it must match the latest stored version of the order to clone. If a version is not provided, the API clones the latest version. |
square_catalog_create_catalog_image
CreateCatalogImage Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image_file | string | No | — | Image File |
request | object | No | — | The request value |
square_catalog_create_order
CreateOrder Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | A value you specify that uniquely identifies this order among orders you have created. If you are unsure whether a particular order was created successfully, you can try it again with the same idempotency key without worrying about creating duplicate orders. For more information, see Idempotency. |
order | object | No | — | Contains all information related to a single order to process with Square, including line items that specify the products to purchase. Order objects also include information about any associated tenders, refunds, and returns. All Connect V2 Transactions have all been converted to Orders including all associated itemization data. |
square_catalog_create_order_custom_attribute_definition
CreateOrderCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
custom_attribute_definition | object | Yes | — | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_catalog_delete_object
DeleteCatalogObject Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
object_id | string | Yes | — | The ID of the catalog object to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a catalog item will delete its catalog item variations). |
square_catalog_delete_order_custom_attribute
DeleteOrderCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order_id | string | Yes | — | The ID of the target order. |
custom_attribute_key | string | Yes | — | The key of the custom attribute to delete. This key must match the key of an existing custom attribute definition. |
square_catalog_delete_order_custom_attribute_definition
DeleteOrderCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to delete. |
square_catalog_info
CatalogInfosquare_catalog_list_catalog
ListCatalog Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cursor | string | No | — | The pagination cursor returned in the previous response. Leave unset for an initial request. The page size is currently set to be 100. See Pagination for more information. |
types | string | No | — | An optional case-insensitive, comma-separated list of object types to retrieve. The valid values are defined in the CatalogObjectType enum, for example, ITEM, ITEM_VARIATION, CATEGORY, DISCOUNT, TAX, MODIFIER, MODIFIER_LIST, IMAGE, etc. 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. |
catalog_version | integer | No | — | The specific version of the catalog objects to be included in the response. This allows you to retrieve historical versions of objects. The specified version value is matched against the CatalogObjects’ version attribute. If not included, results will be from the current version of the catalog. |
square_catalog_list_order_custom_attribute_definitions
ListOrderCustomAttributeDefinitions Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
visibility_filter | string | No | — | Requests that all of the custom attributes be returned, or only those that are read-only or read-write. |
cursor | string | No | — | The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination. |
limit | integer | No | — | The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination. |
square_catalog_list_order_custom_attributes
ListOrderCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order_id | string | Yes | — | The ID of the target order. |
visibility_filter | string | No | — | Requests that all of the custom attributes be returned, or only those that are read-only or read-write. |
cursor | string | No | — | The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination. |
limit | integer | No | — | The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination. |
with_definitions | boolean | No | — | Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false. |
square_catalog_pay_order
PayOrder Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order_id | string | Yes | — | The ID of the order being paid. |
idempotency_key | string | Yes | — | A value you specify that uniquely identifies this request among requests you have sent. If you are unsure whether a particular payment request was completed successfully, you can reattempt it with the same idempotency key without worrying about duplicate payments. For more information, see Idempotency. |
order_version | integer | No | — | The version of the order being paid. If not supplied, the latest version will be paid. |
payment_ids | string[] | No | — | The IDs of the payments to collect. The payment total must match the order total. |
square_catalog_retrieve_catalog_object
RetrieveCatalogObject Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
object_id | string | Yes | — | The object ID of any type of catalog objects to be retrieved. |
include_related_objects | boolean | No | — | If true, the response will include additional objects that are related to the requested objects. Related objects are defined as any objects referenced by ID by the results in the objects field of the response. These objects are put in the related_objects field. Setting this to true is helpful when the objects are needed for immediate display to a user. This process only goes one level deep. Objects referenced by the related objects will not be included. For example, if the objects field of the response contains a CatalogItem, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists will be returned in the related_objects field of the response. If the objects field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the related_objects field of the response. Default value: false |
catalog_version | integer | No | — | Requests objects as of a specific version of the catalog. This allows you to retrieve historical versions of objects. The value to retrieve a specific version of an object can be found in the version field of CatalogObjects. If not included, results will be from the current version of the catalog. |
include_category_path_to_root | boolean | No | — | Specifies whether or not to include the path_to_root list for each returned category instance. The path_to_root list consists of CategoryPathToRootNode objects and specifies the path that starts with the immediate parent category of the returned category and ends with its root category. If the returned category is a top-level category, the path_to_root list is empty and is not returned in the response payload. |
square_catalog_retrieve_inventory_adjustment
RetrieveInventoryAdjustment Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
adjustment_id | string | Yes | — | ID of the InventoryAdjustment to retrieve. |
square_catalog_retrieve_inventory_count
RetrieveInventoryCount Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
catalog_object_id | string | Yes | — | ID of the CatalogObject to retrieve. |
location_ids | string | No | — | The Location IDs to look up as a comma-separated list. An empty list queries all locations. |
cursor | string | No | — | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the Pagination guide for more information. |
square_catalog_retrieve_inventory_physical_count
RetrieveInventoryPhysicalCount Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
physical_count_id | string | Yes | — | ID of the InventoryPhysicalCount to retrieve. |
square_catalog_retrieve_inventory_transfer
RetrieveInventoryTransfer Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
transfer_id | string | Yes | — | ID of the InventoryTransfer to retrieve. |
square_catalog_retrieve_order
RetrieveOrder Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order_id | string | Yes | — | The ID of the order to retrieve. |
square_catalog_retrieve_order_custom_attribute
RetrieveOrderCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order_id | string | Yes | — | The ID of the target order. |
custom_attribute_key | string | Yes | — | The key of the custom attribute to retrieve. This key must match the key of an existing custom attribute definition. |
version | integer | No | — | To enable optimistic concurrency control, include this optional field and specify the current version of the custom attribute. |
with_definition | boolean | No | — | Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false. |
square_catalog_retrieve_order_custom_attribute_definition
RetrieveOrderCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to retrieve. |
version | integer | No | — | To enable optimistic concurrency control, include this optional field and specify the current version of the custom attribute. |
square_catalog_search_catalog_items
SearchCatalogItems Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
archived_state | string | No | — | Defines the values for the archived_state query expression used in SearchCatalogItems to return the archived, not archived or either type of catalog items. |
category_ids | string[] | No | — | The category id query expression to return items containing the specified category IDs. |
cursor | string | No | — | The pagination token, returned in the previous response, used to fetch the next batch of pending results. |
custom_attribute_filters | object[] | No | — | The customer-attribute filter to return items or item variations matching the specified custom attribute expressions. A maximum number of 10 custom attribute expressions are supported in a single call to the SearchCatalogItems endpoint. |
enabled_location_ids | string[] | No | — | The enabled-location query expression to return items and item variations having specified enabled locations. |
limit | integer | No | — | The maximum number of results to return per page. The default value is 100. |
product_types | string[] | No | — | The product types query expression to return items or item variations having the specified product types. |
sort_order | string | No | — | The order (e.g., chronological or alphabetical) in which results from a request are returned. |
stock_levels | string[] | No | — | The stock-level query expression to return item variations with the specified stock levels. See SearchCatalogItemsRequestStockLevel for possible values |
text_filter | string | No | — | The text filter expression to return items or item variations containing specified text in the name, description, or abbreviation attribute value of an item, or in the name, sku, or upc attribute value of an item variation. |
square_catalog_search_catalog_objects
SearchCatalogObjects Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
begin_time | string | No | — | Return objects modified after this timestamp, in RFC 3339 format, e.g., 2016-09-04T23:59:33.123Z. The timestamp is exclusive - objects with a timestamp equal to begin_time will not be included in the response. |
cursor | string | No | — | The pagination cursor returned in the previous response. Leave unset for an initial request. See Pagination for more information. |
include_category_path_to_root | boolean | No | — | Specifies whether or not to include the path_to_root list for each returned category instance. The path_to_root list consists of CategoryPathToRootNode objects and specifies the path that starts with the immediate parent category of the returned category and ends with its root category. If the returned category is a top-level category, the path_to_root list is empty and is not returned in the response payload. If include_category_path_to_root is true, then the include_deleted_objects request parameter must be false. Both properties cannot be true at the same time. |
include_deleted_objects | boolean | No | — | If true, deleted objects will be included in the results. Defaults to false. Deleted objects will have their is_deleted field set to true. If include_deleted_objects is true, then the include_category_path_to_root request parameter must be false. Both properties cannot be true at the same time. |
include_related_objects | boolean | No | — | If true, the response will include additional objects that are related to the requested objects. Related objects are objects that are referenced by object ID by the objects in the response. This is helpful if the objects are being fetched for immediate display to a user. This process only goes one level deep. Objects referenced by the related objects will not be included. For example: If the objects field of the response contains a CatalogItem, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists will be returned in the related_objects field of the response. If the objects field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the related_objects field of the response. Default value: false |
limit | integer | No | — | A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored. |
object_types | string[] | No | — | The desired set of object types to appear in the search results. If this is unspecified, the operation returns objects of all the top level types at the version of the Square API used to make the request. Object types that are nested onto other object types are not included in the defaults. At the current API version the default object types are: ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST, PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT, SUBSCRIPTION_PLAN, ITEM_OPTION, CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNT_SETTINGS. Note that if you wish for the query to return objects belonging to nested types (i.e., COMPONENT, IMAGE, ITEM_OPTION_VAL, ITEM_VARIATION, or MODIFIER), you must explicitly include all the types of interest in this field. |
query | object | No | — | A query composed of one or more different types of filters to narrow the scope of targeted objects when calling the SearchCatalogObjects endpoint. Although a query can have multiple filters, only certain query types can be combined per call to SearchCatalogObjects. Any combination of the following types may be used together: - exact_query - prefix_query - range_query - sorted_attribute_query - text_query 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 objects by searchable attributes, you can use the "name", "description", or "abbreviation" attribute in an applicable query filter. |
square_catalog_search_orders
SearchOrders Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cursor | string | No | — | A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for your original query. For more information, see Pagination. |
limit | integer | No | — | The maximum number of results to be returned in a single page. Default: 500 Max: 1000 |
location_ids | string[] | No | — | The location IDs for the orders to query. All locations must belong to the same merchant. Max: 10 location IDs. |
query | object | No | — | Contains query criteria for the search. |
return_entries | boolean | No | — | A Boolean that controls the format of the search results. If true, SearchOrders returns OrderEntry objects. If false, SearchOrders returns complete order objects. Default: false. |
square_catalog_update_catalog_image
UpdateCatalogImage Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image_id | string | Yes | — | The ID of the CatalogImage object to update the encapsulated image file. |
image_file | string | No | — | Image File |
request | object | No | — | The request value |
square_catalog_update_item_modifier_lists
UpdateItemModifierLists Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
item_ids | string[] | Yes | — | The IDs of the catalog items associated with the CatalogModifierList objects being updated. |
modifier_lists_to_disable | string[] | No | — | The IDs of the CatalogModifierList objects to disable for the CatalogItem. At least one of modifier_lists_to_enable or modifier_lists_to_disable must be specified. |
modifier_lists_to_enable | string[] | No | — | The IDs of the CatalogModifierList objects to enable for the CatalogItem. At least one of modifier_lists_to_enable or modifier_lists_to_disable must be specified. |
square_catalog_update_item_taxes
UpdateItemTaxes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
item_ids | string[] | Yes | — | IDs for the CatalogItems associated with the CatalogTax objects being updated. No more than 1,000 IDs may be provided. |
taxes_to_disable | string[] | No | — | IDs of the CatalogTax objects to disable. At least one of taxes_to_enable or taxes_to_disable must be specified. |
taxes_to_enable | string[] | No | — | IDs of the CatalogTax objects to enable. At least one of taxes_to_enable or taxes_to_disable must be specified. |
square_catalog_update_order
UpdateOrder Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order_id | string | Yes | — | The ID of the order to update. |
fields_to_clear | string[] | No | — | The dot notation paths fields to clear. For example, line_items[uid].note. For more information, see Deleting fields. |
idempotency_key | string | No | — | A value you specify that uniquely identifies this update request. If you are unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version is returned. For more information, see Idempotency. |
order | object | No | — | Contains all information related to a single order to process with Square, including line items that specify the products to purchase. Order objects also include information about any associated tenders, refunds, and returns. All Connect V2 Transactions have all been converted to Orders including all associated itemization data. |
square_catalog_update_order_custom_attribute_definition
UpdateOrderCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to update. |
custom_attribute_definition | object | Yes | — | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_catalog_upsert_catalog_object
UpsertCatalogObject Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | Yes | — | A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you’re unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See Idempotency for more information. |
object | object | Yes | — | The wrapper object for the catalog entries of a given object type. Depending on the type attribute value, a CatalogObject instance assumes a type-specific data to yield the corresponding type of catalog object. For example, if type=ITEM, the CatalogObject instance must have the ITEM-specific data set on the item_data attribute. The resulting CatalogObject instance is also a CatalogItem instance. In general, if type=<OBJECT_TYPE>, the CatalogObject instance must have the <OBJECT_TYPE>-specific data set on the <object_type>_data attribute. The resulting CatalogObject instance is also a Catalog<ObjectType> instance. For a more detailed discussion of the Catalog data model, please see the Design a Catalog guide. |
square_catalog_upsert_order_custom_attribute
UpsertOrderCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
order_id | string | Yes | — | The ID of the target order. |
custom_attribute_key | string | Yes | — | The key of the custom attribute to create or update. This key must match the key of an existing custom attribute definition. |
custom_attribute | object | Yes | — | A custom attribute value. Each custom attribute value has a corresponding CustomAttributeDefinition object. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |

