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

GET | 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=b1aaf39a-4cf9-49a2-9249-ed85f2e18385&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": "350f2663-27d6-4663-9294-4ca8b3c57296"
  },
  "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": "350f2663-27d6-4663-9294-4ca8b3c57296"
  }
}&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": "5cb93bfe-2f17-4359-9a34-1856fd697876",
  "ProfitMargin": 9.1,
  "TotalDiscount": 10.1,
  "Currency": "sample string 11",
  "CountryTaxRate": 12.1,
  "ConversionRate": 13.1
}