You should do a trace in Epicor (Create the item by hand in classic or Web UX)
Then you need to copy mimic the calls that Epicor makes , Epicor uses its own API
Here’s a couple of tools that might help