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
Set 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: truethe 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: falseandErrorMessagecarries 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
InvoiceTimein Turkey time without an offset. Missing fields are reported together with00003.
Marking lines invoiced in StockMount only
If you do not need to send the link to the marketplace, use Set to mark lines invoiced and store invoice, package and waybill numbers. This is not sent to the marketplace.
- Send
OrderDetailIdandStoreIdfor each line. IfStoreIdis wrong, the line is not updated but the response is stillResult: true. Invoicedis written on every call and counts asfalsewhen omitted. Remember to sendInvoiced: truewhen you update the numbers.- Lines are processed one by one. If one fails, earlier lines stay updated.
Sending tracking details
Set 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.IntegrationIdis looked up from the store when omitted, but sending it is recommended. ShipmentCompanyis the marketplace's carrier code. Get the codes withGetand use theIntegration Shipment Companies Codevalue. If the code is not found you get00004.- 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.