API reference · Orders
Save the order note
Writes or clears an order's note in StockMount.
https://out.stockmount.com/api/Integration/SetOrderNotes
The note is stored only in StockMount; it is not sent to the marketplace. It overwrites the existing note. An empty or missing Notes clears it.
The body is an order object but only OrderId and Notes are read; other fields are ignored. On success Response is empty.
Request fields
| Field | Type | Description |
|---|---|---|
ApiCode
required
|
string |
API code returned by DoLogin.
|
OrderId
required
|
integer | StockMount order ID. |
Notes
|
string | New note. Empty clears the current note. |
Response fields (Response)
On success the Response field is empty; read the outcome from Result.
Error codes for this endpoint
| Code | When |
|---|---|
99999 |
Order not found (ErrorMessage: No changes have been made or Değişiklik yapılmamıştır! depending on the user's language), order belongs to another user (empty ErrorMessage), or a database error. |
For session errors (00001, 00006) and every other code see error codes.
Related endpoints
Example request
{
"ApiCode": "API_CODE",
"OrderId": 4567890,
"Notes": "Müşteri aradı, hediye paketi istedi."
}
curl -X POST 'https://out.stockmount.com/api/Integration/SetOrderNotes' \
-H 'Content-Type: application/json' \
-d '{
"ApiCode": "API_CODE",
"OrderId": 4567890,
"Notes": "Müşteri aradı, hediye paketi istedi."
}'
using System.Net.Http;
using System.Text;
using var http = new HttpClient();
var json = """
{
"ApiCode": "API_CODE",
"OrderId": 4567890,
"Notes": "Müşteri aradı, hediye paketi istedi."
}
""";
var response = await http.PostAsync(
"https://out.stockmount.com/api/Integration/SetOrderNotes",
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",
"OrderId": 4567890,
"Notes": "Müşteri aradı, hediye paketi istedi."
}
JSON;
$ch = curl_init('https://out.stockmount.com/api/Integration/SetOrderNotes');
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",
"OrderId": 4567890,
"Notes": "M\u00FC\u015Fteri arad\u0131, hediye paketi istedi."
}
response = requests.post("https://out.stockmount.com/api/Integration/SetOrderNotes", json=payload, timeout=60)
result = response.json()
if not result["Result"]:
print(result["ErrorCode"], result["ErrorMessage"])
const payload = {
"ApiCode": "API_CODE",
"OrderId": 4567890,
"Notes": "Müşteri aradı, hediye paketi istedi."
};
const response = await fetch("https://out.stockmount.com/api/Integration/SetOrderNotes", {
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
}
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.
Recent requests
Requests sent from this tab; click one to load its body again.