API
Türkçe

API reference · Products

List product sources

Returns the active StockMount-type product sources of your account. Use the returned IDs as ProductSourceId in the other product calls.

POST https://out.stockmount.com/api/Product/GetProductSources
Product package required

Only StockMount-type sources (type 2) are returned: the sources whose products you manage in the StockMount panel or through this API. XML, marketplace integration, supplier, ERP and Excel sources are not listed, and neither are deleted (passive) sources.

There are no parameters other than ApiCode. The list is sorted by name and is not paged. If the source list cannot be read, the call does not fail: it returns Result: true with an empty list.

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.

Response fields (Response)

Field Type Description
ProductSourceId integer Source ID. Send it as ProductSourceId in the other product calls.
Name string Source name as shown in the StockMount panel.

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.

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

Related endpoints

Example request

{
  "ApiCode": "API_CODE"
}

Example response

{
  "Result": true,
  "Response": [
    {
      "ProductSourceId": 1234,
      "Name": "Ana Ürünler"
    },
    {
      "ProductSourceId": 1301,
      "Name": "Outlet"
    }
  ]
}

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.

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.