Back

Search

Search

Methods

Inventory

Orders

Orders /SetOrderShippingInfo

Response: UpdateTotalsResult



Update the shipping info of a specific order

Parameters

NameTypeDescription
orderIdGuidOrder id
infoUpdateOrderShippingInfoRequestShipping info

HTTP Endpoint

Server /Orders / SetOrderShippingInfo

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/SetOrderShippingInfo 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=11d8ecb3-ad49-4c0e-b7fa-61ff0327a6cd&info={
  "PostalServiceId": "f9a8fb1f-ff30-49ac-b4f6-10698ed4bb8f",
  "TotalWeight": 1.1,
  "ItemWeight": 1.1,
  "PostageCost": 1.1,
  "PostageCostExTax": 1.1,
  "TrackingNumber": "sample string 1",
  "ManualAdjust": true
}

Response

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

{
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "8beb76b8-c468-40d5-a370-a45c690f3b2e",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "1cc7038c-22c9-4f81-9162-eab3de895c35",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "a7db6e8a-1c6c-4ad9-8abf-b8935753f734",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "28ea715d-2f8d-4f25-a711-e900379d5bb8",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}