Javadoc.
Handle API errors when creating an order. Add tests.