Create Or Update Multi Products - Tạo và cập nhật danh sách sản phẩm
Truyền ARRAY sản phẩm
Changed history
Description |
Date |
Author |
---|---|---|
add field variant_attribute_hash |
|
|
add 2 field trong is_using_standard : bool gói tiêu chuẩn is_using_eco : bool gói bưu kiện |
|
|
video_links |
xóa, không sử dụng nữa |
thông tin từng giá trị coi thêm tại Create Or Update - Tạo và cập nhật sản phẩm
Chú ý ; Khi thêm sản phẩm thì Id = 0,cập nhật thì Id={product_id}
Code Snippet response
curl -X POST \ https://open.sendo.vn/api/partner/product/list \ -H 'Authorization: bearer your_access_token' \ -H 'Content-Type: application/json' \ |
[ { "id": 0, "name": "string", "store_sku": "string", "price": 0, "weight": 0, "stock_availability": true, "description": "string", "cat4_id": 0, "product_status": 0, "product_tags": "string", "seo": "string", "product_link": "string", "product_relateds": [ { "id": 0, "name": "string", "store_sku": "string", "category_name": "string", "price": 0, "product_status": 0, "product_image": "string" } ], "seo_key_word": "string", "seo_title": "string", "seo_description": "string", "seo_score": 0, "product_image": "string", "category_name": "string", "is_enable": true, "reason_comment": "string", "reason_code": "string", "is_inventory_control": true, "brand_id": 0, "brand_name": "string", "is_review": true, "review_date_timestamp": 0, "url_path": "string", "video_links": "string", "height_product": 0, "length_product": 0, "witdh_product": 0, "unit_id": 0, "stock_quantity": 0, "picture": { "picture_url": "string" }, "product_pictures": [ { "picture_url": "string" } ], "attributes": [ { "id": 0, "attribute_type": 0, "name": "string", "is_required": true, "control_type": "string", "input_type": 0, "attribute_code": "string", "display_order": 0, "is_custom": true, "is_checkout": true, "is_image": true, "attribute_values": [ { "id": 0, "background": "string", "display_order": 0, "value": "string", "attribute_img": "string", "is_selected": true, "is_custom": true } ] } ], "version_no": "string", "promotion_from_date": "2020-06-05T03:09:38.873Z", "promotion_to_date": "2020-06-05T03:09:38.873Z", "is_review_type": 0, "is_promotion": true, "promotion_note": "string", "filter_type": 0, "extended_shipping_package": { "is_using_instant": true, "is_using_in_day": true, "is_self_shipping": true }, "variants": [ { "attributes": [ { "attribute_id": 0, "attribute_code": "string", "option_id": 0 } ], "is_promotion": 0, "sku_user": "string", "price": 0, "special_price": 0, "final_price": 0, "qty": 0, "message": "string", "attribute_hash": "string", "promotion_start_date": "2020-06-05T03:09:38.873Z", "promotion_end_date": "2020-06-05T03:09:38.873Z", "is_flash_sales": true, "campaign_status": 0 } ], "is_config_variant": true, "is_config_variant_cate": true, "special_price": 0, "voucher": { "product_type": 0, "start_date": "2020-06-05T03:09:38.873Z", "end_date": "2020-06-05T03:09:38.873Z", "is_check_date": true } }, { "id": 0, "name": "string", "store_sku": "string", "price": 0, "weight": 0, "stock_availability": true, "description": "string", "cat4_id": 0, "product_status": 0, "product_tags": "string", "seo": "string", "product_link": "string", "product_relateds": [ { "id": 0, "name": "string", "store_sku": "string", "category_name": "string", "price": 0, "product_status": 0, "product_image": "string" } ], "seo_key_word": "string", "seo_title": "string", "seo_description": "string", "seo_score": 0, "product_image": "string", "category_name": "string", "is_enable": true, "reason_comment": "string", "reason_code": "string", "is_inventory_control": true, "brand_id": 0, "brand_name": "string", "is_review": true, "review_date_timestamp": 0, "url_path": "string", "video_links": "string", "height_product": 0, "length_product": 0, "witdh_product": 0, "unit_id": 0, "stock_quantity": 0, "picture": { "picture_url": "string" }, "product_pictures": [ { "picture_url": "string" } ], "attributes": [ { "id": 0, "attribute_type": 0, "name": "string", "is_required": true, "control_type": "string", "input_type": 0, "attribute_code": "string", "display_order": 0, "is_custom": true, "is_checkout": true, "is_image": true, "attribute_values": [ { "id": 0, "background": "string", "display_order": 0, "value": "string", "attribute_img": "string", "is_selected": true, "is_custom": true } ] } ], "version_no": "string", "promotion_from_date": "2020-06-05T03:09:38.873Z", "promotion_to_date": "2020-06-05T03:09:38.873Z", "is_review_type": 0, "is_promotion": true, "promotion_note": "string", "filter_type": 0, "extended_shipping_package": { "is_using_instant": true, "is_using_in_day": true, "is_self_shipping": true }, "variants": [ { "attributes": [ { "attribute_id": 0, "attribute_code": "string", "option_id": 0 } ], "is_promotion": 0, "sku_user": "string", "price": 0, "special_price": 0, "final_price": 0, "qty": 0, "message": "string", "attribute_hash": "string", "promotion_start_date": "2020-06-05T03:09:38.873Z", "promotion_end_date": "2020-06-05T03:09:38.873Z", "is_flash_sales": true, "campaign_status": 0 } ], "is_config_variant": true, "is_config_variant_cate": true, "special_price": 0, "voucher": { "product_type": 0, "start_date": "2020-06-05T03:09:38.873Z", "end_date": "2020-06-05T03:09:38.873Z", "is_check_date": true } } ] |
Code Snippet response
{ "result": { "success_list": [ { "code": "string", "id": 0, "message": "string" } ], "error_list": [ { "code": "string", "message": "string" } ] }, "success": true, "error": { "message": "string", "details": "string", "error_details": [ { "property_name": "string", "message": "string", "value": {}, "code": "string" } ] }, "status_code": 0 } |