Delete Product Variation
Function
To delete a product variation with open API
透過Open API刪除規格商品
URL
DELETE https://open.shopline.io/v1/products/:product_id/variations/:id
Request Parameters
Parameter | Type | Description | Example |
---|---|---|---|
product_id *required | String | Product ID 商品ID | 5cdb9989e3880973adbe0f7e |
id *required | String | Product Variation ID 規格商品ID | 5f17b20928ac100013478870vf |
Response Example
{
"_id": "5f153d29b703a60027ae6ffc",
"adult": "no",
"age_group": "adult",
"amazon_asin": null,
"amazon_url": null,
"amount_sold": 0.0,
"available_end_time": null,
"available_start_time": null,
"barcode_type": "Code 128",
"blacklisted_delivery_option_ids": [],
"blacklisted_feed_channels": null,
"blacklisted_payment_ids": [],
"brand": null,
"bulkupload_log_id": null,
"condition": "new",
"content_monitoring_data": null,
"cost": {
"cents": 15900,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "HK$159.00",
"dollars": 159.0
},
"created_at": "2020-07-20T06:43:53.212+00:00",
"created_by": "admin",
"description_translations": {
"en": "",
"zh-hant": ""
},
"detail_media_ids": [],
"discountable_promotion_ids": [],
"feed_category": null,
"feed_variations": null,
"field_titles": [
{
"key": "color",
"label": "顏色",
"name_translations": {
"en": "Color",
"zh-hant": "顏色",
"zh-hk": "顏色",
"zh-cn": "颜色",
"zh-tw": "顏色",
"vi": "Màu",
"ms": "warna",
"ja": "カーラー"
},
"index": 0
},
{
"key": "size",
"label": "尺寸",
"name_translations": {
"en": "Size",
"zh-hant": "尺寸",
"zh-hk": "尺寸",
"zh-cn": "尺寸",
"zh-tw": "尺寸",
"vi": "kích thước",
"ms": "saiz",
"ja": "サイズ"
},
"index": 1
}
],
"gender": "unisex",
"gtin": "",
"hide_price": false,
"identifier_exists": null,
"is_excluded_promotion": false,
"is_preorder": false,
"location_id": null,
"max_order_quantity": -1,
"media_ids": [
"5f153d1d210270004e78cfe8"
],
"member_price": null,
"mpn": "",
"owner_id": "5e840cae77cb07003243f7c7",
"owner_type": null,
"preorder_note_translations": {},
"price": {
"cents": 23000,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "HK$230.00",
"dollars": 230.0
},
"price_sale": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"quantity": 0,
"quantity_sold": 0,
"ref_data": null,
"related_product_ids": [
"5e8428d41e1643000f7d8e28",
"5e841f988fa2d80018430718",
"5f1e837c1be895004582ad47",
"5f1ed20e2e981b0027b8be7e"
],
"root_product_id": null,
"same_price": false,
"schedule_publish_at": null,
"seo": null,
"seo_description_translations": {
"en": "",
"zh-hant": ""
},
"seo_keywords": null,
"seo_title_translations": {
"en": "test content monitoring"
},
"show_custom_related_products": false,
"sku": null,
"status": "active",
"stock_ids": null,
"out_of_stock_orderable": false,
"subscription_enabled": false,
"subscription_period_duration": 30,
"filter_tags": [],
"subscription_period_type": "day",
"summary_translations": null,
"supplier_id": null,
"tags_array": [],
"taxable": false,
"title_translations": {
"en": "test content monitoring"
},
"type": "product",
"unlimited_quantity": true,
"updated_at": "2020-08-24T03:06:35.852+00:00",
"variant_options": [
{
"_id": "5f17a56bf3cd7800425f1a27",
"created_at": "2020-07-22T02:33:15.274+00:00",
"index": 0,
"key": "5f17a56bf3cd7800425f1a27",
"media_id": null,
"name_translations": {
"zh-hant": "Green",
"en": ""
},
"type": "color",
"updated_at": "2020-07-28T09:41:22.087+00:00",
"id": "5f17a56bf3cd7800425f1a27"
},
{
"_id": "5f17b2099d383800243c565f",
"created_at": "2020-07-22T03:27:05.688+00:00",
"index": 1,
"key": "5f17b2099d383800243c565f",
"media_id": null,
"name_translations": {
"zh-hant": "4",
"en": ""
},
"type": "size",
"updated_at": "2020-07-28T09:41:22.088+00:00",
"id": "5f17b2099d383800243c565f"
},
{
"_id": "5f17a56bf3cd7800425f1a28",
"created_at": "2020-07-22T02:33:15.274+00:00",
"index": 0,
"key": "5f17a56bf3cd7800425f1a28",
"media_id": null,
"name_translations": {
"zh-hant": "Yellow",
"en": ""
},
"type": "color",
"updated_at": "2020-07-28T09:41:22.088+00:00",
"id": "5f17a56bf3cd7800425f1a28"
},
{
"_id": "5f17b0dd0eb739003f15ca9c",
"created_at": "2020-07-22T03:22:05.383+00:00",
"index": 0,
"key": "5f17b0dd0eb739003f15ca9c",
"media_id": null,
"name_translations": {
"zh-hant": "綠",
"en": "green"
},
"type": "color",
"updated_at": "2020-07-28T09:41:22.088+00:00",
"id": "5f17b0dd0eb739003f15ca9c"
},
{
"_id": "5f17b2693c0f28004549e4ff",
"created_at": "2020-07-22T03:28:41.143+00:00",
"index": 0,
"key": "5f17b2693c0f28004549e4ff",
"media_id": null,
"name_translations": {
"zh-hant": "綠77",
"en": "green77"
},
"type": "color",
"updated_at": "2020-07-28T09:41:22.089+00:00",
"id": "5f17b2693c0f28004549e4ff"
},
{
"_id": "5f17b2693c0f28004549e500",
"created_at": "2020-07-22T03:28:41.143+00:00",
"index": 1,
"key": "5f17b2693c0f28004549e500",
"media_id": null,
"name_translations": {
"zh-hant": "綠77",
"en": "green77"
},
"type": "size",
"updated_at": "2020-07-28T09:41:22.089+00:00",
"id": "5f17b2693c0f28004549e500"
},
{
"_id": "5f1ff2c2dac61c004e36a572",
"created_at": "2020-07-28T09:41:22.089+00:00",
"index": 0,
"key": "5f1ff2c2dac61c004e36a572",
"media_id": null,
"name_translations": {
"zh-hant": "綠444",
"en": "gre444en"
},
"type": "color",
"updated_at": "2020-07-28T09:41:22.089+00:00",
"id": "5f1ff2c2dac61c004e36a572"
},
{
"_id": "5f1ff2c2dac61c004e36a573",
"created_at": "2020-07-28T09:41:22.089+00:00",
"index": 1,
"key": "5f1ff2c2dac61c004e36a573",
"media_id": null,
"name_translations": {
"en": "L2221",
"zh-hant": "大5551"
},
"type": "size",
"updated_at": "2020-07-28T09:41:22.089+00:00",
"id": "5f1ff2c2dac61c004e36a573"
}
],
"variations": [
{
"_id": "5f17b2099d383800243c565c",
"barcode_type": "Code 128",
"cost": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"created_at": "2020-07-22T03:27:05.701+00:00",
"feed_variations": null,
"fields": [
{
"name_translations": {
"en": "",
"zh-hant": "Green"
}
},
{
"name_translations": {
"en": "",
"zh-hant": "4"
}
}
],
"fields_translations": {
"en": [
"",
""
],
"zh-hant": [
"Green",
"4"
]
},
"gtin": null,
"key": "5f17b20928ac10001347886f",
"location_id": null,
"max_order_quantity": 10,
"media_id": null,
"member_price": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"mpn": null,
"price": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"price_sale": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"quantity": 0,
"root_product_variation_id": null,
"sku": null,
"stock_ids": null,
"stocks": [],
"unlimited_quantity": null,
"updated_at": "2020-07-28T09:41:22.101+00:00",
"variant_option_ids": [
"5f17a56bf3cd7800425f1a27",
"5f17b2099d383800243c565f"
],
"wapos_id": null,
"weight": 0.0,
"id": "5f17b2099d383800243c565c"
},
{
"_id": "5f17b2099d383800243c565e",
"barcode_type": "Code 128",
"cost": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"created_at": "2020-07-22T03:27:05.702+00:00",
"feed_variations": null,
"fields": [
{
"name_translations": {
"en": "green",
"zh-hant": "綠"
}
},
{
"name_translations": {
"en": "",
"zh-hant": "4"
}
}
],
"fields_translations": {
"en": [
"green",
""
],
"zh-hant": [
"綠",
"4"
]
},
"gtin": null,
"key": "5f17b20928ac100013478871",
"location_id": null,
"max_order_quantity": 10,
"media_id": null,
"member_price": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"mpn": null,
"price": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"price_sale": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"quantity": 0,
"root_product_variation_id": null,
"sku": null,
"stock_ids": null,
"stocks": [],
"unlimited_quantity": null,
"updated_at": "2020-07-28T09:41:22.102+00:00",
"variant_option_ids": [
"5f17b0dd0eb739003f15ca9c",
"5f17b2099d383800243c565f"
],
"wapos_id": null,
"weight": 0.0,
"id": "5f17b2099d383800243c565e"
},
{
"_id": "5f17b2693c0f28004549e4fe",
"barcode_type": "Code 128",
"cost": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"created_at": "2020-07-22T03:28:41.157+00:00",
"feed_variations": null,
"fields": [
{
"name_translations": {
"en": "green77",
"zh-hant": "綠77"
}
},
{
"name_translations": {
"en": "green77",
"zh-hant": "綠77"
}
}
],
"fields_translations": {
"en": [
"green77",
"green77"
],
"zh-hant": [
"綠77",
"綠77"
]
},
"gtin": null,
"key": "5f17b2692344580014d96151",
"location_id": "BA-004",
"max_order_quantity": 10,
"media_id": "5f17b2687ed9610021f7a9dd",
"member_price": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"mpn": null,
"price": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"price_sale": {
"cents": 0,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "",
"dollars": 0.0
},
"quantity": 1,
"root_product_variation_id": null,
"sku": "SL-GU-0006",
"stock_ids": null,
"unlimited_quantity": null,
"updated_at": "2020-07-28T09:41:22.102+00:00",
"variant_option_ids": [
"5f17b2693c0f28004549e4ff",
"5f17b2693c0f28004549e500"
],
"wapos_id": null,
"weight": 0.0,
"id": "5f17b2693c0f28004549e4fe"
},
{
"_id": "5f1ff2c2dac61c004e36a571",
"barcode_type": "Code 128",
"cost": {
"cents": 11100,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "HK$111.00",
"dollars": 111.0
},
"created_at": "2020-07-28T09:41:22.103+00:00",
"feed_variations": null,
"fields": [
{
"name_translations": {
"en": "gre444en",
"zh-hant": "綠444"
}
},
{
"name_translations": {
"en": "L2221",
"zh-hant": "大5551"
}
}
],
"fields_translations": {
"en": [
"gre444en",
"L2221"
],
"zh-hant": [
"綠444",
"大5551"
]
},
"gtin": null,
"key": "5f1ff2c1bd1533001348dd6e",
"location_id": "BA-001",
"max_order_quantity": 10,
"media_id": "5f1ff2c11c99495bc2f65e8a",
"member_price": {
"cents": 90000,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "HK$900.00",
"dollars": 900.0
},
"mpn": null,
"price": {
"cents": 99900,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "HK$999.00",
"dollars": 999.0
},
"price_sale": {
"cents": 12300,
"currency_symbol": "HK$",
"currency_iso": "HKD",
"label": "HK$123.00",
"dollars": 123.0
},
"quantity": 1,
"root_product_variation_id": null,
"sku": "SL-GU-0001",
"stock_ids": null,
"unlimited_quantity": null,
"updated_at": "2020-07-28T09:41:22.153+00:00",
"variant_option_ids": [
"5f1ff2c2dac61c004e36a572",
"5f1ff2c2dac61c004e36a573"
],
"wapos_id": null,
"weight": 0.0,
"id": "5f1ff2c2dac61c004e36a571"
}
],
"wapos_id": null,
"weight": 0.0,
"whitelisted_promotion_condition_ids": [],
"id": "5f153d29b703a60027ae6ffc"
}
{
"error": "Not found.",
"code": "NotFoundError",
"caused_by": null
}
Updated 12 months ago