I am able to get customer orders:
string requestUrl = $"{apiUrl}/load/SLCos?properties=CoNum,CustNum&recordcap=10&filter=CustNum='{custNum}'";
HttpResponseMessage response = await _httpClient.GetAsync(requestUrl);
But when I try to Post an update and send the json in the body, I get error because I the ItemNo should be an integer. What is that? I thought it would be the CoNum value which I specified with the ItemId. What is the correct way of doing this?
In Postman:
https://{server}/IDORequestService/ido/update/SLCos
body:
{
"IDOName": "SLCos",
"RefreshAfterSave": true,
"CustomInsert": "",
"CustomUpdate": "",
"CustomDelete": "",
"Changes":
[
{
"Action": 2,
"ItemId": "CoNum",
"ItemNo": "Q000000059",
"UpdateLocking": 0,
"Properties":
[
{
"IsNull": false,
"Modified": true,
"Name": "CustPo",
"Value": "TestAPIUpdate",
"OriginalValue": "123456"
},
{ ………