API reference · General and lookups
List stores
Returns the marketplace and e-commerce stores connected to your account, with their StoreId.
https://out.stockmount.com/api/Integration/GetStores
StoreId is the ID you use to refer to a store in other endpoints. IntegrationId identifies the marketplace or platform the store belongs to.
Only stores that are active in the panel are listed. If you send IntegrationId, only that integration's stores are returned. An unknown IntegrationId is not an error; it returns an empty list.
There is no paging; all stores come in one response. The order is not guaranteed. StoreName can be empty.
The StoreId request field in the model is ignored. Integration/GetStore is an old alias that does the same thing; use GetStores in new integrations.
Request fields
| Field | Type | Description |
|---|---|---|
ApiCode
required
|
string |
Session code returned by DoLogin.
|
IntegrationId
|
integer | Optional. Returns only this integration's stores. If omitted or 0, all stores are returned. |
Response fields (Response)
| Field | Type | Description |
|---|---|---|
StoreId
|
integer | Store ID. |
StoreName
|
string | Store name as shown in the panel. Can be empty. |
IntegrationId
|
integer | ID of the integration the store belongs to. |
IntegrationName
|
string |
Integration name (e.g. Trendyol).
|
Error codes for this endpoint
| Code | When |
|---|---|
99999 |
An unexpected server-side error occurred (e.g. a database error). On this endpoint ErrorMessage is usually empty. |
For session errors (00001, 00006) and every other code see error codes.
Related endpoints
Example request
{
"ApiCode": "API_CODE",
"IntegrationId": 14
}
curl -X POST 'https://out.stockmount.com/api/Integration/GetStores' \
-H 'Content-Type: application/json' \
-d '{
"ApiCode": "API_CODE",
"IntegrationId": 14
}'
using System.Net.Http;
using System.Text;
using var http = new HttpClient();
var json = """
{
"ApiCode": "API_CODE",
"IntegrationId": 14
}
""";
var response = await http.PostAsync(
"https://out.stockmount.com/api/Integration/GetStores",
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",
"IntegrationId": 14
}
JSON;
$ch = curl_init('https://out.stockmount.com/api/Integration/GetStores');
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",
"IntegrationId": 14
}
response = requests.post("https://out.stockmount.com/api/Integration/GetStores", json=payload, timeout=60)
result = response.json()
if not result["Result"]:
print(result["ErrorCode"], result["ErrorMessage"])
const payload = {
"ApiCode": "API_CODE",
"IntegrationId": 14
};
const response = await fetch("https://out.stockmount.com/api/Integration/GetStores", {
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": true,
"Response": [
{
"StoreId": 1234,
"StoreName": "Örnek Mağaza",
"IntegrationId": 14,
"IntegrationName": "Trendyol"
},
{
"StoreId": 1240,
"StoreName": "Örnek Mağaza Outlet",
"IntegrationId": 14,
"IntegrationName": "Trendyol"
}
]
}
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.
Recent requests
Requests sent from this tab; click one to load its body again.