Does anyone have a payload example of using REST API v1 to Unallocate & Unreserve for a job.
I think I have to use this endpoint: ....v1/Erp.BO.OrderAllocSvc/UnallocateAndUnreserve
but I can’t figure out the minimum viable payload to do it.
Trace logs shows hundreds of fields in the dataset. I’m trying to do it with POSTMAN and I can’t fill in all those fields because I will only know a bit of data on my webpage about the item that’s in the fulfillment log. I won’t have the entire dataset.
I think it means that I’m not passing a field that’s needed, however it doesn’t explain which one. Which field do you want Epicor?! Kramer’s voice: Why don’t you just tell me the field you want to see?
But I can’t do the reverse of that with the unallocation / unreserve endpoint. which is the reason for this post. I ran a trace log and got the xml for the entire request out then converted that to JSON with an online convert tool and then tried to run that as my “ds” but get the same error as when I tried with the SlimOrderAlloc.
After much trial and error and a support call with Epicor to help get an example full payload I was able to get the following MVP (Minimum Viable Payload) to Unallocate & Unreserve a Job Material with REST.
This REST endpoint: …v1/Erp.BO.OrderAllocSvc/UnallocateAndUnreserve
With the following JSON Payload (all fields were required)
I found that the OrderAlloc’s value had to be an array else it didn’t work, even though there’s only one element in it. I also found that POSTMAN kept saying Sorry something went wrong, even though inside Epicor the job material record was actually unallocated and unreserved.
Maybe this will help someone else in the future.
Also make sure your call settings in POSTMAN are set to something like this: