For an asynchronous service, Sterling Selling and Fulfillment Foundation automatically creates an instance of this object and passes it to each API part of the service. To programmatically invoke a synchronous service, you have to create an instance of this environment by calling the createEnvironment() API.
All APIs (whether standard or extended) have the same signature with respect to input parameters and return values. This signature is of the form
org.w3c.dom.Document APIName(YFSEnvironment env, org.w3c.dom.Document input);
In order for custom APIs to access custom values, the API should implement the com.yantra.interop.japi.YIFCustomApi interface. If entered, these name/value pairs are passed to the Custom API as a Properties object. See the Javadocs for more information about the com.yantra.interop.japi.YIFCustomApi interface.