Unpublish products in bulk

POST REST API request that requires a JSON body with authorization token in order to acquire, unpublish desired products.

In order to hide a product from customers, it needs to be unpublished.

Request

Request:

HTTP MethodPOST
URLStagehttps://api.qa2.ananastest.com/product/api/v1/merchant-integration/product/unpublish
Productionhttps://api.ananas.rs/product/api/v1/merchant-integration/product/unpublish
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}
Request Body:
Fields nameTypeDescriptionRequired
/List<Integer>Merchant inventory idsYes

Example of request body:

Click to copy
Success!
[
 123456,
 234567,
 345678
]

Response

Request will process asynchronous, and progression of the process can be tracked from value that is given in response, but at this moment is not open to public use.

When request processing is finished, an email will be sent with information about affected products.

Response Body:
Fields nameTypeDescription
idUUIDProgress id which can be used to track progress

Example of response:

Click to copy
Success!
    {
        "id": "c52813ec-f69b-4202-bb03-0a2534c93781"
    }
Copyright © Ananas 2023. All right reserved.