API reference · Products
Delete a product (removed)
This endpoint was removed on 1 July 2025 and returns HTTP 410 for every call.
POST
https://out.stockmount.com/api/Product/DeleteProduct
Removed · HTTP 410
This endpoint was removed and returns HTTP 410. (2025-07-01)
Use this instead: UpdateProduct
As long as the body is valid JSON, HTTP 410 (Gone) is returned without checking ApiCode or the package. An empty or malformed body gets the ASP.NET 400 error first. The response body has no ErrorCode and the message is Turkish only.
Products can no longer be deleted through the API. To take a product off sale, use StopProduct or send Quantity: 0 with UpdateProduct.
Response fields (Response)
On success the Response field is empty; read the outcome from Result.
Error codes for this endpoint
For session errors (00001, 00006) and every other code see error codes.
Related endpoints
Example request
{
"ApiCode": "API_CODE",
"ProductId": 987654
}
curl -X POST 'https://out.stockmount.com/api/Product/DeleteProduct' \
-H 'Content-Type: application/json' \
-d '{
"ApiCode": "API_CODE",
"ProductId": 987654
}'
using System.Net.Http;
using System.Text;
using var http = new HttpClient();
var json = """
{
"ApiCode": "API_CODE",
"ProductId": 987654
}
""";
var response = await http.PostAsync(
"https://out.stockmount.com/api/Product/DeleteProduct",
new StringContent(json, Encoding.UTF8, "application/json"));
var result = await response.Content.ReadAsStringAsync();
// Result == false ise ErrorCode ve ErrorMessage alanlarına bakın.
Console.WriteLine(result);
<?php
$body = <<<'JSON'
{
"ApiCode": "API_CODE",
"ProductId": 987654
}
JSON;
$ch = curl_init('https://out.stockmount.com/api/Product/DeleteProduct');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
if (!$result['Result']) {
echo $result['ErrorCode'] . ' ' . $result['ErrorMessage'];
}
import requests
payload = {
"ApiCode": "API_CODE",
"ProductId": 987654
}
response = requests.post("https://out.stockmount.com/api/Product/DeleteProduct", json=payload, timeout=60)
result = response.json()
if not result["Result"]:
print(result["ErrorCode"], result["ErrorMessage"])
const payload = {
"ApiCode": "API_CODE",
"ProductId": 987654
};
const response = await fetch("https://out.stockmount.com/api/Product/DeleteProduct", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
});
const result = await response.json();
if (!result.Result) {
console.error(result.ErrorCode, result.ErrorMessage);
}
Example response
{
"Result": false,
"ErrorMessage": "Bu endpoint kaldırılmıştır, 'UpdateProduct' endpointini kullanabilirsiniz."
}