• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

You are viewing an old version of the API
Delete variation
V1
Square V1 APIs

We recommend using the Square API (V2) for all new development when possible. See When to use Connect V1 to learn more about working with V1 endpoints.

Deprecated
Effective November 20th, 2019

Deletes an existing item variation from an item.

DeleteVariation returns nothing on success but Connect SDKs map the empty response to an empty V1DeleteVariationRequest object as documented below.

Required permissions: ITEMS_WRITE

Deprecation date

2019-11-20

Retirement date

2020-11-18

Replaced by

DeleteCatalogObject
Migration guide

Path Parameters

Name Description
location_id
string

Required

The ID of the item's associated location.

item_id
string

Required

The ID of the item to delete.

variation_id
string

Required

The ID of the variation to delete.

Response Fields

Name Description
id
string

The item variation's unique ID.

name
string

The item variation's name.

item_id
string

The ID of the variation's associated item.

ordinal
integer

Indicates the variation's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one variation for the same item has the same ordinal value, those variations are displayed in alphabetical order

pricing_type
string

Indicates whether the item variation's price is fixed or determined at the time of sale.

price_money
Money

The item variation's price, if any.

sku
string

The item variation's SKU, if any.

track_inventory
boolean

If true, inventory tracking is active for the variation.

inventory_alert_type
string

Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventoryalertthreshold.

inventory_alert_threshold
integer

If the inventory quantity for the variation is less than or equal to this value and inventoryalerttype is LOW_QUANTITY, the variation displays an alert in the merchant dashboard.

user_data
string

Arbitrary metadata associated with the variation. Cannot exceed 255 characters.

v2_id
string

The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID.

Examples

You are viewing an old version of the API
DELETE /v1/{location_id}/items/{item_id}/variations/{variation_id}
cURL
  • cURL
curl https://connect.squareup.com/v1/location_id0/items/item_id1/variations/variation_id2 \
  -X DELETE \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?