Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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=c36f5342-b184-412d-b904-e5a077b2fef5&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": "53a5eff8-57b1-42e5-bb00-54587b4acd43"
  },
  "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": "53a5eff8-57b1-42e5-bb00-54587b4acd43"
  }
}&saveToCrm=true

Response

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

{
  "Subtotal": 2.1,
  "PostageCost": 3.1,
  "Tax": 4.1,
  "TotalCharge": 5.1,
  "PaymentMethod": "sample string 6",
  "PaymentMethodId": "e4b6b080-f5a3-45d1-85cf-8788cf4e7b99",
  "ProfitMargin": 8.1,
  "TotalDiscount": 9.1,
  "Currency": "sample string 10",
  "CountryTaxRate": 11.1,
  "ConversionRate": 12.1
}