Back

Search

Search

Methods

Inventory

Orders

Orders /SetOrderTotalsInfo

Response: Void



Update totals info of a specific order

Parameters

NameTypeDescription
orderIdGuidOrder id
infoOrderTotalsInfoTotals info

HTTP Endpoint

Server /Orders / SetOrderTotalsInfo

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/SetOrderTotalsInfo 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=f445baef-b558-4524-902d-33e61d563bde&info={
  "Subtotal": 1.1,
  "PostageCost": 2.1,
  "Tax": 3.1,
  "TotalCharge": 4.1,
  "PaymentMethod": "sample string 5",
  "PaymentMethodId": "7a571d37-fae2-4502-8f69-d3016606db2d",
  "ProfitMargin": 7.1,
  "TotalDiscount": 8.1,
  "Currency": "sample string 9",
  "CountryTaxRate": 10.1,
  "ConversionRate": 11.1
}

Response

This is an example response. Results may vary depending on your data.

null