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=1602d368-a219-413d-99e4-363f7f86294d&info={
  "Status": 1,
  "LabelPrinted": true,
  "LabelError": "sample string 3",
  "InvoicePrinted": true,
  "PickListPrinted": true,
  "IsRuleRun": true,
  "Notes": 7,
  "PartShipped": true,
  "Marker": 64,
  "IsParked": true,
  "Identifiers": [
    {
      "IdentifierId": 1,
      "IsCustom": true,
      "ImageId": "0f4adf36-23f4-4998-baf7-e55f6568ccd7",
      "ImageUrl": "sample string 4",
      "Tag": "sample string 5",
      "Name": "sample string 6"
    },
    {
      "IdentifierId": 1,
      "IsCustom": true,
      "ImageId": "0f4adf36-23f4-4998-baf7-e55f6568ccd7",
      "ImageUrl": "sample string 4",
      "Tag": "sample string 5",
      "Name": "sample string 6"
    }
  ],
  "ReferenceNum": "sample string 10",
  "SecondaryReference": "sample string 11",
  "ExternalReferenceNum": "sample string 12",
  "ReceivedDate": "2019-11-28T09:45:58.1108222+00:00",
  "Source": "sample string 14",
  "SubSource": "sample string 15",
  "SiteCode": "sample string 16",
  "HoldOrCancel": true,
  "DespatchByDate": "2019-11-28T09:45:58.1118183+00:00",
  "ScheduledDelivery": {
    "From": "2019-11-28T09:45:58.1118183+00:00",
    "To": "2019-11-28T09:45:58.1118183+00:00"
  },
  "HasScheduledDelivery": true,
  "Location": "cfdeb271-0fcd-4ad8-812f-c8c66af132bc",
  "NumItems": 20,
  "StockAllocationType": 0
}&wasDraft=true

Response

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

null