来自 Shopee 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 [Update] [Important] Open API 1.0 Deprecation Plan
Dear Developers
Following our announcements of updates to the Open Platform policies on 11 May 2022 on the [Important] Open API 1.0 Deprecation Plan (Phase 1 Open API will be deprecated on 11 August 2022), Shopee will begin deprecating the remaining Open API 1.0 in the next two phases:
-
Phase 2 Open APIs will be deprecated on 31 October 2022
-
Phase 3 Open APIs will be deprecated on 26 December 2022
Action required
-
Complete the acknowledgment survey by 29 August 2022, or your APP(s) will no longer be able to access the below Phase 2 and Phase 3 Open API 1.0 from 30 August 2022 onwards.
-
Review the attached list of Phase 2 and Phase 3 APIs and complete your migration before the APIs are deprecated.
FAQs
- Do I need to integrate Open API 2.0 Authorization with my APP(s) before migrating my APIs?
Yes, integration of Open API 2.0 Authorization with my APP(s) is necessary before migrating your APIs. Refer to Open API 2.0 Overview for the new authorization and authentication instructions.
- Do I need to create a new APP to integrate with Open API 2.0?
No, you do not need to. Also, note that APP(s) created after 28 March 2022 can only call Open API 2.0.
- How do I transfer existing seller authorizations from Open API 1.0 to Open API 2.0?
Here are 2 methods to transfer existing seller authorizations to Open API 2.0:
Method 1
i) Get the upgrade_code. You may refer to the announcement to learn how.
ii) Call the v2.public.get_refresh_token_by_upgrade_code to get existing shops’ refresh_token from sellers who have granted authorization.
Method 2
Get sellers’ refresh_token and access_token through the usual shop authorization process.
- If I lose the access_token or the refresh_token after migrating to Open API 2.0, how do I get a new valid token?
Here are 2 methods to get a new valid token:
Method 1
You can call the v2.public.get_token_by_resend_code to get a new valid refresh_token and access_token. Refer to this FAQ on resending code on the Shopee Open Platform for more information.
Method 2
Get sellers’ refresh_token and access_token through the usual shop authorization process.
尊敬的开发者
关于Open API 1.0下线计划更新(第一批下线接口将从2022年8月11日下线),Shopee将对剩余1.0接口分两个批下线:
-
第二批下线时间为2022年10月31日
-
第三批下线时间为2022年12月26日
接下来:
-
开发者需要在2022年8月29日之前完成第二批及第三批下线公告的知晓,否则从2022年8月30日起将无法调用以下第二批以及第三批Open API 1.0接口
-
查看第二批以及第三批1.0接口下线列表,并且于下线之前完成对应接口的迁移工作。
FAQ:
- 在接口切换至OpenAPI 2.0的过程中是否需要先对接 2.0的授权?
- 是的,需要先对接OpenAPI 2.0授权,详情请参考OpenAPI 2.0 Overview授权与鉴权
- 我是否需要创建新的App对接OpenAPI 2.0?
- 不需要。此外,自2022-03-28后创建的app仅能调用OpenAPI 2.0
3如何将存量的授权卖家从1.0的授权迁移到2.0?
- 方法一:拿到 upgrade_code, 并通过upgrade_code调用v2.public.get_refresh_token_by_upgrade_code获取存量店铺的refresh_token
- 方法二:通过OpenAPI 2.0的正常授权流程
- 将卖家授权迁移至2.0后,在使用的过程中如果token丢失,如何拿到新的可用token?
- 方法一:可以通过调用v2.public.get_token_by_resend_code拿到一组新的refresh_token与access_token,可参考FAQ
- 方法二:通过OpenAPI 2.0的正常流程重新授权
Attachment:
Offline List of Open API 1.0 Phase 2
| Module | Offline List of Open API 1.0 Phase 2 | Mapped Open API 2.0 |
|---|---|---|
| Item | shopee.item.GetComment | v2.product.get_comment |
| Item | shopee.item.ReplyComments | v2.product.reply_comment |
| Item | shopee.item.AddItemImg | v2.product.update_item |
| Item | shopee.item.UpdateItemImg | v2.product.update_item |
| Item | shopee.item.InsertItemImg | v2.product.update_item |
| Item | shopee.item.DeleteItemImg | v2.product.update_item |
| Item | shopee.item.UpdateVariationStock | v2.product.update_stock |
| Item | shopee.item.UpdateStock | v2.product.update_stock |
| Item | shopee.item.UpdateStockBatch | v2.product.update_stock |
| Item | shopee.item.UpdateVariationStockBatch | v2.product.update_stock |
| Item | shopee.item.UpdatePrice | v2.product.update_price v2.product.update_sip_item_price |
| Item | shopee.item.UpdateVariationPrice | v2.product.update_price v2.product.update_sip_item_price |
| Item | shopee.item.UpdatePriceBatch | v2.product.update_price v2.product.update_sip_item_price |
| Item | shopee.item.UpdateVariationPriceBatch | v2.product.update_price v2.product.update_sip_item_price |
| Item | shopee.item.GetItemsList | v2.product.get_item_list v2.product.get_model_list v2.product.get_item_base_info v2.payment.get_item_installment_status |
| Item | shopee.Item.GetPromotionInfo | v2.product.get_item_promotion |
| Item | shopee.item.UpdateItem | v2.product.update_item v2.product.init_tier_variation v2.media_space.upload_image |
| Item | shopee.item.Add | v2.product.add_item v2.product.init_tier_variation v2.media_space.upload_image |
| Item | shopee.item.AddVariations | v2.product.init_tier_variation |
| Item | shopee.item.InitTierVariation | v2.product.init_tier_variation |
| Item | shopee.item.AddTierVariation | v2.product.update_tier_variation |
| Item | shopee.item.GetItemDetail | v2.product.get_item_base_info v2.product.get_item_extra_info v2.product.get_model_list |
| Item | shopee.item.DeleteVariation | v2.product.delete_model |
| Item | shopee.item.UpdateTierVariationList | v2.product.update_tier_variation |
| Item | shopee.item.UpdateTierVariationIndex | v2.product.update_tier_variation |
| Item | shopee.item.GetVariations | v2.product.get_model_list |
Offline List of Open API 1.0 Phase 3
| Module | Offline List of Open API 1.0 Phase 3 | Mapped Open API 2.0 |
|---|---|---|
| Returns | shopee.returns.GetReturnList | v2.returns.get_return_list |
| Returns | shopee.returns.GetReturnDetail | v2.returns.get_return_detail |
| Returns | shopee.returns.DisputeReturn | v2.returns.dispute |
| Returns | shopee.returns.ConfirmReturn | v2.returns.confirm |
| Payment | shopee.payment.GetTransactionList | v2.payment.get_wallet_transaction_list |
| Payment | shopee.payment.GetPayoutDetail | v2.payment.get_payout_detail |
| FirstMileTracking | GenerateFMTrackingNo | v2.first_mile.generate_first_mile_tracking_number |
| FirstMileTracking | GetShopFMTrackingNo | v2.first_mile.get_tracking_number_list |
| FirstMileTracking | FirstMileCodeBindOrder | v2.first_mile.bind_first_mile_tracking_number |
| FirstMileTracking | FirstMileUnbind | v2.first_mile.unbind_first_mile_tracking_number |
| FirstMileTracking | GetFmTnDetail | v2.first_mile.get_detail |
| FirstMileTracking | GetFMTrackingNoWaybill | v2.first_mile.get_waybill |
| FirstMileTracking | GetShopFirstMileChannel | v2.first_mile.get_channel_list |
| Orders | shopee.orders.GetOrdersList | v2.order.get_order_list |
| Orders | shopee.orders.GetOrdersByStatus | v2.order.get_order_list |
| Orders | shopee.orders.GetOrderDetails | v2.order.get_order_detail v2.logistics.get_tracking_number v2.payment.get_escrow_detail |
| Orders | shopee.orders.GetEscrowDetails | v2.payment.get_escrow_detail |
| Orders | shopee.orders.AddOrderNote | v2.order.set_note |
| Orders | shopee.orders.CancelOrder | v2.order.cancel_order |
| Orders | shopee.orders.AcceptBuyerCancellation | v2.order.handle_buyer_cancellation |
| Orders | shopee.orders.RejectBuyerCancellation | v2.order.handle_buyer_cancellation |
| Orders | shopee.orders.GetForderInfo | v2.order.get_order_detail v2.logistics.get_tracking_number |
| Orders | shopee.orders.GetEscrowReleasedOrders | v2.payment.get_payout_detail |
| Orders | shopee.orders.SplitOrder | v2.order.split_order |
| Orders | shopee.orders.UndoSplitOrder | v2.order.unsplit_order |
| Orders | shopee.orders.GetUnbindOrderList | v2.first_mile.get_unbind_order_list |
| Orders | shopee.orders.MyIncome | v2.payment.get_escrow_detail |
| Orders | shopee.orders.AddInvoiceData | v2.order.add_invoice_data |
| Orders | shopee.orders.GetInvoiceOrder | v2.order.get_order_list |
| Orders | shopee.order.get_pending_buyer_invoice_order_list | v2.order.get_pending_buyer_invoice_order_list |
| Orders | shopee.order.upload_invoice_doc | v2.order.upload_invoice_doc |
| Orders | shopee.order.download_invoice_doc | v2.order.download_invoice_doc |
| Logistics | shopee.logistics.GetLogistics | v2.logistics.get_channel_list |
| Logistics | shopee.logistics.UpdateShopLogistics | v2.logistics.update_channel |
| Logistics | shopee.logistics.GetAddress | v2.logistics.get_address_list |
| Logistics | shopee.logistics.SetAddress | v2.logistics.set_address_config |
| Logistics | shopee.logistics.DeleteAddress | v2.logistics.delete_address |
| Logistics | shopee.logistics.GetParameterForInit | v2.logistics.get_shipping_parameter |
| Logistics | shopee.logistics.Init | v2.logistics.ship_order v2.logistics.get_tracking_number |
| Logistics | shopee.logistics.GetTimeSlot | v2.logistics.get_shipping_parameter |
| Logistics | shopee.logistics.GetBranch | v2.logistics.get_shipping_parameter |
| Logistics | shopee.logistics.GetSlugs | v2.logistics.get_shipping_parameter |
| Logistics | shopee.logistics.GetLogisticInfo | v2.logistics.get_shipping_parameter |
| Logistics | shopee.logistics.GetOrderLogistics | v2.logistics.get_shipping_document_info |
| Logistics | shopee.logistics.GetLogisticsMessage | v2.logistics.get_tracking_info |
| Logistics | shopee.logistics.BatchInit | v2.logistics.batch_ship_order |
| Logistics | shopee.logistics.GetAirwayBill | v2.logistics.get_shipping_document_parameter v2.logistics.create_shipping_document v2.logistics.get_shipping_document_result v2.logistics.download_shipping_document |
| Logistics | shopee.logistics.GetForderWaybill | v2.logistics.get_shipping_document_parameter v2.logistics.create_shipping_document v2.logistics.get_shipping_document_result v2.logistics.download_shipping_document |
| Image | shopee.image.UploadImg | v2.media_space.upload_image |
