Delete Variant

Delete a product variant by its ID.

🔒

Requires write_product access scope. More access scope

The Delete Variant API allows users to remove a specific product variant by providing its product_id and variant_id. This endpoint ensures precise management of product data, enabling users to delete unwanted or outdated variants from their product catalog efficiently.This API is especially useful for:

  1. Remove outdated or incorrect variants to keep the product catalog accurate.
  2. Simplify inventory management by deleting unused variants.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
variant_idstringYesUnique identifier of the variant"var_123456789"
product_idstringYesUnique identifier of the product"pr_123456789"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"HTTP status code
messagestring"Success"Operation result message
data-

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!