Use the new api url
Add functions on the library for order workflow. It misses some functions and tests. They will be commited later.