Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /SetOrderShippingInfo

Allows 250 calls per minute

Response: UpdateTotalsResult



Update the shipping info of a specific order

Parameters

NameTypeDescription
orderIdGuidOrder id
infoUpdateOrderShippingInfoRequestShipping info

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/SetOrderShippingInfo

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

orderId=7165bff7-84a8-4c04-8f72-dc5eb06c9c83&info={
  "PostalServiceId": "4be1fbe1-7611-4ef2-bc61-5adb27640f99",
  "TotalWeight": 1.0,
  "ItemWeight": 1.0,
  "PostageCost": 1.1,
  "TrackingNumber": "sample string 1",
  "ManualAdjust": true
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "aa68928f-4381-4bdb-845d-7b4c32952b96",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "7e70d8a2-3a2c-4c99-8f00-c9f56b0d8448",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "8763afdc-c76d-4f8e-bc93-c40e34b22009",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "ebfe8090-83e1-4621-8390-b5440efad771",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}