Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /SetOrderCustomerInfo

Allows 150 calls per minute

Response: OrderTotalsInfo



Update the customer info of a specific order

Parameters

NameTypeDescription
orderIdGuidOrder id
infoOrderCustomerInfoCustomer info
saveToCrmNullable<Boolean>Whether to save the shipping address into CRM, default = false

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Orders/SetOrderCustomerInfo

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=18736c56-ef2c-4dda-ad9d-76d6c0eafacb&info={
  "ChannelBuyerName": "sample string 1",
  "Address": {
    "EmailAddress": "sample string 1",
    "Address1": "sample string 2",
    "Address2": "sample string 3",
    "Address3": "sample string 4",
    "Town": "sample string 5",
    "Region": "sample string 6",
    "PostCode": "sample string 7",
    "Country": "sample string 8",
    "Continent": "sample string 9",
    "FullName": "sample string 10",
    "Company": "sample string 11",
    "PhoneNumber": "sample string 12",
    "CountryId": "752e43a7-9564-4507-b8b4-bab06423f596"
  },
  "BillingAddress": {
    "EmailAddress": "sample string 1",
    "Address1": "sample string 2",
    "Address2": "sample string 3",
    "Address3": "sample string 4",
    "Town": "sample string 5",
    "Region": "sample string 6",
    "PostCode": "sample string 7",
    "Country": "sample string 8",
    "Continent": "sample string 9",
    "FullName": "sample string 10",
    "Company": "sample string 11",
    "PhoneNumber": "sample string 12",
    "CountryId": "752e43a7-9564-4507-b8b4-bab06423f596"
  }
}&saveToCrm=true

Response

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

{
  "Subtotal": 2.1,
  "PostageCost": 3.1,
  "PostageCostExTax": 4.1,
  "Tax": 5.1,
  "TotalCharge": 6.1,
  "PaymentMethod": "sample string 7",
  "PaymentMethodId": "478e0f71-f44a-4df6-9e16-55a309c51d1f",
  "ProfitMargin": 9.1,
  "TotalDiscount": 10.1,
  "Currency": "sample string 11",
  "CountryTaxRate": 12.1,
  "ConversionRate": 13.1
}