@jinin I should try the request without PoOrderNbr field at first ?
Hi @Ivan Po details will be added based on the action “Add PO” or “Add POLine”. For this, we need to create the Bill without line details. then make another call to add the Purchase order details.
Add the Action on the web service endpoint and try once.
endpoint : /entity/Default/20.200.001/Bill/AddPOOrderLine method: POST
{
"entity": {
"ReferenceNbr": {
"value": "002947"
},
"Type": {
"value": "Bill"
}
},
"parameters": {
"OrderNbr": {
"value": "PO001584"
}
}
}
Hi @Ivan Po details will be added based on the action “Add PO” or “Add POLine”. For this, we need to create the Bill without line details. then make another call to add the Purchase order details.
Add the Action on the web service endpoint and try once.
endpoint : /entity/Default/20.200.001/Bill/AddPOOrderLine method: POST
{
"entity": {
"ReferenceNbr": {
"value": "002947"
},
"Type": {
"value": "Bill"
}
},
"parameters": {
"OrderNbr": {
"value": "PO001584"
}
}
}
I will search for another solution due it my application works with other Acumatica environments
application generates json request and creates bill item, but with this acumatica I faced with this problem, I need to understand what the cause
For example such request works with another acumatica
{
"LocationID": {
"value": "MAIN"
},
"VendorRef": {
"value": "byIvan"
},
"DueDate": {
"value": "10/13/2021 12:00:00 AM"
},
"Vendor": {
"value": "BADG0t001"
},
"Date": {
"value": "9/29/2021 12:00:00 AM"
},
"Description": {
"value": "P29/09/2021"
},
"TaxAmount": {
"value": "0.00"
},
"PostPeriod": {
"value": "06-2021"
},
"Type": {
"value": "Bill"
},
"Details":
{
"InventoryID": {
"value": "UNIFORM000"
},
"TransactionDescription": {
"value": "123"
},
"Qty": {
"value": 1.0
},
"TaxCategory": {
"value": "ZEROS"
},
"Branch": {
"value": "K00000"
},
"POLine": {
"value": "1"
},
"POOrderNbr": {
"value": "PO018842"
},
"POOrderType": {
"value": "Normal"
},
"rowNumber": {
"value": "1"
}
}
],
"Amount": {
"value": "23,763.00"
}
}
Hi,
Yesterday @jinin provided a resolution by adding actions
I need to identify what is the cause of this error in this Acumatica
I tried more requests, but the error remains the same for all PO
Purchase Order RO 06007408 was not found
Such requests perfectly work with other Acumatica systems, what can cause such problem ? Maybe some permissions or logic that was additionally added ?
I need to add some info for my previous comment
if I do not add PO fields the request work even in this Acumatica
{
"VendorRef": {
"value": "by"
},
"Description": { "value": " Batc" }, "Vendor": {
"value": "0600000821"
},
"Date": { "value": "1/31/2022" },
"DueDate": { "value": "2/15/2022" },
"PostPeriod": { "value": "04-2022" },
"Details":
{
"ReceiptQty": {"value": 1},
"InventoryID": {
"value": "MOG700"
},
"Project": { "value": "X" },
"Branch": { "value": "FOHIL" }
}
]
}
But when I add those 3 fields :
"POOrderNbr": { "value": "06007394" },
"POOrderType": { "value": "Normal" },
"POLineNbr": {"value": 1}
I receive the error that mentioned in previous comment