I'm working on creating a file that I can use to send any orders received on a particular day via a post API call. Magento's code appears to have changed dramatically now so I'm finding getting started a little difficult.

Is there any good documentation available that would show how to perform basic tasks such as getting recent order information, getting an image location based on a products ID, getting a custom attribute value of a product etc?


Take a look at the official dev docs. Magento 2 has a new concept of service contracts, basically it is an API which you should use in custom modules. Not sure if there is a complete list of services available, but you can just look for necessary service inside of Magento/<RelatedModuleName>/Api, where <RelatedModuleName> is in your case "Sales", "Catalog".


  • for getting filtered list of orders \Magento\Sales\Api\OrderRepositoryInterface::getList
  • for product data \Magento\Catalog\Api\ProductRepositoryInterface::get
  • for product images \Magento\Catalog\Api\ProductAttributeMediaGalleryManagementInterface::getList

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.