API
Türkçe

Guides

Shipping and invoices

After you invoice an order or hand it to the carrier, send the details back to StockMount and to the supported marketplaces.

Sending an e-invoice or e-archive link

SetEinvoiceLink matches the invoice to the order by the marketplace order number (IntegrationOrderCode), writes the invoice number, UUID (ETTN), scenario, date and link to the order lines, and marks them invoiced.

{
  "ApiCode": "API_CODE",
  "StoreId": 12345,
  "IntegrationOrderCode": "10293847",
  "InvoiceNumber": "ABC2026000000123",
  "InvoiceId": "3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c",
  "InvoiceScenario": "EARSIVFATURA",
  "InvoiceTime": "2026-11-05T15:00:00",
  "InvoiceLink": "https://efatura.example.com/view/3f2a9c1e.pdf",
  "SendEinvoiceToPlatform": true
}
  • With SendEinvoiceToPlatform: true the link is also sent to the marketplace. This is currently supported for Trendyol, Hepsiburada, N11 and Pazarama stores.
  • If sending to the marketplace fails, the link is still saved in StockMount, but the response is Result: false and ErrorMessage carries the marketplace's reason. You can send the request again.
  • If you invoiced only some lines, send the marketplace line IDs in IntegrationOrderDetailIds; if you leave it empty, every line is updated.
  • Send InvoiceTime in Turkey time without an offset. Missing fields are reported together with 00003.

Marking lines invoiced in StockMount only

If you do not need to send the link to the marketplace, use SetOrderDetailInvoiced to mark lines invoiced and store invoice, package and waybill numbers. This is not sent to the marketplace.

  • Send OrderDetailId and StoreId for each line. If StoreId is wrong, the line is not updated but the response is still Result: true.
  • Invoiced is written on every call and counts as false when omitted. Remember to send Invoiced: true when you update the numbers.
  • Lines are processed one by one. If one fails, earlier lines stay updated.

Sending tracking details

SetOrderShipmentInformation sends the carrier and tracking code of an order line to the marketplace and stores them in StockMount.

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

This endpoint only works for N11 (IntegrationId 2), T-Soft (22) and StockMount-type (9999) stores. For other marketplaces it sends nothing and returns Result: false with ErrorCode: "60001".

  • Send SendShipmentInformation: true. IntegrationId is looked up from the store when omitted, but sending it is recommended.
  • ShipmentCompany is the marketplace's carrier code. Get the codes with GetIntegrationShipmentCompanies and use the Code value. If the code is not found you get 00004.
  • If the line already has a tracking code you get 60002; tracking details cannot be changed with this endpoint.
  • After a successful call the tracking details are written to every line of the order in the same store, and the line status changes to shipped.

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.