delete
https://{subdomain}.myshoplaza.com/openapi/2025-06/products//variants/
Delete a product variant by its ID.
Requireswrite_productaccess 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:
- Remove outdated or incorrect variants to keep the product catalog accurate.
- Simplify inventory management by deleting unused variants.
Request Parameters
Public Request Parameters
Path Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
variant_id | string | Yes | Unique identifier of the variant | "var_123456789" |
product_id | string | Yes | Unique identifier of the product | "pr_123456789" |
Response Explanation
Public Response Parameters
Successful Response
| Parameter | Type | Example | Description |
|---|---|---|---|
code | string | "200" | HTTP status code |
message | string | "Success" | Operation result message |
data | - |
Error Response
| Field | Type | Example | Description |
|---|---|---|---|
code | string | InvalidParameter | Error http message |
message | string | `` | Error message |
