REST API Communications
http://devdocs.magento.com/guides/m1x/api/rest-api-index.html
Endpoint (along with action paths): https://magentohost/api/rest/
Authentication: Uss 3-legged OAuth 1.0a
Outputs: XML and JSON
What we need
Set up permissions for REST resource operations from Magento Admin Panel
Configure the attributes for different users types in Magento Admin Panel (admin, customer, guest)
Register the third-party application (Consumer) in Magento Admin Panel.
The third-party application will utilize the provided consumer credentials to call Magento store for getting the access token to access the data
REST Resources
The Magento REST API allows you to manage customers, customer addresses, sales orders, inventory, and products. REST API is organized into the following categories:
Products
- Retrieve the list of products, create, update, and delete a product. http://magentohost/api/rest/products
Product Categories
- Retrieve the list of categories assigned to a product, assign, and unassign the category to/from the specific product. http://magentohost/api/rest/products/:productId/categories
Product Images
- Retrieve the list of images assigned to a product, add, update, and remove an image to/from the specific product. http://magentohost/api/rest/products/:productId/images
Product Websites
- Retrieve the list of websites assigned to a product, assign, and unassign a website to/from the specific product. http://magentohost/api/rest/products/:productId/websites
Customers
- Retrieve the list of customers, create, delete a customer, and update the customer information. http://magentohost/api/rest/customers
Customer Addresses
- Retrieve the list of customer addresses, create, update, and delete the customer address. http://magentohost/api/rest/customers/:customerId/addresses
Inventory
- Retrieve the list of stock items and update required stock items. http://magentohost/api/rest/stockitems
Sales Orders
- Retrieve the list of sales orders as well as the specific order information. http://magentohost/api/rest/orders
Order Items
- Retrieve order items for the specific order. http://magentohost/api/rest/orders/:orderId/items
Order Addresses
- Retrieve information on order billing and shipping addresses for the specific order. http://magentohost/api/rest/orders/:orderId/addresses
Order Comments
- Retrieve order comments for the specific order http://magentohost/api/rest/orders/:orderId/comments