Does anybody have any idea why we get errors when posting to the OEOrders endpoint when using new IC Locations? I can't figure out what the difference is between the locations.
Endpoint: localhost/.../OEOrders
Payload:
{
"CustomerNumber": "HUS001",
"OrderDate": "2022-08-08T10:27:49.9754706+00:00",
"ShipToName": "LSD: 193/13-01-048-19W3/00",
"ShipToAddressLine1": "WO: \"50028624",
"ShipToAddressLine2": "HUSKY EDAM EAST VA3 HZ 13C7-1-3B13-1-48-19",
"ShipViaCode": " ",
"ShipViaCodeDescription": "",
"DefaultLocationCode": "ASRLDN",
"ExpectedShipDate": "2022-08-08T00:00:00+00:00",
"DateRequested": "2022-08-08T00:00:00+00:00",
"OrderComment": "",
"OrderDetails": [
{
"Item": "300263",
"Location": "ASRLDN",
"QuantityOrdered": 1,
"UseCommentsInstructions": false,
"ShipViaCode": "ASRLDN",
"PriceList": "HUS",
"PricingUnitPrice": 1,
"OrderUnitCost": 1,
"OrderDetailLotNumbers": [
{
"LotNumber": "SRDC",
"TransactionQuantity": 1
}
]
}
],
"OrderCommentsInstructions": []
}
Endpoint Error:
{ "error": { "code": "General", "message": { "lang": "en-US", "value": "" } } }
Endpoint Response:
{"ClassName":"System.Net.WebException","Message":"The remote server returned an error: (409) Conflict.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Net.HttpWebRequest.GetResponse()\r\n at AlpineData.Services.OrderHistoryController.Checkout(OrderFormVM data) in E:\\_dev\\_Sandy\\Modules\\alpinedata\\Services\\OrderHistoryController.cs:line 3052","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetResponse\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.HttpWebRequest\nSystem.Net.WebResponse GetResponse()","HResult":-2146233079,"Source":"System","WatsonBuckets":null}