Deactivate products that are in the Activate status and hide them from buyers. The status changes to Seller_deactivated after deactivation.
In the event there’s some issue with a product (e.g. out of stock), you can deactivate the product and hide it temporarily from buyers. When the issues are resolved, you can activate the product again by using the Activate Product API.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The product IDs to deactivate. Max number of IDs: 20.
The listing platforms where the product will be deactivated. Possible values:
- TOKOPEDIA
- TIKTOK_SHOP Default: TIKTOK_SHOP
Applicable only for sellers that migrated from Tokopedia.
Example
{ "product_ids": [ "1729592969712207008" ], "listing_platforms": [ "TIKTOK_SHOP", "TOKOPEDIA" ]}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The errors for individual products that could not be deactivated. Check this list even when the top-level code is 0.
object
The error code.
A human-readable error message.
Additional detail about the product showcase addition error.
object
The product identifier.
Example
{ "code": 0, "data": { "errors": [ { "code": 12052048, "message": "You can't edit other sellers' products", "detail": { "product_id": "1729382588639839583" } } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}