curl --request DELETE \
--url https://api.komerza.com/stores/{storeId}/products/{productId}/variants/{variantId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"name": "<string>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": 50000,
"deliveryTypes": [
"<string>"
],
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"friendlyName": "<string>",
"ipAddress": "<string>",
"userId": "<string>"
}
],
"minimumQuantity": 123,
"maximumQuantity": 123,
"order": 123,
"imageNames": [
"<string>"
],
"stock": 123,
"stockMode": 0,
"customFields": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"identifier": "<string>",
"type": "<string>",
"isRequired": true,
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"customFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"value": "<string>",
"order": 1073741823
}
],
"placeholder": "<string>",
"hint": "<string>"
}
],
"dynamicUrl": "<string>",
"deliveryMessage": "<string>",
"metadata": "<string>"
}
}Removes the specified variant.
Requires the stores.products.update permission.
curl --request DELETE \
--url https://api.komerza.com/stores/{storeId}/products/{productId}/variants/{variantId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"name": "<string>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": 50000,
"deliveryTypes": [
"<string>"
],
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"friendlyName": "<string>",
"ipAddress": "<string>",
"userId": "<string>"
}
],
"minimumQuantity": 123,
"maximumQuantity": 123,
"order": 123,
"imageNames": [
"<string>"
],
"stock": 123,
"stockMode": 0,
"customFields": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"identifier": "<string>",
"type": "<string>",
"isRequired": true,
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"customFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"value": "<string>",
"order": 1073741823
}
],
"placeholder": "<string>",
"hint": "<string>"
}
],
"dynamicUrl": "<string>",
"deliveryMessage": "<string>",
"metadata": "<string>"
}
}Your API key goes here
The store’s unique identifier.
The product’s unique identifier.
The variant’s unique identifier.
The object was successfully deleted.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Represents a configurable variant associated with a product, containing various properties such as pricing, stock, delivery options, and custom fields.
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
The name of the variant.
3 - 128Represents the unique identifier of the product associated with the variant.
The unique identifier for the store associated with the variant.
The cost of the variant.
0 <= x <= 100000A list of delivery methods associated with the variant.
A collection of stored files associated with this variant.
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
The friendly name of the file
1 - 128The IP address which uploaded the file
1 - 45The ID of the user who uploaded the file
1 - 36The minimum quantity of the product variant required for a single order.
The maximum quantity of the variant that can be purchased in a single order. A value of -1 indicates no limit.
Indicates the display order of the variant in a sequence.
A list of image file names associated with the variant.
Represents the quantity of items available for sale.
The stock calculation modes that are used
0, 1, 2 Represents the collection of custom fields associated with the variant. Each custom field provides additional configuration or metadata related to the variant, such as labels, identifiers, or placeholders.
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
FK back to the parent Variant.
The display label for this custom field.
1 - 128A machine-friendly identifier used in forms and storage.
1 - 64The type of the field: "text", "textarea", "select", "checkbox", "radio", or "number".
1 - 256Whether filling out this field is mandatory.
The list of allowed options (only for select or radio fields).
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
FK back to the parent CustomField.
The user-facing label for this option.
128The stored value for this option (often same as Label).
64Sort order among siblings.
0 <= x <= 2147483647Placeholder text shown when the field is empty (for text/textarea).
256Help text displayed under the field.
512Represents a dynamically generated or configurable URL associated with a variant.
2048An optional message associated with the delivery of this variant.
4096Miscellaneous metadata associated with the variant, this is used in migration to tie reviews/products
1000Was this page helpful?