API reference · Orders
Get a single order
Returns one order with all its lines by OrderId.
https://out.stockmount.com/api/Integration/GetOrder
Only OrderId is used. StoreId is not a filter; it is only read to decide on Amazon decryption. Other GetSales fields are ignored.
The response has the same shape as one order in GetSales, with differences: all lines are returned regardless of status; OrderStatus is the order-level status and is repeated on every line (use GetOrderDetailStatus for line status); PersonType, PaymentType and Country are not returned; LastModificationTime is always 0001-01-01T00:00:00; PackageNumber holds the value written by SetOrderDetailInvoiced instead of the marketplace package number.
Date rules match GetSales: OrderDate, CargoDate, InvoiceTime, PackageTime, WayBillTime are UTC (with Z); empty dates come back as 1899-12-31T22:03:00Z.
Buyer and address fields are read from the order record. GetSales also reads the updated address record; if the two endpoints differ, trust GetSales.
For an OrderId that does not exist the call returns Result false with ErrorCode 99999 (ErrorMessage is a .NET exception text). A missing OrderId returns 00003 / OrderId.
Request fields
| Field | Type | Description |
|---|---|---|
ApiCode
required
|
string |
API code returned by DoLogin.
|
OrderId
required
|
integer |
StockMount order ID (OrderId from GetSales).
|
StoreId
|
integer | Optional. Only used for the Amazon decryption check; when missing, the order's own store is used. |
Response fields (Response)
| Field | Type | Description |
|---|---|---|
OrderId
|
integer |
StockMount order ID. Use it with GetOrder, SetOrderNotes and similar endpoints.
|
StoreId
|
integer | Store ID. |
IntegrationOrderCode
|
string | Order number on the marketplace. |
OrderDate
|
datetime |
Order date in UTC (with Z). An order placed at 14:30 Turkey time returns …T11:30:00Z.
|
OrderStatus
|
string |
Order-level status from the order record. Line statuses can differ; check them with GetOrderDetailStatus.
|
OrderType
|
integer |
Order type.
|
Name
|
string | Buyer first name. |
Surname
|
string | Buyer last name. |
Fullname
|
string |
Company title for corporate buyers, otherwise the full name. No separate CompanyTitle field is returned.
|
Nickname
|
string | Buyer's user name on the marketplace. |
PersonalIdentification
|
string | Turkish national ID number. |
TaxAuthority
|
string | Tax office. |
TaxNumber
|
string | Tax number. |
Email
|
string | Buyer e-mail address. |
Telephone
|
string | Buyer phone number. |
Address
|
string | Billing address, postal code, district and city joined with spaces. |
District
|
string | District. |
City
|
string | City. |
PostalCode
|
string | Postal code. |
Notes
|
string |
Order note (written by SetOrderNotes).
|
Member
|
string | Raw membership info from the marketplace (e.g. an IdeaSoft JSON string). Usually empty. |
RowSalt
|
string | Internal field (encryption salt, Base64). Normally absent; ignore it if present. |
OrderDetails
|
object[] | All lines of the order. |
OrderDetails[].
OrderDetailId
|
integer | StockMount order line ID. Use this value in the other line endpoints. |
OrderDetails[].
StoreId
|
integer | Store ID. |
OrderDetails[].
IntegrationOrderDetailId
|
string |
The line's ID on the marketplace. Additional service lines may carry a synthetic value containing _, such as {orderNo}_Service.
|
OrderDetails[].
ProductId
|
integer |
Matched StockMount product ID. 0 when the line is not matched to a product.
|
OrderDetails[].
IntegrationProductCode
|
string |
The product's code on the marketplace. Additional service lines use fixed codes: 999999999999 service fee, 999999999998 instalment difference, 999999999997 commission, 999999999996 payment service fee, 999999999995 shipping fee, 999999999994 gift wrapping, 999999999993 account payment service fee.
|
OrderDetails[].
ProductName
|
string | Product name on the marketplace; falls back to the matched StockMount product name. Omitted when both are empty. |
OrderDetails[].
ProductCode
|
string |
Matched StockMount product code. Without a match: MerchantSku, then IntegrationProductCode.
|
OrderDetails[].
ProductCode2
|
string | Second code of the StockMount product. Empty string when not set. |
OrderDetails[].
Barcode
|
string | Barcode of the matched StockMount product. Empty string without a match. |
OrderDetails[].
MerchantSku
|
string | Merchant SKU reported by the marketplace. |
OrderDetails[].
ProductImage
|
string | First image of the matched StockMount product; otherwise the marketplace image URL. |
OrderDetails[].
ProductUnit
|
string | Sales unit, when the marketplace provides one. |
OrderDetails[].
ProductVariantCode
|
string | Variant code of the line. Empty string when not set. |
OrderDetails[].
ProductVariantId
|
integer |
Always 0; do not use.
|
OrderDetails[].
VariantProductCode
|
string | Code of the matched StockMount variant. Empty string when not matched. |
OrderDetails[].
VariantProductBarcode
|
string | Barcode of the matched StockMount variant. Empty string when not matched. |
OrderDetails[].
VariantPhrase
|
string |
Variant text from the marketplace (e.g. Color: Black, Size: M).
|
OrderDetails[].
VariantName1
|
string | Name of variant attribute 1. |
OrderDetails[].
VariantValue1
|
string | Value of variant attribute 1. |
OrderDetails[].
VariantName2
|
string | Name of variant attribute 2. |
OrderDetails[].
VariantValue2
|
string | Value of variant attribute 2. |
OrderDetails[].
VariantName3
|
string | Name of variant attribute 3. |
OrderDetails[].
VariantValue3
|
string | Value of variant attribute 3. |
OrderDetails[].
Price
|
number |
Unit price. Line total = Price × RawQuantity (StockMount's own reports compute it this way).
|
OrderDetails[].
Quantity
|
integer |
Quantity truncated to an integer. Use RawQuantity for fractional quantities.
|
OrderDetails[].
RawQuantity
|
number | Exact (decimal) quantity. |
OrderDetails[].
TaxRate
|
number |
VAT rate (e.g. 20). The matched StockMount product's rate when it is above 0; otherwise the rate the marketplace sent.
|
OrderDetails[].
DetailType
|
integer |
Line type.
|
OrderDetails[].
OrderStatus
|
string |
The order-level status (from the order record), not the line's own status. Use GetOrderDetailStatus for line status.
|
OrderDetails[].
Invoiced
|
boolean |
true when the line is marked as invoiced.
|
OrderDetails[].
InvoiceNumber
|
string | Invoice number. Empty string when not set. |
OrderDetails[].
InvoiceTime
|
datetime |
Invoice date in UTC (with Z). When there is no value it returns 1899-12-31T22:03:00Z instead of null (1900-01-01 Turkey time converted to UTC).
|
OrderDetails[].
PackageNumber
|
string |
Package number written by SetOrderDetailInvoiced. Empty string when not set. Note: GetSales returns the marketplace package number in this field instead.
|
OrderDetails[].
PackageTime
|
datetime |
Package date in UTC. When there is no value it returns 1899-12-31T22:03:00Z instead of null (1900-01-01 Turkey time converted to UTC).
|
OrderDetails[].
WayBillNumber
|
string | Waybill number. Empty string when not set. |
OrderDetails[].
WayBillTime
|
datetime |
Waybill date in UTC. When there is no value it returns 1899-12-31T22:03:00Z instead of null (1900-01-01 Turkey time converted to UTC).
|
OrderDetails[].
Unread
|
boolean |
true when the line is flagged as unread in the StockMount panel.
|
OrderDetails[].
SmUserSchemaId
|
integer |
Template (schema) ID of the matched StockMount product. 0 without a match.
|
OrderDetails[].
SchemaName
|
string | Template name of the matched product. Empty string when not set. |
OrderDetails[].
DeliveryTitle
|
string | Recipient name or title on the delivery address. |
OrderDetails[].
Address
|
string | Delivery address, postal code, district and city joined with spaces. Can consist only of spaces when the line has no address. |
OrderDetails[].
District
|
string | Delivery district. |
OrderDetails[].
City
|
string | Delivery city. |
OrderDetails[].
PostalCode
|
string | Postal code of the order (not of the line). |
OrderDetails[].
Telephone
|
string | Delivery phone number. |
OrderDetails[].
CargoCompany
|
string | Shipping company name. |
OrderDetails[].
CargoLabelCode
|
string | Shipment tracking / label code. Empty when no shipment info has been set for the line. |
OrderDetails[].
CargoPayment
|
string |
Who pays for shipping; usually Seller, Buyer or Unknown.
|
OrderDetails[].
CargoDate
|
datetime |
Date the shipment info was set, in UTC. When there is no value it returns 1899-12-31T22:03:00Z instead of null (1900-01-01 Turkey time converted to UTC).
|
OrderDetails[].
ShipmentCampaignCode
|
string | Shipping campaign / shipment code from the marketplace. |
OrderDetails[].
LastModificationTime
|
datetime |
Not populated by this endpoint; always 0001-01-01T00:00:00. Use GetSales for the real value.
|
OrderDetails[].
RowSalt
|
string | Internal field (encryption salt, Base64). Normally absent; ignore it if present. |
Error codes for this endpoint
| Code | When |
|---|---|
50006 |
The order does not belong to a store in your account (ErrorMessage: Order not found.). |
99999 |
Order not found, or an unexpected error. |
For session errors (00001, 00006) and every other code see error codes.
Related endpoints
Example request
{
"ApiCode": "API_CODE",
"OrderId": 4567890
}
curl -X POST 'https://out.stockmount.com/api/Integration/GetOrder' \
-H 'Content-Type: application/json' \
-d '{
"ApiCode": "API_CODE",
"OrderId": 4567890
}'
using System.Net.Http;
using System.Text;
using var http = new HttpClient();
var json = """
{
"ApiCode": "API_CODE",
"OrderId": 4567890
}
""";
var response = await http.PostAsync(
"https://out.stockmount.com/api/Integration/GetOrder",
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
}
JSON;
$ch = curl_init('https://out.stockmount.com/api/Integration/GetOrder');
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
}
response = requests.post("https://out.stockmount.com/api/Integration/GetOrder", json=payload, timeout=60)
result = response.json()
if not result["Result"]:
print(result["ErrorCode"], result["ErrorMessage"])
const payload = {
"ApiCode": "API_CODE",
"OrderId": 4567890
};
const response = await fetch("https://out.stockmount.com/api/Integration/GetOrder", {
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": {
"OrderId": 4567890,
"StoreId": 12345,
"IntegrationOrderCode": "10293847",
"OrderDate": "2026-11-04T07:12:45Z",
"OrderStatus": "New",
"OrderType": 0,
"Name": "Ayşe",
"Surname": "Yılmaz",
"Fullname": "Ayşe Yılmaz",
"Nickname": "ayseyilmaz",
"PersonalIdentification": "11111111111",
"TaxAuthority": "",
"TaxNumber": "11111111111",
"Email": "ayse@example.com",
"Telephone": "05551112233",
"Address": "Örnek Mah. Deneme Sok. No:5 D:3 34710 Kadıköy İstanbul",
"District": "Kadıköy",
"City": "İstanbul",
"PostalCode": "34710",
"Notes": "",
"Member": "",
"OrderDetails": [
{
"OrderDetailId": 9876543,
"StoreId": 12345,
"IntegrationOrderDetailId": "3456789012",
"ProductId": 554433,
"IntegrationProductCode": "TSH-001-BLK-M",
"ProductName": "Basic Tişört Siyah M",
"ProductCode": "TSH-001",
"ProductCode2": "",
"Barcode": "8691234567890",
"MerchantSku": "TSH-001-BLK-M",
"ProductImage": "https://cdn.example.com/img/tsh-001.jpg",
"ProductUnit": "Adet",
"ProductVariantCode": "TSH-001-BLK-M",
"ProductVariantId": 0,
"VariantProductCode": "TSH-001-BLK-M",
"VariantProductBarcode": "8691234567890",
"VariantPhrase": "Renk: Siyah, Beden: M",
"VariantName1": "Renk",
"VariantValue1": "Siyah",
"VariantName2": "Beden",
"VariantValue2": "M",
"VariantName3": "",
"VariantValue3": "",
"Price": 249.9,
"Quantity": 2,
"RawQuantity": 2.0,
"TaxRate": 20.0,
"DetailType": 1,
"OrderStatus": "New",
"Invoiced": false,
"InvoiceNumber": "",
"InvoiceTime": "1899-12-31T22:03:00Z",
"PackageNumber": "",
"PackageTime": "1899-12-31T22:03:00Z",
"WayBillNumber": "",
"WayBillTime": "1899-12-31T22:03:00Z",
"Unread": true,
"SmUserSchemaId": 77,
"SchemaName": "Giyim",
"DeliveryTitle": "Ayşe Yılmaz",
"Address": "Örnek Mah. Deneme Sok. No:5 D:3 34710 Kadıköy İstanbul",
"District": "Kadıköy",
"City": "İstanbul",
"PostalCode": "34710",
"Telephone": "05551112233",
"CargoCompany": "",
"CargoLabelCode": "",
"CargoPayment": "Seller",
"CargoDate": "1899-12-31T22:03:00Z",
"ShipmentCampaignCode": "7330012345678",
"LastModificationTime": "0001-01-01T00:00:00"
}
]
}
}
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.