Back

Search

Search

Methods

Inventory

Orders

Orders /SetOrderShippingInfo

Response: UpdateTotalsResult



Update the shipping info of a specific order

Parameters

NameTypeDescription
orderIdGuidOrder id
infoOrderShippingInfoShipping 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=a6cb697f-05b0-4d40-9060-f750b57de8a2&info={
  "Vendor": "sample string 1",
  "PostalServiceId": "f4778492-f5e9-427e-afe0-0f5d28f0e69d",
  "PostalServiceName": "sample string 3",
  "TotalWeight": 4.1,
  "ItemWeight": 5.1,
  "PackageCategoryId": "d60e56a4-8276-4b27-a0be-95d5c80a024f",
  "PackageCategory": "sample string 7",
  "PackageTypeId": "e226eb44-15f6-49d6-adcb-6cf7be592710",
  "PackageType": "sample string 8",
  "PostageCost": 9.1,
  "PostageCostExTax": 10.1,
  "TrackingNumber": "sample string 11",
  "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": "5391ad44-b7c3-4a85-a51c-18fe977246fd",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "5df7561f-360c-4a70-95af-11524989817e",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "238f4d33-74df-49f7-b861-f51afaffa23f",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "c74e4e34-e8ac-492b-ad41-5b7cd82c517b",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}