Skip to main content

Delete a product

This endpoint will let you delete an existing product using its ID.

info

To use this API, you must connect a number that uses the free version of WhatsApp Business. This API does not need a WhatsApp Business API account to work.

Invocation

Make a DELETE request to https://api.p.2chat.io/open/whatsapp/catalog/product/<product-id>, where:

Request body

For each request, you must specify the phone number you connected to 2Chat that you want to use as the client.

{
"from_number": "+595981461442"
}

In the following examples, we are using 6489529801134316 as the product ID.


curl --location --request DELETE 'https://api.p.2chat.io/open/whatsapp/catalog/product/6489529801134316' \
--header 'X-User-API-Key: your_api_key_here' \
--data '{
"from_number": "+595981461442"
}'

Response

{
"success": true
}