Back

Search

Search

Methods

Inventory

Orders

Orders /SetOrderGeneralInfo

Response: Void



Update the general info of a specific order

Parameters

NameTypeDescription
orderIdGuidOrder id
infoOrderGeneralInfoGeneral info
wasDraftBooleanIndicate if the order was a draft before this operation

HTTP Endpoint

Server /Orders / SetOrderGeneralInfo

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/SetOrderGeneralInfo HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

orderId=594b7fce-1c16-4164-aaa4-c32d72638517&info={
  "Status": 1,
  "LabelPrinted": true,
  "LabelError": "sample string 3",
  "InvoicePrinted": true,
  "PickListPrinted": true,
  "IsRuleRun": true,
  "Notes": 7,
  "PartShipped": true,
  "Marker": 64,
  "IsParked": true,
  "Identifiers": null,
  "ReferenceNum": "sample string 10",
  "SecondaryReference": "sample string 11",
  "ExternalReferenceNum": "sample string 12",
  "ReceivedDate": "2018-10-03T11:12:33.5138145+01:00",
  "Source": "sample string 14",
  "SubSource": "sample string 15",
  "SiteCode": "sample string 16",
  "HoldOrCancel": true,
  "DespatchByDate": "2018-10-03T11:12:33.5138145+01:00",
  "ScheduledDelivery": {
    "From": "2018-10-03T11:12:33.5138145+01:00",
    "To": "2018-10-03T11:12:33.5138145+01:00"
  },
  "HasScheduledDelivery": true,
  "Location": "201863fe-a0a0-4af3-8956-ac185631f82b",
  "NumItems": 20,
  "StockAllocationType": 0
}&wasDraft=true

Response

This is an example response. Results may vary depending on your data.

null