API
Türkçe

API reference · Products

Stop a product

Sets the product status to 3 (stopped). The product is not deleted and its stock is not changed.

POST https://out.stockmount.com/api/Product/StopProduct
Changes data Product package required

Only ProductId is read; other fields are ignored. The source type is not checked, so any product in your account can be stopped. Status 3 is also the status of products with zero stock.

To make the product active again, send UpdateProduct with Quantity above 0; the status becomes 2.

If the product is not found or is not yours, 99999 is returned with no ErrorMessage. A successful response has no Response.

Accounts without an active Product package get error 70018; if the package cannot be verified, 99999 is returned.

Request fields

Field Type Description
ApiCode required string Session code returned by DoLogin.
ProductId required integer ID of the product to stop. A value below 1 returns 00003 (ErrorMessage: ProductId).

Response fields (Response)

On success the Response field is empty; read the outcome from Result.

Error codes for this endpoint

CodeWhen
70018 Your account has no active Product package (ErrorMessage is Turkish: Ürün entegrasyonu için aktif Ürün Paketi gereklidir.).
99999 An unexpected error occurred. Also returned when the product is not found or is not yours (no ErrorMessage).

For session errors (00001, 00006) and every other code see error codes.

Related endpoints

Example request

{
  "ApiCode": "API_CODE",
  "ProductId": 987654
}

Example response

{
  "Result": true
}

Try it

The request goes straight from your browser to out.stockmount.com. The ApiCode is not stored by this site; it is kept only while this tab is open.

Get an ApiCode before sending requests.

This endpoint changes real data in your account.

Use ↑ ↓ to move, Enter to open, Esc to close.

Connect to the Out API

DoLogin is called and the returned ApiCode is kept in this tab. Your API password is never sent to this site.