Update the customer info of a specific order
Name | Type | Description |
---|---|---|
orderId | Guid | Order id |
info | OrderCustomerInfo | Customer info |
saveToCrm | Nullable<Boolean> | Whether to save the shipping address into CRM, default = false |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Orders/SetOrderCustomerInfo
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
This is an example of the request structure. Results will vary depending on your data.
orderId=d6333b75-c88f-44a7-92fd-3e99c4d12aa2&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": "772c6ff8-4f11-48b5-af9d-3a3a30541c6b"
},
"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": "772c6ff8-4f11-48b5-af9d-3a3a30541c6b"
}
}&saveToCrm=true
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": "2cb3eae8-b5df-454e-9162-066c6421879e",
"ProfitMargin": 9.1,
"TotalDiscount": 10.1,
"Currency": "sample string 11",
"CountryTaxRate": 12.1,
"ConversionRate": 13.1
}