Skip to content

Is there a list of which fields would typically be on Extension Interfaces in the REST API?

I’m maintaining a Magento integration which is used by people who use Magento or Adobe Commerce instances which aren’t necessarily setup the same way as our test instance is. Several years ago, we used Swagger and OpenAPI to generate code which we can use for communicating with Magento’s REST API. Right now, I’m using Swagger and OpenAPI again to update our code to reflect Magento version 2.4.7.

This is running into problems with the Extension Interface entities. Some of them lost several fields but gained several more. From my understanding, extension interface fields aren’t meant to be entirely static; e.g. 3rd party extensions can add fields. But some fields seem more relevant to Magento’s core functionality. For example, CatalogDataProductExtensionInterface now has a WebsiteIds field. I believe this corresponds to the “Product in Websites” section on Product edit pages in the Magento admin portal.

So is there anyway of knowing which extension fields are there by default? For example, out of these CatalogDataProductExtensionInterface fields, how can I tell which of these are standard fields vs. “strange” fields?

  • StockItem
  • BundleProductOptions
  • ConfigurableProductOptions
  • ConfigurableProductLinks
  • DownloadableProductLinks
  • DownloadableProductSamples
  • GiftcardAmounts (was in our 2.1.X code but not 2.4.7)
  • WebsiteIds (new to our 2.4.7 code)
  • CategoryLinks (new to our 2.4.7 code)
  • Discounts (new to our 2.4.7 code)