Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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=6116e9b7-e903-4b41-a19e-0301c191258f&info={
  "PostalServiceId": "1251c728-16f9-4021-ba44-e804890ed06a",
  "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,
    "Tax": 4.1,
    "TotalCharge": 5.1,
    "PaymentMethod": "sample string 6",
    "PaymentMethodId": "97cefeeb-6c64-469e-a195-57ac0d908001",
    "ProfitMargin": 8.1,
    "TotalDiscount": 9.1,
    "Currency": "sample string 10",
    "CountryTaxRate": 11.1,
    "ConversionRate": 12.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "4f04b1bc-6f8e-442c-a59b-df927b990771",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "889e51c7-784e-4260-bd8a-418ece8b1655",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "4358c0f9-fc5b-478c-8d2f-f6d650e15261",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}