Back

Search

Search

Methods

Inventory

Orders

Orders /MoveToLocation

Response: MoveToLocationResult



Move a list of orders to a specific location

Parameters

NameTypeDescription
orderIdsList<Guid>Orders to be moved
pkStockLocationIdGuidLocation where to move orders

HTTP Endpoint

Server /Orders / MoveToLocation

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/MoveToLocation 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

orderIds=[
  "345d2997-d368-4968-a474-386e2dc50681",
  "c8f0b606-5089-4660-9fa3-2e230056c04f"
]&pkStockLocationId=36f3c09d-52bc-4334-8c27-ec7c048c42ba

Response

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

{
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "OrdersMoved": [
    "ffd2d444-d6b3-42d4-a6c1-dd3d71b43eee",
    "3f861cbd-4b3c-433e-bf9f-920b441947f0"
  ]
}