API
Türkçe

API reference · Orders

Save invoice data for lines

Marks order lines as invoiced or not invoiced and saves invoice, package and waybill numbers and dates.

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

Data is written only to StockMount; nothing is sent to the marketplace. Use SetEinvoiceLink to push an invoice link to the marketplace.

Send OrderDetailId and StoreId for every line. With a wrong or missing StoreId the line is silently not updated and Result is still true.

Invoiced is always written; if omitted it is false and the line is marked as not invoiced. The internal invoice record date is set to now on every call.

InvoiceNumber, PackageNumber and WayBillNumber are updated only when non-empty; an empty string or omission keeps the current value. Date fields are also updated only when sent. Send dates in Turkey time without an offset; GetSales returns them converted to UTC.

Lines are processed one by one; the call is not transactional. A line that belongs to another user stops processing and can return 99999; earlier lines stay updated. On success Response is empty.

Empty OrderDetails returns 00003 / OrderDetails; a line with OrderDetailId < 1 returns 00003 / OrderDetailId.

Request fields

Field Type Description
ApiCode required string API code returned by DoLogin.
OrderDetails required object[] Lines to update.
OrderDetails[]. OrderDetailId required integer StockMount order line ID.
OrderDetails[]. StoreId required integer Store ID of the line. Not validated, but a wrong value means the line is not updated.
OrderDetails[]. Invoiced boolean Invoiced flag. Default false.
OrderDetails[]. InvoiceNumber string Invoice number. Max 64 characters.
OrderDetails[]. InvoiceTime datetime Invoice date.
OrderDetails[]. PackageNumber string Package number. Max 64 characters.
OrderDetails[]. PackageTime datetime Package date.
OrderDetails[]. WayBillNumber string Waybill number. Max 64 characters.
OrderDetails[]. WayBillTime datetime Waybill date.

Response fields (Response)

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

Error codes for this endpoint

CodeWhen
99999 Database error, or a line that belongs to another user.

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

Related endpoints

Example request

{
  "ApiCode": "API_CODE",
  "OrderDetails": [
    {
      "OrderDetailId": 9876543,
      "StoreId": 12345,
      "Invoiced": true,
      "InvoiceNumber": "ABC2026000000123",
      "InvoiceTime": "2026-11-05T15:00:00"
    }
  ]
}

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.