Skip to content

Deactivate Products

POST
/product/202309/products/deactivate

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.

shop_cipher
required
string

Identifies the shop. Obtain it from the Get Authorized Shops API.

Media typeapplication/json
object
product_ids
required

The product IDs to deactivate. Max number of IDs: 20.

Array<string>
listing_platforms

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.

Array<string>
Allowed values: TOKOPEDIA TIKTOK_SHOP
Example
{
"product_ids": [
"1729592969712207008"
],
"listing_platforms": [
"TIKTOK_SHOP",
"TOKOPEDIA"
]
}

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
errors

The errors for individual products that could not be deactivated. Check this list even when the top-level code is 0.

Array<object>
object
code

The error code.

integer format: int64
message

A human-readable error message.

string
detail

Additional detail about the product showcase addition error.

object
product_id

The product identifier.

string
Example
{
"code": 0,
"data": {
"errors": [
{
"code": 12052048,
"message": "You can't edit other sellers' products",
"detail": {
"product_id": "1729382588639839583"
}
}
]
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}