API
Türkçe

API reference · Orders

Send shipment information

Sends the shipping company and tracking code of an order line to the marketplace and saves them in StockMount.

POST https://out.stockmount.com/api/Integration/SetOrderShipmentInformation
Changes data

Only does something for these store types: N11 (IntegrationId 2), T-Soft (22) and StockMount (9999). GittiGidiyor (1) code still exists but the marketplace is closed. For other marketplaces (Trendyol, Hepsiburada, etc.) the call sends nothing and returns Result false with ErrorCode 60001.

If IntegrationId is not sent, it is looked up from the store. Sending it is recommended, since you know the store's marketplace.

SendShipmentInformation must be true, otherwise 00003 / SendShipmentInformation is returned. OrderId and IntegrationOrderDetailId are looked up from OrderDetailId when missing.

ShipmentCompany is the marketplace's shipping company code: the Code value from GetIntegrationShipmentCompanies. For N11 it must be numeric. For T-Soft it is checked against the T-Soft shop's cargo list. For StockMount stores it is free text. An unknown code returns 00004 / ShipmentCompany.

If the line already has a tracking code you get 60002 / Order item shipment information already exists !; the info cannot be changed.

On success StockMount saves the shipping company (ShipmentCompany or the company name, followed by ShipmentBranch), the tracking code and the shipping date (now). These values are written to all lines of the order. The status is updated: Shipped for N11 and StockMount, 6 for T-Soft.

The fields ShipmentCompanyName, ShipmentCompanyId, ShipmentMethod, CampaignNumber, SendPhoneMessage, UserMessage and SmUser are ignored.

Request fields

Field Type Description
ApiCode required string API code returned by DoLogin.
StoreId required integer Store ID.
IntegrationId integer The store's marketplace ID: N11 2, T-Soft 22, StockMount 9999. Looked up from the store when omitted.
2
N11.
22
T-Soft.
9999
StockMount store.
1
GittiGidiyor (closed).
OrderDetailId required integer StockMount order line ID.
SendShipmentInformation required boolean Must be true.
ShipmentCompany required string Shipping company code (GetIntegrationShipmentCompanies → Code).
ShipmentTrackingCode required string Tracking code.
ShipmentBranch string Shipping branch. Appended to the company name in StockMount. Was required for GittiGidiyor.
OrderId integer StockMount order ID. Looked up from the line when missing.
IntegrationOrderDetailId string Marketplace line ID (N11, T-Soft). Taken from the line when missing.
IntegrationOrderCode string Marketplace order number. Only used for GittiGidiyor.

Response fields (Response)

On success the Response field is empty; read the outcome from Result.

Error codes for this endpoint

CodeWhen
00004 ShipmentCompany is not a known code for this marketplace.
10001 StoreId is not a store in your account (ErrorMessage: Invalid store.).
60001 The store is not an N11, T-Soft or StockMount store, or the marketplace rejected the tracking details.
60002 The line already has a tracking code.
99999 Unexpected error (e.g. non-numeric ShipmentCompany for N11, missing IntegrationId).

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

Related endpoints

Example request

{
  "ApiCode": "API_CODE",
  "StoreId": 12345,
  "IntegrationId": 2,
  "OrderDetailId": 9876543,
  "SendShipmentInformation": true,
  "ShipmentCompany": "344",
  "ShipmentTrackingCode": "1234567890123"
}

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.

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.