DeleteProduct

Function to delete product

DELETE https://rest.crmango.com/api/DeleteProduct

Authorization

1 Sent in the request headers
Bearer varchar

Auth token

Body data

1 Sent in the request body
product_id integer

Product id
Reference: GetAllProducts

Response

2 HTTP 200

Function to delete product

code integer

Return code

message varchar

Info message

Example request

curl --request DELETE \
  --url 'https://rest.crmango.com/api/DeleteProduct' \
  --header 'Authorization: Bearer auth_token' \
  --header 'Content-Type: application/json' \
  --data '{
    {
        "product_id" : 59
    }
  }'
{
    "code": 200,
    "message": "Product has been deleted"
}