API reference · Orders
Accept or reject an N11 order item
Accepts or rejects a single order item on N11 for an N11 store.
https://out.stockmount.com/api/Integration/ConfirmOrRejectOrderItem
N11 stores only; IntegrationId must be 2. Other values return 00003 / IntegrationId.
IntegrationOrderDetailId is N11's numeric item ID (IntegrationOrderDetailId from GetSales). Values containing _ (e.g. additional service lines) are skipped when accepting. One item per call.
When rejecting, ... is sent to N11 as the reason; you cannot set a reason.
The action is performed on N11. The line status in StockMount is not updated by this call; it changes on the next N11 order sync.
Validation errors use 00003; ErrorMessage is StoreId, Status, IntegrationId or IntegrationOrderDetailId.
Request fields
| Field | Type | Description |
|---|---|---|
ApiCode
required
|
string |
API code returned by DoLogin.
|
StoreId
required
|
integer | ID of the N11 store. |
IntegrationId
required
|
integer |
Marketplace ID; only 2 (N11) is accepted.
|
IntegrationOrderDetailId
required
|
string | N11 order item ID (numeric). |
Status
required
|
integer |
Action.
|
Response fields (Response)
On success the Response field is empty; read the outcome from Result.
Error codes for this endpoint
| Code | When |
|---|---|
10001 |
StoreId is not a store in your account (ErrorMessage: Invalid store.). |
60001 |
N11 refused the action; ErrorMessage is N11's message. On connection errors ErrorMessage can be empty. |
99999 |
Unexpected error. |
For session errors (00001, 00006) and every other code see error codes.
Related endpoints
Example request
{
"ApiCode": "API_CODE",
"StoreId": 12345,
"IntegrationId": 2,
"IntegrationOrderDetailId": "245678901234",
"Status": 1
}
curl -X POST 'https://out.stockmount.com/api/Integration/ConfirmOrRejectOrderItem' \
-H 'Content-Type: application/json' \
-d '{
"ApiCode": "API_CODE",
"StoreId": 12345,
"IntegrationId": 2,
"IntegrationOrderDetailId": "245678901234",
"Status": 1
}'
using System.Net.Http;
using System.Text;
using var http = new HttpClient();
var json = """
{
"ApiCode": "API_CODE",
"StoreId": 12345,
"IntegrationId": 2,
"IntegrationOrderDetailId": "245678901234",
"Status": 1
}
""";
var response = await http.PostAsync(
"https://out.stockmount.com/api/Integration/ConfirmOrRejectOrderItem",
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",
"StoreId": 12345,
"IntegrationId": 2,
"IntegrationOrderDetailId": "245678901234",
"Status": 1
}
JSON;
$ch = curl_init('https://out.stockmount.com/api/Integration/ConfirmOrRejectOrderItem');
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",
"StoreId": 12345,
"IntegrationId": 2,
"IntegrationOrderDetailId": "245678901234",
"Status": 1
}
response = requests.post("https://out.stockmount.com/api/Integration/ConfirmOrRejectOrderItem", json=payload, timeout=60)
result = response.json()
if not result["Result"]:
print(result["ErrorCode"], result["ErrorMessage"])
const payload = {
"ApiCode": "API_CODE",
"StoreId": 12345,
"IntegrationId": 2,
"IntegrationOrderDetailId": "245678901234",
"Status": 1
};
const response = await fetch("https://out.stockmount.com/api/Integration/ConfirmOrRejectOrderItem", {
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.