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=fb20b870-b575-4433-8265-5fcb3937ba2a&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": "13683c5c-e38b-492c-b003-5a2ca6f6858c",
      "ImageUrl": "sample string 4",
      "Tag": "sample string 5",
      "Name": "sample string 6"
    },
    {
      "IdentifierId": 1,
      "IsCustom": true,
      "ImageId": "13683c5c-e38b-492c-b003-5a2ca6f6858c",
      "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-06-12T09:27:49.9912101+01:00",
  "Source": "sample string 14",
  "SubSource": "sample string 15",
  "SiteCode": "sample string 16",
  "HoldOrCancel": true,
  "DespatchByDate": "2019-06-12T09:27:49.9912101+01:00",
  "ScheduledDelivery": {
    "From": "2019-06-12T09:27:49.9912101+01:00",
    "To": "2019-06-12T09:27:49.9912101+01:00"
  },
  "HasScheduledDelivery": true,
  "Location": "fde4fe14-6efc-4e50-a5d4-a245c51841f9",
  "NumItems": 20,
  "StockAllocationType": 0
}&wasDraft=true

Response

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

null