The Magento web API framework provides integrators and developers the means to use web services that communicate with the Magento system.
To access Magento web API, we need of Magento User Name and Api Key.
By default, there is neither API user nor API role in Magento, so we need to configure both firstly.
Login to Magento admin and go to
System -> Web Services -> SOAP/XML - RPC Roles
The page has lists of roles, you can create new role also.
Provide API Role information as follow.
Allow users to access resources as follow
Now we need to create User, go to
System -> Web Services -> SOAP/XML - RPC Users
Provide user information here. Please remember provided User Name and API Key for future use.
Assign role to user as follow.