Delete (REST) not working for PO -- No records in table error message

I’m trying to delete a PO using the REST API at
… /api/help/odata/Erp.BO.POSvc/index#!/OData/deleteUpdateExt_PO

The company and PO number entered are good, as they match with a SQL Query into the db… but I get an error at that REST API page… /api/swagger/v1/odata/Erp.BO.POSvc

The response says:
{
“HttpStatus”: 400,
“ReasonPhrase”: “REST API Exception”,
“ErrorMessage”: “There are no records in the table ds.POHeader”,
“ErrorType”: “Ice.Common.BusinessObjectException”,
“ErrorDetails”: [
{
“Message”: “There are no records in the table ds.POHeader”,
“Type”: “Error”,
“Table”: “POHeader”,
“Program”: “Epicor.RESTApi.dll”,
“Method”: “ThrowUpdateExtRESTApiException”,
“ColumnNumber”: 17,
“LineNumber”: 194
}
]
}

What am I doing wrong?

Is the PO Empty?

Also the Delete call for oData PO is

DELETE https://<URL>/<INSTANCE>/api/v1/Erp.BO.POSvc/POes(Company,12345)

Also check if you can retrieve that PO - you must be logged in the same company that is used in parameters.

So now, I’ve tried via the /api/v1/Erp.BO.POSvc/POes(Company,12345), and via the swagger page, and also manually via Epicor and they all give the same message.

Sorry, but I don’t know what you mean by “Is the PO Empty?” if you can tell me what fields to check on in Epicor or in the db, I can do that. I guess if it needs to be in some specific state before deleting, I would think it would be in
the message, but I don’t see that.

Yes, I can bring up the PO and view it and I get the same error message if I try to delete it manually via Epicor, so maybe there is some value/setting that must be set or changed before I can delete?