API
Türkçe

API reference · Orders

Change line status

Updates the status of order lines in StockMount-type stores in bulk.

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

Works only for StockMount-type stores (IntegrationId 9999) and sends nothing to any marketplace. Lines of marketplace stores return an error.

Lines are processed one by one. Response is a list with one result per line: Result, ErrorCode, ErrorMessage and Response holding the line's OrderDetailId. The top-level Result is true only if every line succeeded; on partial failure the top-level ErrorCode is empty, so check the list.

OrderStatus is not validated (max 50 characters). Use StockMount status codes for consistency. When the status actually changes, the line's LastModificationTime is updated, so changes can be tracked with GetSales + LastModificationTimeFrom.

Only the line status changes, not the order-level status. GetOrder therefore keeps showing the old order-level status; GetSales and GetOrderDetailStatus show the line status.

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 (StockMount-type store).
OrderDetails[]. OrderStatus required string New status code.
New
New.
Approved
Approved.
Rejected
Rejected.
Shipped
Shipped.
Delivered
Delivered.
Completed
Completed.

Response fields (Response)

Field Type Description
Result boolean true when this line was updated.
ErrorCode string Line error code: 00003 for validation/store errors, 99999 otherwise.
ErrorMessage string Line error: OrderDetail.StoreId, OrderDetail.OrderDetailId, OrderDetail.OrderStatus, InvalidStore, Store has to be StockMount store!, or NotExisted when the line is not found. Empty when the line belongs to another user.
Response integer The OrderDetailId from the request.

Error codes for this endpoint

CodeWhen
99999 Unexpected error for the whole request. Per-line errors are in the Response list.

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

Related endpoints

Example request

{
  "ApiCode": "API_CODE",
  "OrderDetails": [
    {
      "OrderDetailId": 9877001,
      "StoreId": 67890,
      "OrderStatus": "Shipped"
    },
    {
      "OrderDetailId": 9877002,
      "StoreId": 67890,
      "OrderStatus": "Shipped"
    }
  ]
}

Example response

{
  "Result": false,
  "Response": [
    {
      "Result": true,
      "Response": 9877001
    },
    {
      "Result": false,
      "ErrorCode": "99999",
      "ErrorMessage": "NotExisted",
      "Response": 9877002
    }
  ]
}

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.