Shopee Open API อัพเดด เพิ่มให้ทดสอบ Category Tree ใน Sandbox ได้แล้ว

ถาม - ตอบ ธุรกิจ กฏหมาย ภาษี บัญชี ปัญหา การทำงานกับ บ. อื่น หรือบุคคลอื่น หรือ ภาษีต่างๆ กรมสรรพากร

Moderator: mindphp

ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41127
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Shopee Open API อัพเดด เพิ่มให้ทดสอบ Category Tree ใน Sandbox ได้แล้ว

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

Shopee Open API อัพเดด
Shopee Open API อัพเดด เพิ่มให้ทดสอบ Category Tree ใน Sandbox ได้แล้ว
Hi Developer,



To ensure that you can be fully prepared and have enough time to adjust your category mapping logic, we have provided the new global category tree data in the Sandbox environment for your testing. This will be available from 6 Dec 2021 onwards for both OpenAPI v1 and v2 APIs.



The scheduled rollout to the Live environment will be 19 January 2022 for the Brazil site.



What to expect:

The new category and attribute data can be extracted by GetCategories and GetAttribute APIs in the sandbox environment.
All APIs that take category_id as request param need to request with leaf node category_id.
More mandatory attributes will be added.
a. For new listing creation, all mandatory attributes are required.

b. For existing listing updates, there will be a transition period allowing for listings to be updated without filling in all the missing mandatory attributes. (Exception: if you update category_id for an existing listing, all mandatory attributes of the new category_id should be included.)

Parent-child structure will be introduced at the attribute level.
There are three types of parent-child attribute structure:

1. parent(mandatory*) - child(mandatory)

2. parent(mandatory) - child(optional)

3. parent(optional) - child(optional)

*Mandatory from “is_mandatory” field in GetAttributes API



For Types 1 and 2, creating new listings will require the mandatory attributes.

For Type 3, you can use only parent or parent-child for new listings.

One child can have multiple parents, and it only needs one parent in the request for creating new listings.

Currently, all parent-child relationships are set up using Type 3.



For OpenAPI 2.0, the brand field will be extracted from regular attributes and each brand will have a unique brand_id. For existing listings with unrecognised brand by Shopee and no valid brand_id assigned to it, the unrecognised brand will be wiped out and the listings will be considered as “no brand”.
For OpenAPI 2.0, the attribute value_id will have a valid value instead of 0.
New APIs for OpenAPI 2.0:
a. v2.product.search_item for searching attributes-missing listing.

b. v2.product.category_recommend for global category recommendation based on listing name.





How to test the new global category tree in Sandbox:

Refer to step 5 in the user guide to learn more about the Sandbox environment.



1) Main test cases for OpenAPI 1.0 developers:

1. Retrieve the new global category tree data in Sandbox by GetCategories and GetAttribute APIs.

2. Use the retrieved category_id, attribute_id and other necessary info to call item.Add and item.Update.

3. Based on the upload and update result, call GetItemDetail to verify.



Note: There is no parent-child structure indicator field in v1. If it is Type 3 structure and you only include the child but not parent, it will fail.



Additional cases:

1. Call GetCategoryByCountry to retrieve category_id to verify categories are the same across different markets.

2. Call GetRecommendCats to retrieve category_id based on the listing name.



2) Main test cases for OpenAPI 2.0 developers:

1. Retrieve the new global category tree category_id in Sandbox by product.get_category.

2. Call product.get_brand_list to retrieve the brand_id.

3. Call product.get_dts_limit to retrieve the days-to-ship limit details.

4. Call product.get_attributes to retrieve the attribtue_id, value_id and parent-child structure details.

5. Use applicable category_id, attribute_id, value_id and brand_id to call product.add_item to create new listings.

6. Use category_id to call product.support_size_chart to check if size chart is supported for this category.

7. Call product.update_size_chart with the applicable category_id to upload size chart.



Additional cases:

1. Call product.search_item to find listings that are missing mandatory or optional attributes after the new global category tree is released.

2. Call product.category_recommend to retrieve recommended category_id based on listing names.



For more details on the v2 test case call flow, please check here.
อัพเดด
https://open.shopee.com/documents?modul ... &version=2
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41127
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: Shopee Open API อัพเดด เพิ่มให้ทดสอบ Category Tree ใน Sandbox ได้แล้ว

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

นอกจาก มี feature เสริมแล้ว
การสมัครใช้งานก็มีความยุกยากเพิ่มขึ้น
โดยต้องเตรียม ระบบ สำหรับการเชื่อมต่อที่ออนไลน์แล้วไว้ให้เรียบร้อยก่อนด้วย
แล้วค่อยส่งเรื่องเพื่อดำเนินการร้องขอเปิดใช้บริการ
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 37