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

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=21ec2797-0ce5-45c1-9833-e72600695c48&info={
  "PostalServiceId": "62f62735-7849-499e-8da4-8f7d5fec5b05",
  "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": "6ab12df9-4556-4257-9969-1a9bbf6ce715",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "0eb5b130-e097-4114-b5ce-2d78f27b2e66",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "e04ad132-7515-46fd-a3a2-846b3a0d5ce7",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "b88c9f06-579d-415d-aef2-2c13ca4bf7ef",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}