Delete Product

Delete Product

POST https://sandbox.mnasati.com/v1/delete_product

This endpoint allows you to delete products from store.

Headers

NameTypeDescription

Content-Type

string

Application/JSON

Access Token

string

Authentication token (JWT)

Request Body

NameTypeDescription

product_id

integer

To delete a Product ID

{"status":true,"message":"Brand successfully deleted."}

Examples

import http.client

conn = http.client.HTTPSConnection("sandbox.mnasati.com")

payload = "{\"product_id\":\"2280\"}"

headers = {
    'Content-Type': "",
    'Authorization-Jwt': ""
    }

conn.request("POST", "/v1/delete_product", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

Last updated