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=0c25bc86-2aef-4c42-87ec-440158e0324b&info={
  "PostalServiceId": "17aa6a60-aeda-467d-a297-9d3e6e80ac64",
  "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": "0577fef1-daab-4cac-ba59-85247b24ec04",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "2d0df006-5eeb-47a0-b436-c659f6f77597",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "3a6070a9-e7b9-4131-a13e-f31934036b8f",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "25fc7174-aeb7-4751-82af-dbc6c515eedc",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}